当前位置: 首页>>代码示例>>PHP>>正文


PHP UniteFunctionsWPRev::GetArrImageSize方法代码示例

本文整理汇总了PHP中UniteFunctionsWPRev::GetArrImageSize方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteFunctionsWPRev::GetArrImageSize方法的具体用法?PHP UniteFunctionsWPRev::GetArrImageSize怎么用?PHP UniteFunctionsWPRev::GetArrImageSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UniteFunctionsWPRev的用法示例。


在下文中一共展示了UniteFunctionsWPRev::GetArrImageSize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$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);
开发者ID:evgrishin,项目名称:se1614,代码行数:31,代码来源:slider_settings.php


注:本文中的UniteFunctionsWPRev::GetArrImageSize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。