Exemplo n.º 1
0
$sliderMainSettings->addSelect("displayhook", $gethooks, RevsliderPrestashop::$lang['Display_Hook'], 'id');
$arrSourceTypes = array("posts" => RevsliderPrestashop::$lang['Products'], "specific_posts" => RevsliderPrestashop::$lang['Specific_Products'], "gallery" => RevsliderPrestashop::$lang['Gallery']);
$sliderMainSettings->addRadio("source_type", $arrSourceTypes, RevsliderPrestashop::$lang['Source_Type'], "gallery");
$sliderMainSettings->startBulkControl("source_type", UniteSettingsRev::CONTROL_TYPE_SHOW, "posts");
//post types
$arrPostTypes = UniteFunctionsWPRev::getPostTypesAssoc(array("product"));
$arrParams = array("args" => "multiple size='5'");
$sliderMainSettings->addSelect("post_types", $arrPostTypes, RevsliderPrestashop::$lang['Types'], "product", $arrParams);
//post categories
$arrParams = array("args" => "multiple size='7'");
$sliderMainSettings->addSelect("post_category", array(), RevsliderPrestashop::$lang['Product_Categories'], "", $arrParams);
//sort by
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
$sliderMainSettings->addSelect("post_sortby", $arrSortBy, RevsliderPrestashop::$lang['Sort_Posts'], RevSlider::DEFAULT_POST_SORTBY);
//start set IMages Size
$GetArrImageSize = UniteFunctionsWPRev::GetArrImageSize();
$sliderMainSettings->addSelect("prd_img_size", $GetArrImageSize, RevsliderPrestashop::$lang['Product_Image_Type'], 'large_default');
//End set IMages Size
//sort direction
$arrSortDir = UniteFunctionsWPRev::getArrSortDirection();
$sliderMainSettings->addRadio("posts_sort_direction", $arrSortDir, RevsliderPrestashop::$lang['Sort_Direction'], RevSlider::DEFAULT_POST_SORTDIR);
//max posts for slider
$arrParams = array("class" => "small", "unit" => "posts");
$sliderMainSettings->addTextBox("max_slider_posts", "30", RevsliderPrestashop::$lang['Max_Posts'], $arrParams);
//exerpt limit
$arrParams = array("class" => "small", "unit" => "words");
$sliderMainSettings->addTextBox("excerpt_limit", "55", RevsliderPrestashop::$lang['Limit_Excerpt'], $arrParams);
//slider template
$sliderMainSettings->addhr();
$slider1 = new RevSlider();
$arrSlidersTemplates = $slider1->getArrSlidersShort(null, RevSlider::SLIDER_TYPE_TEMPLATE);