Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[RESOLVED] Plugin Theme : Sidebar option
#5
yes, I tried to read the value with a bad method, I changed the value yes or no to true or false.

After I found the solution, and I left the default value to true or false.

I modified your code accordingly.

Now my template is able to adapt to the presence of the sidebar in terms of size.
The code in the template is as follows:
Code:
<div id="site_content">
    <?php
        $x = getXML($cyclehome_file);
        $sidebaractive = $x->sidebaractive;
        if ($sidebaractive == 'true')  {
            include('sidebar.php'); /* edit sidebar.php to add all plugin element's needed */
            echo '<div id="content">';
        } else {
            echo '<div id="content-nosidebar">';
        }
        get_page_content();
        echo '</div>';
    ?>            
</div>

Thank you for your attention n00dles101 Wink

ps : sorry for my very bad english, I try my best ^^
Reply


Messages In This Thread
[RESOLVED] Plugin Theme : Sidebar option - by didou038 - 2012-03-07, 23:05:33



Users browsing this thread: 1 Guest(s)