當前位置: 首頁>>代碼示例>>PHP>>正文


PHP RevSlide::isStaticSlide方法代碼示例

本文整理匯總了PHP中RevSlide::isStaticSlide方法的典型用法代碼示例。如果您正苦於以下問題:PHP RevSlide::isStaticSlide方法的具體用法?PHP RevSlide::isStaticSlide怎麽用?PHP RevSlide::isStaticSlide使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在RevSlide的用法示例。


在下文中一共展示了RevSlide::isStaticSlide方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: RevSliderOperations

        }
        if ($bgPosition == 'percentage') {
            $style_wrapper .= "background-position: " . $bgPositionX . '% ' . $bgPositionY . '%;';
        } else {
            $style_wrapper .= "background-position: " . $bgPosition . ";";
        }
        $style_wrapper .= "background-repeat: " . $bgRepeat . ";";
        break;
}
$slideTitle = $slide->getParam("title", "Slide");
$slideOrder = $slide->getOrder();
//treat multilanguage
$isWpmlExists = RevSliderWpml::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
$wpmlActive = false;
if (!$slide->isStaticSlide()) {
    if ($isWpmlExists && $useWpml == "on") {
        $wpmlActive = true;
        $parentSlide = $slide->getParentSlide();
        $arrChildLangs = $parentSlide->getArrChildrenLangs();
    }
}
//<!--  load good font -->
$operations = new RevSliderOperations();
$googleFont = $slider->getParam("google_font", array());
if (!empty($googleFont)) {
    if (is_array($googleFont)) {
        foreach ($googleFont as $key => $font) {
            echo RevSliderOperations::getCleanFontImport($font);
        }
    } else {
開發者ID:vicpril,項目名稱:rep_bidqa,代碼行數:31,代碼來源:slide-editor.php

示例2:

        $style_wrapper .= "background-image:url('" . $slideBGExternal . "');";
        if ($bgFit == 'percentage') {
            $style_wrapper .= "background-size: " . $bgFitX . '% ' . $bgFitY . '%;';
        } else {
            $style_wrapper .= "background-size: " . $bgFit . ";";
        }
        if ($bgPosition == 'percentage') {
            $style_wrapper .= "background-position: " . $bgPositionX . '% ' . $bgPositionY . '%;';
        } else {
            $style_wrapper .= "background-position: " . $bgPosition . ";";
        }
        $style_wrapper .= "background-repeat: " . $bgRepeat . ";";
        break;
}
$slideTitle = $slide->getParam("title", "Slide");
$slideOrder = $slide->getOrder();
//treat multilanguage
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
$wpmlActive = false;
if (!$slide->isStaticSlide()) {
    if ($isWpmlExists && $useWpml == "on") {
        $wpmlActive = true;
        $parentSlide = $slide->getParentSlide();
        $arrChildLangs = $parentSlide->getArrChildrenLangs();
    }
}
require self::getPathTemplate("slide");
?>
	
開發者ID:AlexanderBogdan,項目名稱:poliplast,代碼行數:29,代碼來源:slide.php


注:本文中的RevSlide::isStaticSlide方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。