[theme-reviewers] Setting $content_width Dynamically
Edward Caissie
edward.caissie at gmail.com
Wed Aug 10 18:44:11 UTC 2011
Ahh, there you go ... I was thinking $content_width should be "set"
explicitly then changed by $dynamic_width if the layout required it.
Cais.
On Wed, Aug 10, 2011 at 2:36 PM, Chip Bennett <chip at chipbennett.net> wrote:
> I'm setting $dynamic_width explicitly, then altering its value, based on
> conditionals. So, by that point in the code, $dynamic_width is *always* set.
>
> Chip
>
> On Wed, Aug 10, 2011 at 10:21 AM, Edward Caissie <edward.caissie at gmail.com
> > wrote:
>
>> On Wed, Aug 10, 2011 at 11:11 AM, Chip Bennett <chip at chipbennett.net>wrote:
>>
>>> // Apply dynamic width to $content_width
>>> global $content_width;
>>> if ( ! isset( $content_width ) ) {
>>> $content_width = $dynamic_width;
>>> }
>>>
>>
>> I know I'm a little "off" today, but shouldn't you be testing if
>> $dynamic_width is set versus the $content_width ... which you are setting
>> with function's code above this test?
>>
>> For example:
>>
>>> // Apply dynamic width to $content_width
>>> global $content_width;
>>> if ( isset( $dynamic_width ) ) {
>>> $content_width = $dynamic_width;
>>> }
>>>
>>
>>
>> Cais.
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110810/6f614dd9/attachment.htm>
More information about the theme-reviewers
mailing list