예제 #1
0
function theme_print_widgets($widgets, $style)
{
    if (!is_array($widgets) || count($widgets) < 1) {
        return false;
    }
    foreach ($widgets as $widget) {
        echo theme_get_widget_meta_option($widget['name'], 'theme_widget_styling');
        if ($widget['name']) {
            $widget_style = theme_get_widget_style($widget['name'], $style);
            theme_wrapper($widget_style, $widget);
        } else {
            echo $widget['content'];
        }
    }
    return true;
}
예제 #2
0
function theme_print_widgets($widgets, $style)
{
    if (!is_array($widgets) || count($widgets) < 1) {
        return false;
    }
    for ($i = 0; $i < count($widgets); $i++) {
        $widget = $widgets[$i];
        if ($widget['id']) {
            $widget_style = theme_get_widget_style($widget['id'], $style);
            theme_wrapper($widget_style, $widget);
        } else {
            echo $widget['content'];
        }
    }
    return true;
}
예제 #3
0
function theme_print_widget($widget)
{
    if (!is_array($widget)) {
        return false;
    }
    $widget_name = theme_get_array_value($widget, 'name', '');
    if ($widget_name) {
        echo theme_get_widget_meta_option($widget_name, 'theme_widget_styling');
        theme_wrapper(theme_get_array_value($widget, 'style', 'block'), $widget);
    } else {
        echo $widget['content'];
    }
    return true;
}
예제 #4
0
<?php 
    ob_start();
    ?>
      <?php 
    get_search_form();
    ?>
 
<?php 
    theme_wrapper($style, array('title' => __('Search', THEME_NS), 'heading' => $heading, 'content' => ob_get_clean()));
    ?>

<?php 
    ob_start();
    ?>
      <ul>
        <?php 
    wp_list_categories('show_count=1&title_li=');
    ?>
      </ul>
<?php 
    theme_wrapper($style, array('title' => __('Categories', THEME_NS), 'heading' => $heading, 'content' => ob_get_clean()));
    ?>

<?php 
    ob_start();
    echo theme_get_menu(array('source' => theme_get_option('theme_vmenu_source'), 'depth' => theme_get_option('theme_vmenu_depth'), 'class' => 'art-vmenu'));
    theme_wrapper('vmenu', array('title' => '', 'heading' => $heading, 'content' => ob_get_clean()));
    ?>

<?php 
}
예제 #5
0
      </ul>
<?php 
    theme_wrapper($style, array('title' => __('Категории', THEME_NS), 'content' => ob_get_clean()));
    ?>

<?php 
    ob_start();
    ?>
      <ul>
        <?php 
    wp_get_archives('type=monthly&title_li=');
    ?>
      </ul>
<?php 
    theme_wrapper($style, array('title' => __('Archives', THEME_NS), 'content' => ob_get_clean()));
    ?>

<?php 
    ob_start();
    ?>
      <ul>
        <?php 
    wp_list_bookmarks('orderby=rating&title_li=&categorize=0');
    ?>
      </ul>
<?php 
    theme_wrapper($style, array('title' => __('Bookmarks', THEME_NS), 'content' => ob_get_clean()));
    ?>

<?php 
}
예제 #6
0
<?php 
    ob_start();
    echo theme_get_menu(array('source' => theme_get_option('theme_vmenu_source'), 'depth' => theme_get_option('theme_vmenu_depth'), 'class' => 'art-vmenu'));
    theme_wrapper('vmenu', array('title' => '', 'content' => ob_get_clean()));
    ?>

<?php 
    ob_start();
    ?>
      <?php 
    get_search_form();
    ?>
 
<?php 
    theme_wrapper($style, array('title' => __('Search', THEME_NS), 'content' => ob_get_clean()));
    ?>

<?php 
    ob_start();
    ?>
      <ul>
        <?php 
    wp_list_categories('show_count=1&title_li=');
    ?>
      </ul>
<?php 
    theme_wrapper($style, array('title' => __('Categories', THEME_NS), 'content' => ob_get_clean()));
    ?>

<?php 
}