Пример #1
0
require_once $folderIncludes . 'base_admin.class.php';
require_once $folderIncludes . 'base_front.class.php';
//include product files
require_once $currentFolder . '/inc_php/showbiz_settings_product.class.php';
require_once $currentFolder . '/inc_php/showbiz_globals.class.php';
require_once $currentFolder . '/inc_php/showbiz_operations.class.php';
require_once $currentFolder . '/inc_php/showbiz_slider.class.php';
require_once $currentFolder . '/inc_php/showbiz_output.class.php';
require_once $currentFolder . '/inc_php/showbiz_params.class.php';
require_once $currentFolder . '/inc_php/showbiz_slide.class.php';
require_once $currentFolder . '/inc_php/showbiz_template.class.php';
require_once $currentFolder . '/inc_php/showbiz_widget.class.php';
require_once $currentFolder . '/inc_php/showbiz_wildcards.class.php';
try {
    //register the kb slider widget
    UniteFunctionsWPBiz::registerWidget("ShowBiz_Widget");
    //add shortcode
    function showbiz_shortcode($args)
    {
        $sliderAlias = UniteFunctionsBiz::getVal($args, 0);
        if (empty($sliderAlias)) {
            $sliderAlias = UniteFunctionsBiz::getVal($args, 'alias');
        }
        ob_start();
        $slider = ShowBizOutput::putSlider($sliderAlias);
        $content = ob_get_contents();
        ob_clean();
        ob_end_clean();
        //handle slider output types
        if (!empty($slider)) {
            $outputType = $slider->getParam("output_type", "");