<?php /* refer to ww_view/_content/aside.php to see all default aside snippets */ include_once WW_ROOT . '/ww_view/_content/_aside.php'; $aside_content['upper'][] = $aside_snippet['aside_test']; echo insert_aside($aside_content); /* NOTES the basic theme includes one additional aside: _asides/aside_test.php this is automatically imported by the default aside.php page line 6 > for this example we call the default asides.php file so we have access to all the default asides and we'll also maintain the default $aside_content structure line 8 > here we add our imported aside snippet to the upper array line 10 > finally we output the content */ // to define additional snippets /* $aside_snippet['more_tags_list'] = build_snippet('MORE TAGS',$tags_list); 'more tags-list' this is the unique name for your snippet 'MORE TAGS' this is the snippet title that will appear on the page $tags_list this is the snippet data - can be html or an array (which will be rendered as a list) you don't have to use the build snippet function - this just provides a wrapper for your snippet and converts arrays to lists - you can manually code the html
/** * show_body * * * * * * */ function show_body($body_content, $config = 0) { // get config from database if (empty($config)) { $config = get_settings(); } // start body html echo ' <body> <div id="outer_wrapper"> <div id="inner_wrapper">'; // header $panel = !empty($config['site']['header_panel_html']) ? $config['site']['header_panel_html'] : ''; $nav = $config['layout']['main_menu'] == 'header' ? insert_nav($config['layout']['main_menu']) : ''; echo !empty($body_content['header']) ? $body_content['header'] : insert_header($config['site']['title'], $config['site']['subtitle'], $panel, $nav); // nav - only insert automatically if main_menu position is set to 'navbar' if ($config['layout']['main_menu'] == 'navbar') { echo !empty($body_content['nav']) ? $body_content['nav'] : insert_nav($config['layout']['main_menu']); } // start content wrapper echo ' <div id="content_wrapper">'; // main content echo insert_main_content($body_content['main']); // aside echo !empty($body_content['aside']) ? $body_content['aside'] : insert_aside(); // close content wrapper echo ' </div> <!-- close content_wrapper --> </div> <!-- close inner_wrapper --> </div> <!-- close outer_wrapper -->'; // footer echo !empty($body_content['footer']) ? $body_content['footer'] : insert_footer(); // analytics if (!empty($config['connections']['woopra_analytics'])) { echo insert_woopra_analytics(); } if (!empty($config['connections']['compete_analytics'])) { echo insert_compete_analytics($config['connections']['compete_analytics']); } if (!empty($config['connections']['getclicky_analytics'])) { echo insert_getclicky_analytics($config['connections']['getclicky_analytics']); } if (!empty($config['connections']['quantcast_analytics'])) { echo insert_quantcast_analytics($config['connections']['quantcast_analytics']); } if (!empty($config['connections']['disqus_shortname'])) { echo insert_disqus_comment_count($config['connections']['disqus_shortname']); } echo ' </body> </html>'; }