2012-03-07, 23:05:33
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:
Thank you for your attention n00dles101
ps : sorry for my very bad english, I try my best ^^
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
ps : sorry for my very bad english, I try my best ^^