Esempio n. 1
0
function donut_remove_brackets(&$nav_cat)
{
    if (is_array($nav_cat) && count($nav_cat)) {
        foreach ($nav_cat as $key => &$nav_cat_item) {
            if (!empty($nav_cat_item['note'])) {
                $nav_cat_item['note'] = str_replace(array('(', ')'), '', $nav_cat_item['note']);
            }
            if (!empty($nav_cat_item['subnav'])) {
                donut_remove_brackets($nav_cat_item['subnav']);
            }
        }
    }
}
 function body_content()
 {
     $sub_navigation = @$this->content['navigation']['sub'];
     if ($this->template === 'admin') {
         unset($this->content['navigation']['sub']);
     }
     $navigation =& $this->content['navigation'];
     if (isset($navigation['cat'])) {
         donut_remove_brackets($navigation['cat']);
     }
     $this->body_prefix();
     $this->notices();
     if ($this->template !== 'question') {
         $this->output('<main class="donut-masthead">');
         $this->output('<div class="container">');
         $this->output('<div class="page-title">');
         $this->page_title_error();
         $this->output('</div>');
         $this->output('</div>');
         $this->output('</main>');
     }
     $this->output('<div class="qa-body-wrapper">', '');
     $this->widgets('full', 'top');
     $this->header();
     $this->widgets('full', 'high');
     if (count($sub_navigation)) {
         // create the left side bar
         $this->left_side_bar($sub_navigation);
     }
     $this->main();
     if ($this->template !== 'admin' && $this->template != 'user') {
         $this->sidepanel();
     }
     $this->widgets('full', 'low');
     $this->footer();
     $this->widgets('full', 'bottom');
     $this->output('<a href="./index.php?qa=feedback">Send feedback</a>');
     $this->output('</div> <!-- END body-wrapper -->');
     // $this->output('<iframe id="oiframe" src="http://127.0.0.1/rapid/online-test/" style=""></iframe>');
     // $this->body_suffix();
 }
Esempio n. 3
0
 function body_content()
 {
     $sub_navigation = @$this->content['navigation']['sub'];
     if ($this->template === 'admin') {
         unset($this->content['navigation']['sub']);
     }
     $navigation =& $this->content['navigation'];
     if (isset($navigation['cat'])) {
         donut_remove_brackets($navigation['cat']);
     }
     $this->body_prefix();
     $this->notices();
     if ($this->template !== 'question') {
         $this->output('<main class="donut-masthead">');
         $this->output('<div class="container">');
         $this->output('<div class="page-title">');
         $this->page_title_error();
         $this->output('</div>');
         $this->output('</div>');
         $this->output('</main>');
     }
     $this->output('<div class="qa-body-wrapper">', '');
     $this->widgets('full', 'top');
     $this->header();
     $this->widgets('full', 'high');
     if (count($sub_navigation)) {
         // create the left side bar
         $this->left_side_bar($sub_navigation);
     }
     $this->main();
     if ($this->template !== 'admin' && $this->template != 'user') {
         $this->sidepanel();
     }
     $this->widgets('full', 'low');
     $this->footer();
     $this->widgets('full', 'bottom');
     $this->output('</div> <!-- END body-wrapper -->');
     $this->body_suffix();
 }
Esempio n. 4
0
 function body_content()
 {
     $sub_navigation = @$this->content['navigation']['sub'];
     if ($this->template === 'admin') {
         unset($this->content['navigation']['sub']);
     }
     $navigation =& $this->content['navigation'];
     if (isset($navigation['cat'])) {
         donut_remove_brackets($navigation['cat']);
     }
     $this->body_prefix();
     $this->output('<div class="container">');
     $this->output('<div class="top-divider"></div>');
     $this->output('</div>');
     $this->donut_site_header();
     $this->output('<div class="container visible-xs">');
     $this->output('<div class="top-search-bar">');
     $this->search();
     $this->output('</div>');
     $this->output('</div>');
     $this->output('<main class="donut-masthead">');
     $this->output('<div class="container">');
     $this->notices();
     $this->output('</div>');
     $this->output('<div class="container">');
     $extra_title_class = $this->donut_page_has_favorite() ? ' has-favorite' : '';
     $this->output('<div class="page-title' . $extra_title_class . '">');
     $this->page_title_error();
     $this->output('</div>');
     $this->donut_breadcrumb();
     $this->output('</div>');
     $this->output('</main>');
     $this->output('<div class="qa-body-wrapper container">', '');
     $this->widgets('full', 'top');
     $this->header();
     $this->widgets('full', 'high');
     if (count($sub_navigation)) {
         // create the left side bar
         $this->left_side_bar($sub_navigation);
     }
     $this->main();
     if (!$this->donut_do_hide_sidebar()) {
         $this->sidepanel();
     }
     $this->widgets('full', 'low');
     $this->footer();
     $this->widgets('full', 'bottom');
     $this->output('</div> <!-- END body-wrapper -->');
     $this->body_suffix();
 }