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


PHP RevSlider::getTitle方法代码示例

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


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

示例1: addShortcodeSettings

 /**
  * Mapping settings for lean method.
  *
  * @since 4.9
  *
  * @param $tag
  *
  * @return array
  */
 public function addShortcodeSettings($tag)
 {
     $slider = new RevSlider();
     $arrSliders = $slider->getArrSliders();
     $revsliders = array();
     if ($arrSliders) {
         foreach ($arrSliders as $slider) {
             /** @var $slider RevSlider */
             $revsliders[$slider->getTitle()] = $slider->getAlias();
         }
     } else {
         $revsliders[__('No sliders found', 'js_composer')] = 0;
     }
     // Add fixes for frontend editor to regenerate id
     return array('base' => $tag, 'name' => __('Revolution Slider', 'js_composer'), 'icon' => 'icon-wpb-revslider', 'category' => __('Content', 'js_composer'), 'description' => __('Place Revolution slider', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Revolution Slider', 'js_composer'), 'param_name' => 'alias', 'admin_label' => true, 'value' => $revsliders, 'save_always' => true, 'description' => __('Select your Revolution Slider.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer'))));
 }
开发者ID:k2jysy,项目名称:wedev,代码行数:25,代码来源:class-vc-vendor-revslider.php

示例2: buildShortcode

 /**
  * @since 4.3
  */
 public function buildShortcode()
 {
     if (class_exists('RevSlider')) {
         $slider = new RevSlider();
         $arrSliders = $slider->getArrSliders();
         $revsliders = array();
         if ($arrSliders) {
             foreach ($arrSliders as $slider) {
                 /** @var $slider RevSlider */
                 $revsliders[$slider->getTitle()] = $slider->getAlias();
             }
         } else {
             $revsliders[__('No sliders found', 'js_composer')] = 0;
         }
         // add shortcode to visual composer
         $this->mapShortcode($revsliders);
         // Add fixes for frontend editor to regenerate id
         if (vc_is_frontend_ajax() || vc_is_frontend_editor()) {
             add_filter('vc_revslider_shortcode', array(&$this, 'setId'));
         }
     }
 }
开发者ID:hikaram,项目名称:wee,代码行数:25,代码来源:class-vc-vendor-revslider.php

示例3: getArrSlidersWithSlidesShort

 /**
  * 
  * get array of sliders with slides, short, assoc.
  */
 public function getArrSlidersWithSlidesShort($filterType = self::SLIDER_TYPE_ALL)
 {
     $arrSliders = self::getArrSlidersShort(null, $filterType);
     $output = array();
     foreach ($arrSliders as $sliderID => $sliderName) {
         $slider = new RevSlider();
         $slider->initByID($sliderID);
         $isFromPosts = $slider->isSlidesFromPosts();
         $isTemplate = $slider->getParam("template", "false");
         //filter by gallery only
         if ($filterType == self::SLIDER_TYPE_POSTS && $isFromPosts == false) {
             continue;
         }
         if ($filterType == self::SLIDER_TYPE_GALLERY && $isFromPosts == true) {
             continue;
         }
         //filter by template type
         if ($filterType == self::SLIDER_TYPE_TEMPLATE && $isTemplate == "false") {
             continue;
         }
         $sliderTitle = $slider->getTitle();
         $arrSlides = $slider->getArrSlidesFromGalleryShort();
         foreach ($arrSlides as $slideID => $slideName) {
             $output[$slideID] = $sliderName . ", " . $slideName;
         }
     }
     return $output;
 }
开发者ID:ConceptHaus,项目名称:huasca,代码行数:32,代码来源:revslider_slider.class.php

示例4: foreach

		}*/
if (!empty($tp_template_slider)) {
    foreach ($tp_template_slider as $m_slider) {
        if ($m_slider['cat'] != 'Premium') {
            continue;
        }
        if (!empty($m_slider['filter']) && is_array($m_slider['filter'])) {
            foreach ($m_slider['filter'] as $f => $v) {
                $m_slider['filter'][$f] = 'temp_' . $v;
            }
        }
        if (!isset($m_slider['installed']) && !isset($m_slider['is_new'])) {
            $c_slider = new RevSlider();
            $c_slider->initByDBData($m_slider);
            $c_slides = $tmpl->getThemePunchTemplateSlides(array($m_slider));
            $c_title = $c_slider->getTitle();
            $width = $c_slider->getParam("width", 1240);
            $height = $c_slider->getParam("height", 868);
            if (!empty($c_slides)) {
                ?>
						<div class="template_group_wrappers <?php 
                if (isset($m_slider['filter'])) {
                    echo implode(' ', $m_slider['filter']);
                }
                ?>
">							
							<?php 
                echo '<div class="template_slider_title">';
                if (isset($m_slider['preview']) && $m_slider['preview'] !== '') {
                    echo '<a href="' . esc_attr($m_slider['preview']) . '" target="_blank" class="icon-preview_slider" style="margin-right:15px"></a>';
                }
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:31,代码来源:template-selector.php

示例5: array

<?php

////////////////////////////////////////////////////////////////////////////////
// SLIDERS //
$revSliders = array();
$slider_items = array();
// Is the "Slider Revolution plugin installed?
if (class_exists('RevSlider')) {
    // Get any "Slider Revolution" sliders that are built out, if any.
    $temp_count = 0;
    $slider = new RevSlider();
    $arrSliders = $slider->getArrSliders();
    if (!empty($arrSliders)) {
        foreach ($arrSliders as $slider) {
            $title = $slider->getTitle();
            $alias = $slider->getAlias();
            $revSliders['REVSLIDER---' . $alias] = 'REVOLUTION: ' . $title;
            $temp_count++;
        }
    }
}
// Get the Espresso sliders
$slider_items = post_array('espresso-slider');
// Add Revolution sliders to the array, if any
if (!empty($revSliders)) {
    $slider_items = array_merge($slider_items, $revSliders);
    ksort($slider_items);
}
if (!empty($slider_items)) {
    $slider_choice = ECF_Field::factory('select', 'slider_choice', __('Slider to display:', 'espresso'));
    $slider_choice->add_options($slider_items);
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:31,代码来源:pages.php

示例6: previewOutputMarkup


//.........这里部分代码省略.........
            $temp_script = substr($content, strpos($content, '<!-- SCRIPT -->'), strpos($content, '<!-- /SCRIPT -->') + 16 - strpos($content, '<!-- SCRIPT -->')) . "\n";
            $scripts .= $temp_script;
            $starthtml = substr($content, 0, strpos($content, '<!-- SCRIPT -->'));
            $endhtml = substr($content, strpos($content, '<!-- /SCRIPT -->') + 16);
            $content = $starthtml . $endhtml;
            //remove from html markup
        }
        $scripts = str_replace(array('<!-- SCRIPT -->', '<!-- /SCRIPT -->'), '', $scripts);
        //remove the tags
        $styles = '';
        while (strpos($content, '<!-- STYLE -->') !== false) {
            $temp_style = substr($content, strpos($content, '<!-- STYLE -->'), strpos($content, '<!-- /STYLE -->') + 15 - strpos($content, '<!-- STYLE -->')) . "\n";
            $styles .= $temp_style;
            $starthtml = substr($content, 0, strpos($content, '<!-- STYLE -->'));
            $endhtml = substr($content, strpos($content, '<!-- /STYLE -->') + 15);
            $content = $starthtml . $endhtml;
            //remove from html markup
        }
        $styles = str_replace(array('<!-- STYLE -->', '<!-- /STYLE -->'), '', $styles);
        //remove the tags
        $full_content = '';
        ob_start();
        ?>
<!DOCTYPE html>
	<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
	<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
	<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
	<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title><?php 
        echo $slider->getTitle();
        ?>
 - Slider Revolution</title>
		<meta name="description" content="Slider Revolution Example" />
		<meta name="keywords" content="fullscreen image, grid layout, flexbox grid, transition" />
		<meta name="author" content="ThemePunch" />
		<meta name="viewport" content="width=device-width, initial-scale=1">

		<!-- LOAD JQUERY LIBRARY -->
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js"></script>
		
		<!-- LOADING FONTS AND ICONS -->
		<?php 
        echo $fonts;
        ?>
		
		<link rel="stylesheet" type="text/css" href="<?php 
        echo $path_fonts;
        ?>
pe-icon-7-stroke/css/pe-icon-7-stroke.css">
		<link rel="stylesheet" type="text/css" href="<?php 
        echo $path_fonts;
        ?>
font-awesome/css/font-awesome.min.css">
		
		<!-- REVOLUTION STYLE SHEETS -->
		<link rel="stylesheet" type="text/css" href="<?php 
        echo $path_css;
        ?>
settings.css">
		<!-- REVOLUTION LAYERS STYLES -->
		<?php 
        if ($export_real) {
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:67,代码来源:operations.class.php

示例7:

    $urlNewPost = RevSliderFunctionsWP::getUrlNewPost();
    $linkNewPost = RevSliderFunctions::getHtmlLink($urlNewPost, '<i class="revicon-pencil-1"></i>' . __('New Post', REVSLIDER_TEXTDOMAIN), 'button_new_post', 'button-primary revblue', true);
    //get ordering
    $arrSortBy = RevSliderFunctionsWP::getArrSortBy();
    $sortBy = $slider->getParam('post_sortby', RevSlider::DEFAULT_POST_SORTBY);
    $selectSortBy = RevSliderFunctions::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
    ?>

	<div class="wrap settings_wrap">
		<div class="title_line">
			<div id="icon-options-general" class="icon32"></div>
			<div class="view_title"><?php 
    _e('Edit Posts', REVSLIDER_TEXTDOMAIN);
    ?>
: <?php 
    echo $slider->getTitle();
    ?>
</div>
		</div>
		<div class="vert_sap"></div>
		
		<?php 
    _e("This is a list of posts that are taken from multiple sources.", REVSLIDER_TEXTDOMAIN);
    ?>
 &nbsp;
		<?php 
    if ($showSortBy == true) {
        ?>

			<?php 
        _e("Sort by", REVSLIDER_TEXTDOMAIN);
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:31,代码来源:slide-overview.php

示例8: form

        function form($instance)
        {
            $defaults = array('mb' => '', 're' => '', 'f' => '');
            $instance = wp_parse_args($instance, $defaults);
            extract($instance);
            $slider = new RevSlider();
            $arrSliders = $slider->getArrSliders();
            $rea = array();
            foreach ($arrSliders as $slider) {
                $stitle = $slider->getTitle();
                $salias = $slider->getAlias();
                if (!isset($rev_slider_name)) {
                    $rev_slider_name = '';
                }
                if ($rev_slider_name == $salias) {
                    $curest = ' selected ';
                } else {
                    $curest = '';
                }
                $rea[$salias] = $stitle;
            }
            echo cb_field($this->get_field_id('re'), aq_field_select('re', $block_id, $rea, $re), 'Revolution Slider') . cb_cl();
            echo cb_field($this->get_field_id('f'), aq_field_select('f', $block_id, cb_yn(), $f), 'Full Width') . cb_cl();
            echo cb_cl() . cb_field($this->get_field_id('mb'), aq_field_input('mb', $block_id, $mb), 'Bottom Margin(without px)', 'half last');
            ?>
Use only on full width layouts.
		<?php 
        }
开发者ID:shuramita,项目名称:dhsd,代码行数:28,代码来源:cb-blocks.php

示例9: layouts_default_content_sources

function layouts_default_content_sources()
{
    $default_content_sources = array();
    // Static Blocks
    $args = array('posts_per_page' => -1, 'post_type' => 'static_block');
    $posts = get_posts($args);
    $options_static_blocks = array();
    foreach ($posts as $key => $value) {
        $options_static_blocks[$value->ID] = $value->post_title;
    }
    $default_content_sources['Static Block'] = $options_static_blocks;
    // Sidebars
    $sidebars = $GLOBALS['wp_registered_sidebars'];
    $options_sidebars = array();
    foreach ($sidebars as $key => $value) {
        $options_sidebars[$value['id']] = $value['name'];
    }
    $default_content_sources['Sidebar'] = $options_sidebars;
    // Slide shows
    if (class_exists('RevSlider')) {
        $ss = new RevSlider();
        $arrSliders = $ss->getArrSliders();
        $options_sliders = array();
        foreach ($arrSliders as $ss) {
            // Slide data
            $id = $ss->getID();
            $title = $ss->getTitle();
            $alias = $ss->getAlias();
            // Select options
            $options_sliders['RevSlider:' . $alias] = $title;
        }
        $default_content_sources['Slide Show'] = $options_sliders;
    }
    // class_exists('RevSlider')
    return array_merge($default_content_sources);
}
开发者ID:ArnaudGuillou,项目名称:SiteESBVolley,代码行数:36,代码来源:theme-options-filters.php

示例10: load_icon


//.........这里部分代码省略.........
jQuery("."+htt).show();
jQuery('#stripes_bg_schema').ddslick({
    onSelected: function(data){
	if(data.selectedIndex > 0) 
       jQuery('#stripes_bg_schema_val').val(data.selectedData.value);
    }   
});
jQuery('#stripes_bg_schema2').ddslick({
    onSelected: function(data){
	if(data.selectedIndex > 0) 
       jQuery('#stripes_bg_schema_val2').val(data.selectedData.value);
    }   
});
});

</script>
<?php 
            /*REVOLUTION SLIDER*/
            ?>
							<div class="revo hide_slider">
							<?php 
            if (in_array('revslider/revslider.php', apply_filters('active_plugins', get_option('active_plugins')))) {
                ?>
								<div class="pd5">
									<label><?php 
                _e('Slider Name', 'cb-getrends');
                ?>
 </label> <select
										name="rev_slider_name">
										<?php 
                $slider = new RevSlider();
                $arrSliders = $slider->getArrSliders();
                foreach ($arrSliders as $slider) {
                    $stitle = $slider->getTitle();
                    $salias = $slider->getAlias();
                    if ($rev_slider_name == $salias) {
                        $curest = ' selected ';
                    } else {
                        $curest = '';
                    }
                    echo '<option value=' . $salias . ' ' . $curest . '>' . $stitle . '</option>';
                }
                ?>
									</select>
								</div>
								<?php 
            }
            ?>

								<br />
								<?php 
            _e('You can configure Revolution Slider by', 'cb-getrends');
            ?>
								<b> <a href="admin.php?page=revslider">clicking here</a> </b><br />

							</div>
							<?php 
            /*REVOLUTION SLIDER END*/
            ?>


							<?php 
            /*ANYTHING SLIDER*/
            $tttra = '';
            ?>
							<div class="any hide_slider">
开发者ID:shuramita,项目名称:dhsd,代码行数:67,代码来源:cb-menu.php

示例11: new_meta_boxes_post


//.........这里部分代码省略.........
            if ($home_slider == 'nivo') {
                $hslider4 = ' selected="selected"';
            } else {
                $hslider4 = '';
            }
            if ($home_slider == 'drag') {
                $hslider5 = ' selected="selected"';
            } else {
                $hslider5 = '';
            }
            if ($home_slider == 'full') {
                $hslider6 = ' selected="selected"';
            } else {
                $hslider6 = '';
            }
            if ($home_slider == 'revo') {
                $hslider7 = ' selected="selected"';
            } else {
                $hslider7 = '';
            }
            echo '<div class="frame round"><div class="framein round"><b>' . __('Slider', 'cb-getrends') . '</b><br/><br/>
<select name="cb4_home_slider" id="home_slider"><option value="none">' . __('None', 'cb-getrends') . '</option>
<option value="revo"' . $hslider7 . '>' . __('Revolution Slider', 'cb-getrends') . '</option>
<option value="any"' . $hslider1 . '>' . __('Anything Slider', 'cb-getrends') . '</option>
<option value="full"' . $hslider6 . '>' . __('FullScreen Slider', 'cb-getrends') . '</option>

</select><br/><br/>' . __('Slider settings can be set up in GE Trends Menu in Slider Tab.', 'cb-getrends') . '</div></div>';
            echo '<div class="frame round revo "><div class="framein round"><b>' . __('Revolution Slider Name', 'cb-getrends') . ':</b><br/><br/>';
            echo '<div ><select name="cb4_revo_type">';
            $revo_type = esc_attr(get_post_meta($post->ID, 'cb4_revo_type', 'true'));
            $slider = new RevSlider();
            $arrSliders = $slider->getArrSliders();
            foreach ($arrSliders as $slider) {
                $stitle = $slider->getTitle();
                $salias = $slider->getAlias();
                if ($revo_type == $salias) {
                    $curest = ' selected ';
                } else {
                    $curest = '';
                }
                echo '<option value=' . $salias . ' ' . $curest . '>' . $stitle . '</option>';
            }
            echo '</select></div>
</div>
</div></div>';
            echo '<script type="text/javascript">
 var ht="";
    jQuery("select#home_slider").change(function () {
          jQuery("select#home_slider option:selected").each(function () {
                ht=jQuery(this).val();
              });
          if(ht=="revo") jQuery("."+ht).show(); else jQuery(".revo").hide();

        }).change();';
            if ($home_slider == 'revo') {
                echo 'jQuery(document).ready(function(){
jQuery(".revo").show();
});';
            }
            echo '</script>';
            echo '<div class="bg_head hide_head" style="display:none;">';
            echo '<div class="frame round"><div class="framein round"><b>' . __('Background Image', 'cb-getrends') . ':</b><br/><br/>';
            echo '<input id="cb4_header_bg_image" type="text" size="36" name="cb4_header_bg_image" class="upurl input-upload" value="' . $header_bg_image . '" /><input style="cursor:pointer;" class="upload_button" type="button" value="' . __('Upload Image', 'cb-getrends') . '" /><br /><br/>' . __('Enter an URL or upload image', 'cb-getrends') . '.';
            echo '</div></div>';
            echo '<div class="frame round"><div class="framein round"><b>' . __('Header Top Padding Height', 'cb-getrends') . ':</b><br/><br/>';
            echo '<input name="cb4_header_height" type="text" value="' . $header_height . '"/>';
开发者ID:shuramita,项目名称:dhsd,代码行数:67,代码来源:post-page-config.php

示例12: explode


//.........这里部分代码省略.........
            ?>
 />
		    <input style="display:none;" name="udesign_options[c3_autostop]" type="checkbox" id="c3_autostop" value="yes" <?php 
            checked('yes', $options['c3_autostop']);
            ?>
 />
		    <input name="udesign_options[no_slider_text]" type="hidden" id="no_slider_text" value="<?php 
            if ($options['no_slider_text']) {
                echo esc_attr($options['no_slider_text']);
            }
            ?>
" />

<?php 
            if (!is_plugin_active('revslider/revslider.php')) {
                ?>
                        <div style="background-color:#FFEBE8; border:1px solid #C00; padding:0 0.8em; margin:10px 0;">
                            <p style="font-weight:bold;"><?php 
                printf(__('You need  to install the "Revolution Slider" first before using this feature. You may install the slider through the %1$sInstall Plugins%2$s section.', 'udesign'), '<a href="themes.php?page=install-required-plugins">', '</a>');
                ?>
</p>
                        </div>
<?php 
            } else {
                ?>
                        <table class="form-table">
                            <tbody>
                                <tr valign="top">
                                    <th scope="row"><?php 
                esc_html_e('Revolution Slider', 'udesign');
                ?>
</th>
                                    <td>
  <?php 
                $slider = new RevSlider();
                $arrSliders = $slider->getArrSliders();
                if (empty($arrSliders)) {
                    ?>
                                            <div style="background-color:#FFFFE0; border:1px solid #E6DB55; padding:0 0.8em; margin:0;">
                                                <p style="font-weight:bold; margin:7px 0;"><?php 
                    printf(__('No sliders found!  Please create a new slider from the %1$sRevolution Slider%2$s page.', 'udesign'), '<a href="admin.php?page=revslider">', '</a>');
                    ?>
</p>
                                            </div>
<?php 
                } else {
                    ?>
                                            <label for="current_rev_slider"><?php 
                    esc_html_e('Choose a Revolution Slider:', 'udesign');
                    ?>
</label>
                                            <select name="udesign_options[rev_slider_shortcode]" id="current_rev_slider">
                                                    <option value=""<?php 
                    echo $options['rev_slider_shortcode'] == '' ? ' selected="selected"' : '';
                    ?>
><?php 
                    esc_html_e('--Select Slider--', 'udesign');
                    ?>
</option> 
<?php 
                    foreach ($arrSliders as $slider) {
                        ?>
                                                    <option value="<?php 
                        echo $slider->getShortcode();
                        ?>
"<?php 
                        echo $slider->getShortcode() == $options['rev_slider_shortcode'] ? ' selected="selected"' : '';
                        ?>
><?php 
                        echo $slider->getTitle();
                        ?>
</option> 
<?php 
                    }
                    ?>
                                            </select><br />
                                            <span class="description"><?php 
                    printf(__('To create additional sliders or to configure the existing ones please refer to the %1$sRevolution Slider%2$s page.', 'udesign'), '<a href="admin.php?page=revslider">', '</a>');
                    ?>
</span><br />
                                            <span class="description"><?php 
                    printf(__('For help please refer to the %1$sDocumentation%2$s.', 'udesign'), '<a target="_blank" href="' . get_bloginfo('template_url') . '/scripts/documentation/index.html#revslider-description">', '</a>');
                    ?>
</span>
                                            <div class="clear"></div>
<?php 
                }
                ?>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
<?php 
            }
            ?>
    
<?php 
        }
        display_save_changes_button();
    }
开发者ID:nimishavyas,项目名称:proiti,代码行数:101,代码来源:udesign_options_page.php


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