Example #1
0
function bb_svg_get_image($atts = null)
{
    if (!$atts) {
        return null;
    }
    prar($atts);
}
Example #2
0
/**
 * Function to display widget
 * @param $widget text - name of widget
 * @param $args array
 *  'extra_classes' => additional classes to add to the widget containing div
 *  
 */
function bb_display_widget($widget, $args = null)
{
    //prar($widget); prar($args);
    if ($widget) {
        if (isset($args) && is_array($args)) {
            extract($args);
        }
        $widgetID = bb_widget_id($widget);
        prar($widgetID);
        if (is_active_sidebar($widgetID)) {
            $classes = isset($extra_classes) ? $widgetID . ' ' . $extra_classes : $widgetID;
            if (isset($wrapper)) {
                echo '<div class="' . $widgetID . '-wrapper">';
            }
            echo '<div class="' . $classes . '">';
            dynamic_sidebar($widgetID);
            echo '</div>';
            if (isset($wrapper)) {
                echo '</div>';
            }
        }
    }
}