コード例 #1
0
ファイル: footer.php プロジェクト: fredpaw/chuguo
                $class = 'av_one_sixth';
                break;
        }
        $firstCol = "first el_before_{$class}";
        //display the footer widget that was defined at appearenace->widgets in the wordpress backend
        //if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
        for ($i = 1; $i <= $columns; $i++) {
            $class2 = "";
            // initialized to avoid php notices
            if ($i != 1) {
                $class2 = " el_after_{$class}  el_before_{$class}";
            }
            echo "<div class='flex_column {$class} {$class2} {$firstCol}'>";
            if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column' . $i)) {
            } else {
                avia_dummy_widget($i);
            }
            echo "</div>";
            $firstCol = "";
        }
        do_action('avia_after_footer_columns');
        ?>


					</div>


				<!-- ####### END FOOTER CONTAINER ####### -->
				</div>

	<?php 
コード例 #2
0
ファイル: sidebar.php プロジェクト: DylanPeti/socialize
    if ($avia_config['currently_viewing'] == 'shop_single') {
        $default_sidebar = false;
    }
    if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages')) {
        $default_sidebar = false;
    }
    // general blog sidebars
    if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog')) {
        $default_sidebar = false;
    }
    // general pages sidebars
    if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages')) {
        $default_sidebar = false;
    }
    // forum pages sidebars
    if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum')) {
        $default_sidebar = false;
    }
}
//global sidebar
if (dynamic_sidebar('Displayed Everywhere')) {
    $default_sidebar = false;
}
//default dummy sidebar
if ($default_sidebar) {
    avia_dummy_widget(2);
    avia_dummy_widget(3);
    avia_dummy_widget(4);
}
echo "</div>";
echo "</aside>";