sudweb / 2012

:two::zero::one::two: WordPress Theme
http://sudweb.fr/2012/
7 stars 2 forks source link

Reuse sponsor page layout for sponsor block #73

Closed goulvench closed 12 years ago

goulvench commented 12 years ago

The current sponsor presentation at the bottom of the page is not very readable, since we don't have the right image size. Reusing the styles on the sponsor page will be the fastest solution.

thom4parisot commented 12 years ago

Is it something different than #59?

DirtyF commented 12 years ago

We have to display sponsors at different sizes :

150px wide for gold sponsors 100px wide for silver sponsors

It implies defining a new image size in the functions.php and updating the loop ?

thom4parisot commented 12 years ago

Totally. We could do programmatic size, like add_thumbnail_size('sponsor-gold', )

So as it remains convienient to use in templates.

On Sat, Mar 10, 2012 at 3:36 PM, Frank Taillandier < reply@reply.github.com

wrote:

We have to display sponsors at different sizes :

150px wide for gold sponsors 100px wide for silver sponsors

It implies defining a new image size in the functions.php and updating the loop ?


Reply to this email directly or view it on GitHub: https://github.com/sudweb/wp-sudweb-theme/issues/73#issuecomment-4434551

Thomas PARISOT Conseil, dveloppement et performances Web http://case.oncle-tom.net/ @oncletom http://twitter.com/oncletom Mobile : +336 08 40 35 49

goulvench commented 12 years ago

In a patch I created sponsor-logo-or and sponsor-logo-argent sizes, and gave each the appropriate dimensions. The template listing sponsors at the bottom of the page calls the_post_thumbnail('sponsor-logo-'.$type->slug) and it worked as expected, what more do you need?

thom4parisot commented 12 years ago

I think we are okay on this point. Are you okay with it @DirtyF?

DirtyF commented 12 years ago

I completely agree with you guys, let's close this issue.