Esempio n. 1
0
<?php

$sidebar = mts_custom_sidebar();
if ($sidebar != 'mts_nosidebar') {
    ?>
<aside class="sidebar c-4-12" role="complementary" itemscope itemtype="http://schema.org/WPSideBar">
	<div id="sidebars" class="g">
		<div class="sidebar">
			<?php 
    if (!dynamic_sidebar($sidebar)) {
        ?>
				<div id="sidebar-search" class="widget">
					<h3 class="widget-title"><?php 
        _e('Search', 'mythemeshop');
        ?>
</h3>
					<?php 
        get_search_form();
        ?>
				</div>
				<div id="sidebar-archives" class="widget">
					<h3 class="widget-title"><?php 
        _e('Archives', 'mythemeshop');
        ?>
</h3>
					<ul>
						<?php 
        wp_get_archives('type=monthly');
        ?>
					</ul>
				</div>
Esempio n. 2
0
 function mts_article_class()
 {
     $mts_options = get_option(MTS_THEME_NAME);
     $class = '';
     // sidebar or full width
     if (mts_custom_sidebar() == 'mts_nosidebar') {
         $class = 'ss-full-width';
     } else {
         $class = 'article';
     }
     echo $class;
 }