$slideSettings->addSelect("template_id", $arrTemplates, "Item Template", "", $params); $slideSettings->addHr(); //----------------------- //enable link $slideSettings->addSelect_boolean("enable_link", "Enable Link", false, "Enable", "Disable"); $slideSettings->startBulkControl("enable_link", UniteSettingsBiz::CONTROL_TYPE_SHOW, "true"); //link $params = array("description" => "A link on the whole slide pic"); $slideSettings->addTextBox("link", "", "Slide Link", $params); $slideSettings->addHr(); $slideSettings->endBulkControl(); $params = array("description" => "", "width" => 300, "height" => 200); $slideSettings->addImage("slide_image", "", "Slide Image", $params); //editor $params = array("description" => ""); $slideSettings->addEditor("slide_text", "", "Slide Text", $params); $params = array("description" => "Overwrite the global excerpt words limit option for this slide", "class" => "small"); $slideSettings->addTextBox("showbiz_excerpt_limit", "", "Excerpt Words Limit", $params); $slideSettings->addHr(); $params = array("description" => "The youtube ID, example: 9bZkp7q19f0", "class" => "medium"); $slideSettings->addTextBox("youtube_id", "", "Youtube ID", $params); $params = array("description" => "The youtube ID, example: 18554749", "class" => "medium"); $slideSettings->addTextBox("vimeo_id", "", "Vimeo ID", $params); $slideSettings->addHr(); //add the wildcards $slideSettings->addStaticText("Those custom options can be used for variety of purposes in the templates section."); $objWildcards = new ShowBizWildcards(); $settingsWildcards = $objWildcards->getWildcardsSettings(true); $slideSettings->addFromSettingsObject($settingsWildcards); //store settings self::storeSettings("slide_settings", $slideSettings);
$sliderMainSettings->startBulkControl("source_type", UniteSettingsBiz::CONTROL_TYPE_SHOW, "woocommerce"); $arrParams = array("args" => "multiple size='2'"); $sliderMainSettings->addSelect("wc_post_types", $wcPostTypes, "Post Types", "post", $arrParams); //post categories $arrParams = array("args" => "multiple size='7'"); $sliderMainSettings->addSelect("wc_post_category", array(), "Post Categories", "", $arrParams); //sort by $arrSortBy = UniteFunctionsWooCommerceBiz::getArrSortBy(); $sliderMainSettings->addSelect("wc_post_sortby", $arrSortBy, "Sort Posts By", ShowBizSlider::DEFAULT_POST_SORTBY); //sort direction $arrSortDir = UniteFunctionsWPBiz::getArrSortDirection(); $sliderMainSettings->addRadio("wc_posts_sort_direction", $arrSortDir, "Sort Direction", ShowBizSlider::DEFAULT_POST_SORTDIR); //max posts for slider $arrParams = array("class" => "small", "unit" => "posts"); $sliderMainSettings->addTextBox("wc_max_slider_posts", "30", "Max Posts Per Slider", $arrParams); $sliderMainSettings->addStaticText("------ WooCommerce Filters ---------", "text_filters"); $arrParams = array("class" => "small", UniteSettingsBiz::PARAM_ADDTEXT_BEFORE_ELEMENT => "From:"); $sliderMainSettings->addTextBox("wc_regular_price_from", "", "Regular Price", $arrParams); $arrParams = array("class" => "small", UniteSettingsBiz::PARAM_OUTPUTWITH => "wc_regular_price_from", UniteSettingsBiz::PARAM_ADDTEXT_BEFORE_ELEMENT => " To:"); $sliderMainSettings->addTextBox("wc_regular_price_to", "", "Regular Price To", $arrParams); $arrParams = array("class" => "small", UniteSettingsBiz::PARAM_ADDTEXT_BEFORE_ELEMENT => "From:"); $sliderMainSettings->addTextBox("wc_sale_price_from", "", "Sale Price", $arrParams); $arrParams = array("class" => "small", UniteSettingsBiz::PARAM_OUTPUTWITH => "wc_sale_price_from", UniteSettingsBiz::PARAM_ADDTEXT_BEFORE_ELEMENT => " To:"); $sliderMainSettings->addTextBox("wc_sale_price_to", "", "Sale Price To", $arrParams); $sliderMainSettings->addCheckbox("wc_instock_only", false, "In Stock Only"); $sliderMainSettings->addCheckbox("wc_featured_only", false, "Featured Products Only"); $sliderMainSettings->endBulkControl(); } //if woocommerce exists // -------------- End Filters ------------------ $sliderMainSettings->addHr();