Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate thumbnail URL and filename for easier layout customization #56

Closed
johnstray opened this issue Feb 8, 2015 · 0 comments
Closed

Comments

@johnstray
Copy link
Owner

A lot of confusion, bugs and help was sought with regards to the handling of images in the theme. So, to make things easier, the filename and the base url have been separated to make for easier customization of the layout.

This might be useful if you wish to source your images from a different server but still use the filename field stored in the post file. Eg:

    <img src="http://img-server.com/<?php echo $p['thumbnail']; ?>" alt="alternate" />

Or you can leave the default of:

    <img src="<?php echo $p['thumburl'].$p['thumbnail']; ?>" alt="alternate" />

The two variables now contain the following data:

    $p['thumburl'] = 'http://my-great-site.com/data/uploads/';
    $p['thumbnail'] = 'image-file.jpg';
@johnstray johnstray self-assigned this Feb 8, 2015
@johnstray johnstray added this to the Version 3.3.2 milestone Feb 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant