本文整理汇总了PHP中UniteFunctionsWPRev::getPrestaProdCat方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteFunctionsWPRev::getPrestaProdCat方法的具体用法?PHP UniteFunctionsWPRev::getPrestaProdCat怎么用?PHP UniteFunctionsWPRev::getPrestaProdCat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniteFunctionsWPRev
的用法示例。
在下文中一共展示了UniteFunctionsWPRev::getPrestaProdCat方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RevSliderSettingsProduct
<?php
$sliderTemplate = false;
$settingsMain = self::getSettings("slider_main");
$settingsParams = self::getSettings("slider_params");
$settingsSliderMain = new RevSliderSettingsProduct();
$settingsSliderParams = new UniteSettingsProductSidebarRev();
//get taxonomies with cats
$productprds = UniteFunctionsWPRev::getPrestaProdCat();
//$postTypesWithCats = RevOperations::getPostTypesWithCatsForClient();
$postTypesWithCats = array();
$postTypesWithCats['product'] = $productprds;
// if((bool)Module::isEnabled('smartblog'))
// {
// $allsmartblogpost = UniteFunctionsWPRev::GetAllBlogPost();
// $postTypesWithCats['smartblog'] = $allsmartblogpost;
// }
$jsonTaxWithCats = UniteFunctionsRev::jsonEncodeForClientSide($postTypesWithCats);
//check existing slider data:
$sliderID = self::getGetVar("id");
if (!empty($sliderID)) {
$slider = new RevSlider();
$slider->initByID($sliderID);
//get setting fields
$settingsFields = $slider->getSettingsFields();
$arrFieldsMain = $settingsFields["main"];
$arrFieldsParams = $settingsFields["params"];
//modify arrows type for backword compatability
$arrowsType = UniteFunctionsRev::getVal($arrFieldsParams, "navigation_arrows");
switch ($arrowsType) {
case "verticalcentered":