Support » Themes and Templates » modifing sidebar on a per POST basis.

  • Resolved RanchNachos

    (@ranchnachos)


    I’m using the premium theme Comfy-Plus (obtained while they had a free giveaway), so support from them is not possible without paying.. which brings me here.

    In my sidebar.php file there’s a conditional section and I’m confused about it. Hopefully someone here can tell me what it means.

    <?php if (is_single()) : ?>
    <?php if (is_page()) $tle = PAGE; else $tle = POST; ?>
    <?php include TEMPLATEPATH. '/widgets/admin_menu.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/writer.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/info.html'; ?>
    <?php endif; ?>
    
    <?php if (is_category()) : ?>
    <?php include TEMPLATEPATH. '/widgets/category_tabs.html'; ?>
    <?php endif; ?>
    
    <?php include TEMPLATEPATH. '/widgets/subscription.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/300x250ads.html'; ?>
    <?php if (!is_category()) : ?>
    <?php include TEMPLATEPATH. '/widgets/ajaxtabs.html'; ?>
    <?php endif; ?>
    <?php include TEMPLATEPATH. '/widgets/media.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/widgets.html'; ?>

    My issue is the second line of code..
    <?php if (is_page()) $tle = PAGE; else $tle = POST; ?>

    I’m not sure exactly what all that means.

    Help would be appreciated.
    Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘modifing sidebar on a per POST basis.’ is closed to new replies.