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


PHP RevSlide::getID方法代码示例

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


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

示例1: initBySlide

 /**
  * 
  * init by another slide
  */
 private function initBySlide(RevSlide $slide)
 {
     $this->id = "template";
     $this->templateID = $slide->getID();
     $this->sliderID = $slide->getSliderID();
     $this->slideOrder = $slide->getOrder();
     $this->imageUrl = $slide->getImageUrl();
     $this->imageID = $slide->getImageID();
     $this->imageThumb = $slide->getThumbUrl();
     $this->imageFilepath = $slide->getImageFilepath();
     $this->imageFilename = $slide->getImageFilename();
     $this->params = $slide->getParams();
     $this->arrLayers = $slide->getLayers();
     $this->arrChildren = $slide->getArrChildrenPure();
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:19,代码来源:revslider_slide.class.php

示例2: array

<div id="dialog_rename_animation" class="dialog_rename_animation" title="<?php 
_e('Rename Animation', REVSLIDER_TEXTDOMAIN);
?>
" style="display:none;">
	<div style="margin-top:14px">
		<span style="margin-right:15px"><?php 
_e('Rename to:', REVSLIDER_TEXTDOMAIN);
?>
</span><input id="rs-rename-animation" type="text" name="rs-rename-animation" value="" />
	</div>
</div>

<?php 
if ($slide->isStaticSlide()) {
    $slideID = $slide->getID();
}
$mslide_list = array();
foreach ($arrSlides as $at_slide) {
    $mslID = $at_slide->getID();
    if ($mslID == $slideID) {
        continue;
    }
    $mslide_list[] = array($mslID => $at_slide->getParam('title', 'Slide'));
}
$mslide_list = RevSliderFunctions::jsonEncodeForClientSide($mslide_list);
?>

<script type="text/javascript">
	var g_patternViewSlide = '<?php 
echo $patternViewSlide;
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:30,代码来源:slide-editor.php

示例3: getSlidesFromGallery

 /**
  * 
  * get slides of the current slider
  */
 public function getSlidesFromGallery($publishedOnly = false)
 {
     $this->validateInited();
     $arrSlides = array();
     $arrSlideRecords = $this->db->fetch(GlobalsRevSlider::$table_slides, "slider_id=" . $this->id, "slide_order");
     $arrChildren = array();
     foreach ($arrSlideRecords as $record) {
         $slide = new RevSlide();
         $slide->initByData($record);
         $slideID = $slide->getID();
         $arrIdsAssoc[$slideID] = true;
         if ($publishedOnly == true) {
             $state = $slide->getParam("state", "published");
             if ($state == "unpublished") {
                 continue;
             }
         }
         $parentID = $slide->getParam("parentid", "");
         if (!empty($parentID)) {
             $lang = $slide->getParam("lang", "");
             if (!isset($arrChildren[$parentID])) {
                 $arrChildren[$parentID] = array();
             }
             $arrChildren[$parentID][] = $slide;
             continue;
             //skip adding to main list
         }
         //init the children array
         $slide->setArrChildren(array());
         $arrSlides[$slideID] = $slide;
     }
     //add children array to the parent slides
     foreach ($arrChildren as $parentID => $arr) {
         if (!isset($arrSlides[$parentID])) {
             continue;
         }
         $arrSlides[$parentID]->setArrChildren($arr);
     }
     $this->arrSlides = $arrSlides;
     return $arrSlides;
 }
开发者ID:ConceptHaus,项目名称:huasca,代码行数:45,代码来源:revslider_slider.class.php

示例4: putCreativeLayer

 /**
  * put creative layer
  */
 private function putCreativeLayer(RevSlide $slide, $static_slide = false)
 {
     $layers = $slide->getLayers();
     $slider_type = $this->slider->getParam('slider-type');
     $icon_sets = RevSliderBase::set_icon_sets(array());
     $customAnimations = RevSliderOperations::getCustomAnimations('customin');
     //get all custom animations
     $customEndAnimations = RevSliderOperations::getCustomAnimations('customout');
     //get all custom animations
     $startAnimations = RevSliderOperations::getArrAnimations(false);
     //only get the standard animations
     $endAnimations = RevSliderOperations::getArrEndAnimations(false);
     //only get the standard animations
     $fullCustomAnims = RevSliderOperations::getFullCustomAnimations();
     $lazyLoad = $this->slider->getParam('lazy_load_type', false);
     if ($lazyLoad === false) {
         //do fallback checks to removed lazy_load value since version 5.0 and replaced with an enhanced version
         $old_ll = $this->slider->getParam('lazy_load', 'off');
         $lazyLoad = $old_ll == 'on' ? 'all' : 'none';
     }
     $isTemplate = $this->slider->getParam('template', 'false');
     $enable_custom_size_notebook = $this->slider->getParam('enable_custom_size_notebook', 'off');
     $enable_custom_size_tablet = $this->slider->getParam('enable_custom_size_tablet', 'off');
     $enable_custom_size_iphone = $this->slider->getParam('enable_custom_size_iphone', 'off');
     $enabled_sizes = array('desktop' => 'on', 'notebook' => $enable_custom_size_notebook, 'tablet' => $enable_custom_size_tablet, 'mobile' => $enable_custom_size_iphone);
     $adv_resp_sizes = $enable_custom_size_notebook == 'on' || $enable_custom_size_tablet == 'on' || $enable_custom_size_iphone == 'on' ? true : false;
     $image_source_type = $this->slider->getParam('def-image_source_type', 'full');
     if (empty($layers)) {
         return false;
     }
     $zIndex = 5;
     $slideID = $slide->getID();
     $in_class_usage = array();
     foreach ($layers as $layer) {
         $unique_id = RevSliderFunctions::getVal($layer, 'unique_id');
         if ($unique_id == '') {
             $unique_id = $zIndex - 4;
         }
         //$visible = RevSliderFunctions::getVal($layer, 'visible', true);
         //if($visible == false) continue;
         $type = RevSliderFunctions::getVal($layer, 'type', 'text');
         //set if video full screen
         $videoclass = '';
         $isFullWidthVideo = false;
         if ($type == 'video') {
             $videoclass = ' tp-videolayer';
             $videoData = RevSliderFunctions::getVal($layer, 'video_data');
             if (!empty($videoData)) {
                 $videoData = (array) $videoData;
                 $isFullWidthVideo = RevSliderFunctions::getVal($videoData, 'fullwidth');
                 $isFullWidthVideo = RevSliderFunctions::strToBool($isFullWidthVideo);
             } else {
                 $videoData = array();
             }
         }
         $class = RevSliderFunctions::getVal($layer, 'style');
         if (trim($class) !== '') {
             $this->class_include['.' . trim($class)] = true;
             //add classname for style inclusion
             //get class styles for further compare usage
             if (!isset($in_class_usage[trim($class)])) {
                 $in_class_usage[trim($class)] = RevSliderOperations::getCaptionsContentArray(trim($class));
             }
         }
         //set defaults for stylings
         $dff = '';
         $dta = 'left';
         $dfs = 'normal';
         $dtd = 'none';
         $dpa = '0px 0px 0px 0px';
         $dbs = 'none';
         $dbw = '0px';
         $dbr = '0px 0px 0px 0px';
         $dfos = false;
         $dlh = false;
         $dfw = false;
         $dco = false;
         $dcot = 1;
         $dbc = 'transparent';
         $dbt = 1;
         $dboc = 'transparent';
         $dbot = 1;
         /**
          * remove this following to get back to 5.0.4.1 in terms of output styling
          **/
         $do_remove_inline = apply_filters('revslider_remove_inline', true);
         if ($do_remove_inline) {
             if (isset($in_class_usage[trim($class)]) && isset($in_class_usage[trim($class)]['params'])) {
                 //defaults get set here
                 $dfos = isset($in_class_usage[trim($class)]['params']->{'font-size'}) ? $in_class_usage[trim($class)]['params']->{'font-size'} : $dfos;
                 $dlh = isset($in_class_usage[trim($class)]['params']->{'line-height'}) ? $in_class_usage[trim($class)]['params']->{'line-height'} : $dlh;
                 $dfw = isset($in_class_usage[trim($class)]['params']->{'font-weight'}) ? $in_class_usage[trim($class)]['params']->{'font-weight'} : $dfw;
                 $dco = isset($in_class_usage[trim($class)]['params']->{'color'}) ? $in_class_usage[trim($class)]['params']->{'color'} : $dco;
                 $dcot = isset($in_class_usage[trim($class)]['params']->{'color-transparency'}) ? $in_class_usage[trim($class)]['params']->{'color-transparency'} : $dcot;
                 $dbc = isset($in_class_usage[trim($class)]['params']->{'background-color'}) ? $in_class_usage[trim($class)]['params']->{'background-color'} : $dbc;
                 $dbt = isset($in_class_usage[trim($class)]['params']->{'background-transparency'}) ? $in_class_usage[trim($class)]['params']->{'background-transparency'} : $dbt;
                 $dboc = isset($in_class_usage[trim($class)]['params']->{'border-color'}) ? $in_class_usage[trim($class)]['params']->{'border-color'} : $dboc;
//.........这里部分代码省略.........
开发者ID:allanRoberto,项目名称:klassea,代码行数:101,代码来源:output.class.php


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