Giter Site home page Giter Site logo

acrylian / featured_image Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 44 KB

A Zenphoto plugin to attach an images to a Zenpage items

License: GNU General Public License v3.0

CSS 6.41% PHP 93.59%
zenphoto-plugin zenphotocms-plugin article-extracting featured-image

featured_image's People

Contributors

acrylian avatar

Watchers

 avatar  avatar  avatar

featured_image's Issues

Usage examples in comments of featured_image.php

In the "Theme function" example, the printSizedFeaturedImage() function is missing the first parameter.
It needs to be either NULL or an object.

I think it should be:

b) Theme function for pages.php and news.php

Other than that it's working great !

Question: adopt this plugin for ZenPhoto20

Hi Malte,
could you create a version which works with ZP20 too? My capabilities are not good enough to do it by myself.
Thanks for your support and best wishes,
Jens

makeImageCurrent($thumb) breaks page

Probably due to my lack of skills...

The only way I can get an image to show is to use something like this:

$thumb = getAttachedArticleAlbumThumb($_zp_current_zenpage_news);
if($thumb) {
makeImageCurrent($thumb);
printCustomSizedImageThumbMaxSpace($alt='',300,300,$class=NULL,$id=NULL);
}

This works fine within the next_news() loop but if I use this somewhere in the single news
(after if(is_NewsArticle())), the page breaks as soon as I use makeImageCurrent($thumb)

Question:
Does an album thumb needs to be set for this to work or does it use the first image in an album ?

Scale admin thumb

Hi Malte,

Please get this plugin in the core. :)

Seems to work good with 1.4.6, no issues as of yet. Suggestion - add the following to the css file so the image thumb scales in the admin column:

#fi_adminthumb img  {
    max-width:100%;
    height:auto;
}

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.