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


PHP RevSliderFunctions::boolToStr方法代码示例

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


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

示例1: foreach

</span>
						</span>

						<span class="slide-col col-handle">
							<div class="col-handle-inside">
								<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
							</div>
						</span>
						<div class="clear"></div>
						<?php 
    if ($showLangs == true) {
        ?>
							<ul class="list_slide_icons">
								<?php 
        foreach ($arrChildLangs as $arrLang) {
            $isParent = RevSliderFunctions::boolToStr($arrLang["isparent"]);
            $childSlideID = $arrLang["slideid"];
            $lang = $arrLang["lang"];
            $urlFlag = RevSliderWpml::getFlagUrl($lang);
            $langTitle = RevSliderWpml::getLangTitle($lang);
            ?>
									<li>
										<img id="icon_lang_<?php 
            echo $childSlideID;
            ?>
" class="icon_slide_lang" src="<?php 
            echo $urlFlag;
            ?>
" title="<?php 
            echo $langTitle;
            ?>
开发者ID:jfbelisle,项目名称:magexpress,代码行数:31,代码来源:slides-list.php

示例2: putCreativeLayer


//.........这里部分代码省略.........
         }
         $tcin = RevSliderOperations::parseCustomAnimationByArray($layer, 'start');
         if ($tcin !== '') {
             $customin = ' data-transform_in="' . $tcin . '"';
         }
         $do_mask_in = RevSliderFunctions::getVal($layer, 'mask_start', false);
         if ($do_mask_in) {
             $tmask = RevSliderOperations::parseCustomMaskByArray($layer, 'start');
             if ($tmask !== '') {
                 $maskin = ' data-mask_in="' . $tmask . '"';
             }
         }
         //if(strpos($animation, 'customin-') !== false || strpos($animation, 'customout-') !== false) $animation = "tp-fade";
         //set output class:
         $layer_2d_rotation = intval(RevSliderFunctions::getVal($layer, '2d_rotation', '0'));
         $internal_class = RevSliderFunctions::getVal($layer, 'internal_class', '');
         $layer_selectable = RevSliderFunctions::getVal($layer, 'layer-selectable', 'default');
         $outputClass = 'tp-caption ' . trim($class);
         $outputClass = trim($outputClass) . ' ' . $internal_class . ' ';
         if ($layer_selectable !== "default") {
             if ($layer_selectable == 'on') {
                 $outputClass = trim($outputClass) . ' tp-layer-selectable ';
             }
         } else {
             if ($slider_selectable == 'on') {
                 $outputClass = trim($outputClass) . ' tp-layer-selectable ';
             }
         }
         //if($type == 'button') $outputClass .= ' ';
         //$speed = RevSliderFunctions::getVal($layer, "speed",300);
         $time = RevSliderFunctions::getVal($layer, 'time', 0);
         $easing = RevSliderFunctions::getVal($layer, 'easing', 'easeOutExpo');
         $randomRotate = RevSliderFunctions::getVal($layer, 'random_rotation', 'false');
         $randomRotate = RevSliderFunctions::boolToStr($randomRotate);
         $splitin = RevSliderFunctions::getVal($layer, 'split', 'none');
         $splitout = RevSliderFunctions::getVal($layer, 'endsplit', 'none');
         $elementdelay = intval(RevSliderFunctions::getVal($layer, 'splitdelay', 0));
         $endelementdelay = intval(RevSliderFunctions::getVal($layer, 'endsplitdelay', 0));
         $basealign = RevSliderFunctions::getVal($layer, 'basealign', 'grid');
         if ($elementdelay > 0) {
             $elementdelay /= 100;
         }
         if ($endelementdelay > 0) {
             $endelementdelay /= 100;
         }
         $text = RevSliderFunctions::getVal($layer, 'text');
         if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
             //use qTranslate
             $text = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($text);
         } elseif (function_exists('ppqtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
             //use qTranslate plus
             $text = ppqtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($text);
         } elseif (function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
             //use qTranslate X
             $text = qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage($text);
         }
         $text_toggle = RevSliderFunctions::getVal($layer, 'texttoggle');
         if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
             //use qTranslate
             $text_toggle = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($text_toggle);
         } elseif (function_exists('ppqtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
             //use qTranslate plus
             $text_toggle = ppqtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($text_toggle);
         } elseif (function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
             //use qTranslate X
             $text_toggle = qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage($text_toggle);
开发者ID:surreal8,项目名称:wptheme,代码行数:67,代码来源:output.class.php


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