本文整理汇总了PHP中UniteBaseClassRev类的典型用法代码示例。如果您正苦于以下问题:PHP UniteBaseClassRev类的具体用法?PHP UniteBaseClassRev怎么用?PHP UniteBaseClassRev使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UniteBaseClassRev类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: onAddScripts
/**
*
* a must function. you can not use it, but the function must stay there!.
*
*/
public static function onAddScripts()
{
global $wp_version;
$style_pre = '';
$style_post = '';
if ($wp_version < 3.7) {
$style_pre = '<style type="text/css">';
$style_post = '</style>';
}
$operations = new RevOperations();
$arrValues = $operations->getGeneralSettingsValues();
$includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
$includesFooter = UniteFunctionsRev::getVal($arrValues, "js_to_footer", "off");
$strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
$isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
//put the includes only on pages with active widget or shortcode
// if the put in match, then include them always (ignore this if)
if ($isPutIn == false && $includesGlobally == "off") {
$isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
$hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
if ($isWidgetActive == false && $hasShortcode == false) {
return false;
}
}
self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $style_pre . $custom_css . $style_post);
/*
*/
/*
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
$styles = UniteCssParserRev::compress_css($styles);
wp_add_inline_style( 'rs-plugin-settings', $style_pre.$styles.$style_post );
// KRISZTIAN MODIFICATION FOR INNERLAYERS
$stylesinnerlayers = str_replace('.tp-caption', '',$styles);´
wp_add_inline_style( 'rs-plugin-settings', $style_pre.$stylesinnerlayers.$style_post );
// END MODIFICATION
*/
$setBase = is_ssl() ? "https://" : "http://";
$url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
self::addScriptAbsoluteUrl($url_jquery, "jquery");
if ($includesFooter == "off") {
$waitfor = array('jquery');
$enable_logs = UniteFunctionsRev::getVal($arrValues, "enable_logs", 'off');
if ($enable_logs == 'on') {
self::addScriptWaitFor("jquery.themepunch.enablelog", "rs-plugin/js", 'enable-logs');
$waitfor[] = 'enable-logs';
}
self::addScriptWaitFor("jquery.themepunch.tools.min", "rs-plugin/js", 'tp-tools', $waitfor);
self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'tp-tools');
} else {
//put javascript to footer
UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
}
}
开发者ID:epiii,项目名称:aros,代码行数:63,代码来源:revslider_front.php
示例2: drawImageInput
/**
*
* draw imaeg input:
* @param $setting
*/
protected function drawImageInput($setting)
{
$class = UniteFunctionsRev::getVal($setting, "class");
if (!empty($class)) {
$class = "class='{$class}'";
}
$settingsID = $setting["id"];
$buttonID = $settingsID . "_button";
$spanPreviewID = $buttonID . "_preview";
$img = "";
$value = UniteFunctionsRev::getVal($setting, "value");
if (!empty($value)) {
$urlImage = $value;
$imagePath = UniteFunctionsWPRev::getImageRealPathFromUrl($urlImage);
if (file_exists($realPath)) {
$filepath = UniteFunctionsWPRev::getImagePathFromURL($urlImage);
$urlImage = UniteBaseClassRev::getImageUrl($filepath, 100, 70, true);
}
$img = "<img width='100' height='70' src='{$urlImage}'></img>";
}
?>
<span id='<?php
echo $spanPreviewID;
?>
' class='setting-image-preview'><?php
echo $img;
?>
</span>
<input type="hidden" id="<?php
echo $setting["id"];
?>
" name="<?php
echo $setting["name"];
?>
" value="<?php
echo $setting["value"];
?>
" />
<input type="button" id="<?php
echo $buttonID;
?>
" class='button-image-select <?php
echo $class;
?>
' value="Choose Image"></input>
<?php
}
开发者ID:venkimithu,项目名称:npmgroups,代码行数:55,代码来源:settings_product.class.php
示例3: onAddScripts
/**
*
* a must function. you can not use it, but the function must stay there!.
*
*/
public static function onAddScripts()
{
$operations = new RevOperations();
$arrValues = $operations->getGeneralSettingsValues();
$includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
$includesFooter = UniteFunctionsRev::getVal($arrValues, "js_to_footer", "off");
$strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
$isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
//put the includes only on pages with active widget or shortcode
// if the put in match, then include them always (ignore this if)
if ($isPutIn == false && $includesGlobally == "off") {
$isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
$hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
if ($isWidgetActive == false && $hasShortcode == false) {
return false;
}
}
self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
//check if dynamic-captions.css exists. If not, include captions.php
if (file_exists(self::$path_plugin . "rs-plugin/css/dynamic-captions.css") == false) {
self::addDynamicStyle("captions", "rs-plugin-captions", "rs-plugin/css");
} else {
$db = new UniteDBRev();
$styles = $db->fetch(GlobalsRevSlider::$table_css);
$styles = UniteCssParserRev::parseDbArrayToCss($styles, "\n");
wp_add_inline_style('rs-plugin-settings', $styles);
//self::addStyle("dynamic-captions","rs-captions","rs-plugin/css");
}
$custom_css = RevOperations::getStaticCss();
wp_add_inline_style('rs-plugin-settings', $custom_css);
//self::addStyle("static-captions","rs-plugin-static","rs-plugin/css");
$setBase = is_ssl() ? "https://" : "http://";
$url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
self::addScriptAbsoluteUrl($url_jquery, "jquery");
if ($includesFooter == "off") {
self::addScriptWaitFor("jquery.themepunch.plugins.min", "rs-plugin/js", 'themepunchtools', 'jquery');
self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'jquery');
} else {
//put javascript to footer
UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
}
}
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:47,代码来源:revslider_front.php
示例4: onAddScripts
public static function onAddScripts()
{
global $wp_version;
$style_pre = '';
$style_post = '';
if ($wp_version < 3.7) {
$style_pre = '<style type="text/css">';
$style_post = '</style>';
}
$operations = new RevOperations();
$arrValues = $operations->getGeneralSettingsValues();
$includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
$includesFooter = UniteFunctionsRev::getVal($arrValues, "js_to_footer", "off");
$strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
$isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
if ($isPutIn == false && $includesGlobally == "off") {
$isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
$hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
if ($isWidgetActive == false && $hasShortcode == false) {
return false;
}
}
self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $style_pre . $custom_css . $style_post);
$setBase = get_http();
$url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
self::addScriptAbsoluteUrl($url_jquery, "jquery");
if ($includesFooter == "off") {
$waitfor = array('jquery');
$enable_logs = UniteFunctionsRev::getVal($arrValues, "enable_logs", 'off');
if ($enable_logs == 'on') {
self::addScriptWaitFor("jquery.themepunch.enablelog", "rs-plugin/js", 'enable-logs');
$waitfor[] = 'enable-logs';
}
self::addScriptWaitFor("jquery.themepunch.tools.min", "rs-plugin/js", 'tp-tools', $waitfor);
self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'tp-tools');
} else {
UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
}
}
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:42,代码来源:revslider_front.php
示例5: __construct
/**
*
* the constructor
*/
public function __construct()
{
UniteBaseClassRev::__construct('', $this);
//set table names
GlobalsRevSlider::$table_sliders = GlobalsRevSlider::TABLE_SLIDERS_NAME;
GlobalsRevSlider::$table_slides = GlobalsRevSlider::TABLE_SLIDES_NAME;
GlobalsRevSlider::$table_static_slides = GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME;
GlobalsRevSlider::$table_settings = GlobalsRevSlider::TABLE_SETTINGS_NAME;
GlobalsRevSlider::$table_css = GlobalsRevSlider::TABLE_CSS_NAME;
GlobalsRevSlider::$table_layer_anims = GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME;
GlobalsRevSlider::$filepath_backup = self::$path_plugin . "backup/";
GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css";
GlobalsRevSlider::$urlCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/dynamic.css');
GlobalsRevSlider::$urlStaticCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/static.css');
GlobalsRevSlider::$filepath_dynamic_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/dynamic-captions.css";
GlobalsRevSlider::$filepath_static_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/static-captions.css";
GlobalsRevSlider::$filepath_captions_original = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/captions-original.css";
GlobalsRevSlider::$urlExportZip = Mage::getBaseDir('tmp') . '/revslider_export.zip';
$this->init();
}
开发者ID:perseusl,项目名称:kingdavid,代码行数:24,代码来源:revslider_admin.php
示例6: onAddScripts
/**
*
* a must function. you can not use it, but the function must stay there!.
*
*/
public static function onAddScripts()
{
$operations = new RevOperations();
$arrValues = $operations->getGeneralSettingsValues();
$includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally", "on");
$includesFooter = UniteFunctionsRev::getVal($arrValues, "js_to_footer", "off");
$strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
$isPutIn = RevSliderOutput::isPutIn($strPutIn, true);
//put the includes only on pages with active widget or shortcode
// if the put in match, then include them always (ignore this if)
if ($isPutIn == false && $includesGlobally == "off") {
$isWidgetActive = is_active_widget(false, false, "rev-slider-widget", true);
$hasShortcode = UniteFunctionsWPRev::hasShortcode("rev_slider");
if ($isWidgetActive == false && $hasShortcode == false) {
return false;
}
}
self::addStyle("settings", "rs-plugin-settings", "rs-plugin/css");
$custom_css = RevOperations::getStaticCss();
$custom_css = UniteCssParserRev::compress_css($custom_css);
wp_add_inline_style('rs-plugin-settings', $custom_css);
$setBase = is_ssl() ? "https://" : "http://";
$url_jquery = $setBase . "ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?app=revolution";
self::addScriptAbsoluteUrl($url_jquery, "jquery");
if ($includesFooter == "off") {
$use_hammer = UniteFunctionsRev::getVal($arrValues, "use_hammer_js", 'on');
$waitfor = array('jquery');
if ($use_hammer == 'off') {
self::addScriptWaitFor("jquery.themepunch.disablehammer", "rs-plugin/js", 'disable-hammer');
$waitfor[] = 'disable-hammer';
}
self::addScriptWaitFor("jquery.themepunch.tools.min", "rs-plugin/js", 'tp-tools', $waitfor);
self::addScriptWaitFor("jquery.themepunch.revolution.min", "rs-plugin/js", 'revmin', 'tp-tools');
} else {
//put javascript to footer
UniteBaseClassRev::addAction('wp_footer', 'putJavascript');
}
}
开发者ID:IDOAgency,项目名称:PAHClinic,代码行数:43,代码来源:revslider_front.php
示例7: putSlides
/**
*
* put the slider slides
*/
private function putSlides()
{
$sliderType = $this->slider->getParam("slider_type");
$publishedOnly = true;
if ($this->previewMode == true && $this->oneSlideMode == true) {
$previewSlideID = UniteFunctionsRev::getVal($this->oneSlideData, "slideid");
$previewSlide = new RevSlide();
$previewSlide->initByID($previewSlideID);
$slides = array($previewSlide);
} else {
$slides = $this->slider->getSlidesForOutput($publishedOnly, $this->sliderLang);
}
$this->slidesNumIndex = $this->slider->getSlidesNumbersByIDs(true);
if (empty($slides)) {
?>
<div class="no-slides-text">
No slides found, please add some slides
</div>
<?php
}
$thumbWidth = $this->slider->getParam("thumb_width", 100);
$thumbHeight = $this->slider->getParam("thumb_height", 50);
$slideWidth = $this->slider->getParam("width", 900);
$slideHeight = $this->slider->getParam("height", 300);
$navigationType = $this->slider->getParam("navigaion_type", "none");
$isThumbsActive = $navigationType == "thumb" ? true : false;
//for one slide preview
if ($this->oneSlideMode == true) {
$slides = $this->filterOneSlide($slides);
}
?>
<ul>
<?php
foreach ($slides as $index => $slide) {
$params = $slide->getParams();
//check if date is set
$date_from = $slide->getParam("date_from", "");
$date_to = $slide->getParam("date_to", "");
if ($date_from != "") {
$date_from = strtotime($date_from);
if (time() < $date_from) {
continue;
}
}
if ($date_to != "") {
$date_to = strtotime($date_to);
if (time() > $date_to) {
continue;
}
}
$transition = $slide->getParam("slide_transition", "random");
$slotAmount = $slide->getParam("slot_amount", "7");
$urlSlideImage = $slide->getImageUrl();
//get image alt
$imageFilename = $slide->getImageFilename();
$info = pathinfo($imageFilename);
$alt = $info["filename"];
//get thumb url
$htmlThumb = "";
if ($isThumbsActive == true) {
$urlThumb = $slide->getParam("slide_thumb", "");
if (empty($urlThumb)) {
//try to get resized thumb
$pathThumb = $slide->getImageFilepath();
if (!empty($pathThumb)) {
$urlThumb = UniteBaseClassRev::getImageUrl($pathThumb, $thumbWidth, $thumbHeight, true);
}
}
//if not - put regular image:
if (empty($urlThumb)) {
$urlThumb = $slide->getImageUrl();
}
$htmlThumb = 'data-thumb="' . $urlThumb . '" ';
}
//get link
$htmlLink = "";
$enableLink = $slide->getParam("enable_link", "false");
if ($enableLink == "true") {
$linkType = $slide->getParam("link_type", "regular");
switch ($linkType) {
//---- normal link
default:
case "regular":
$link = $slide->getParam("link", "");
$linkOpenIn = $slide->getParam("link_open_in", "same");
$htmlTarget = "";
if ($linkOpenIn == "new") {
$htmlTarget = ' data-target="_blank"';
}
$htmlLink = "data-link=\"{$link}\" {$htmlTarget} ";
break;
//---- link to slide
//---- link to slide
case "slide":
$slideLink = UniteFunctionsRev::getVal($params, "slide_link");
if (!empty($slideLink) && $slideLink != "nothing") {
//.........这里部分代码省略.........
开发者ID:scoutrul,项目名称:sys,代码行数:101,代码来源:revslider_output.class.php
示例8: putSlides
//.........这里部分代码省略.........
//if(trim($transition) == '')
// $transition = $transitionPremium;
//else
// if(trim($transitionPremium) != '') $transition .= ','.$transitionPremium;
$slotAmount = $slide->getParam("slot_amount", "7");
$isExternal = $slide->getParam("background_type", "image");
if ($isExternal != "external") {
$urlSlideImage = $slide->getImageUrl();
//get image alt
$imageFilename = $slide->getImageFilename();
$info = pathinfo($imageFilename);
$alt = $info["filename"];
} else {
$urlSlideImage = $slide->getParam("slide_bg_external", "");
$info = '';
$alt = '';
}
$bgType = $slide->getParam("background_type", "image");
//get thumb url
$htmlThumb = "";
if ($isThumbsActive == true) {
$urlThumb = null;
//check if post slider, if yes, get thumb from featured image
//if($this->slider->isSlidesFromPosts())
// $urlThumb = '';
if (empty($urlThumb)) {
$urlThumb = $slide->getParam("slide_thumb", "");
}
if ($bgType == 'image') {
if (empty($urlThumb)) {
//try to get resized thumb
$pathThumb = $slide->getImageFilepath();
if (!empty($pathThumb)) {
$urlThumb = UniteBaseClassRev::getImageUrl($pathThumb, $thumbWidth, $thumbHeight, true);
}
}
//if not - put regular image:
if (empty($urlThumb)) {
$urlThumb = $slide->getImageUrl();
}
}
$htmlThumb = 'data-thumb="' . $urlThumb . '" ';
}
//get link
$htmlLink = "";
$enableLink = $slide->getParam("enable_link", "false");
if ($enableLink == "true") {
$linkType = $slide->getParam("link_type", "regular");
switch ($linkType) {
//---- normal link
default:
case "regular":
$link = $slide->getParam("link", "");
$linkOpenIn = $slide->getParam("link_open_in", "same");
$htmlTarget = "";
if ($linkOpenIn == "new") {
$htmlTarget = ' data-target="_blank"';
}
$htmlLink = "data-link=\"{$link}\" {$htmlTarget} ";
break;
//---- link to slide
//---- link to slide
case "slide":
$slideLink = UniteFunctionsRev::getVal($params, "slide_link");
if (!empty($slideLink) && $slideLink != "nothing") {
//get slide index from id
开发者ID:proj-2014,项目名称:vlan247-test-wp2,代码行数:67,代码来源:revslider_output.class.php
示例9: putSlides
/**
*
* put the slider slides
*/
private function putSlides()
{
$sliderType = $this->slider->getParam("slider_type");
$slides = $this->slider->getSlides();
$this->slidesNumIndex = $this->slider->getSlidesNumbersByIDs();
if (empty($slides)) {
?>
<div class="no-slides-text">
No slides found, please add some slides
</div>
<?php
}
$thumbWidth = $this->slider->getParam("thumb_width", 100);
$thumbHeight = $this->slider->getParam("thumb_height", 50);
$slideWidth = $this->slider->getParam("width", 900);
$slideHeight = $this->slider->getParam("height", 300);
$navigationType = $this->slider->getParam("navigaion_type", "none");
$isThumbsActive = $navigationType == "thumb" ? true : false;
//for one slide preview
if ($this->oneSlideMode == true) {
$slides = $this->filterOneSlide($slides);
}
?>
<ul>
<?php
foreach ($slides as $slide) {
$params = $slide->getParams();
$transition = $slide->getParam("slide_transition", "random");
$slotAmount = $slide->getParam("slot_amount", "7");
$urlSlideImage = $slide->getImageUrl();
//get image alt
$imageFilename = $slide->getImageFilename();
$info = pathinfo($imageFilename);
$alt = $info["filename"];
//get thumb url
$htmlThumb = "";
if ($isThumbsActive == true) {
$urlThumb = $slide->getParam("slide_thumb", "");
if (empty($urlThumb)) {
//try to get resized thumb
$pathThumb = $slide->getImageFilepath();
if (!empty($pathThumb)) {
$urlThumb = UniteBaseClassRev::getImageUrl($pathThumb, $thumbWidth, $thumbHeight, true);
}
}
//if not - put regular image:
if (empty($urlThumb)) {
$urlThumb = $slide->getImageUrl();
}
$htmlThumb = 'data-thumb="' . $urlThumb . '" ';
}
//get link
$htmlLink = "";
$enableLink = $slide->getParam("enable_link", "false");
if ($enableLink == "true") {
$linkType = $slide->getParam("link_type", "regular");
switch ($linkType) {
//---- normal link
default:
case "regular":
$link = $slide->getParam("link", "");
$linkOpenIn = $slide->getParam("link_open_in", "same");
$htmlTarget = "";
if ($linkOpenIn == "new") {
$htmlTarget = ' data-target="_blank"';
}
$htmlLink = "data-link=\"{$link}\" {$htmlTarget} ";
break;
//---- link to slide
//---- link to slide
case "slide":
$slideLink = UniteFunctionsRev::getVal($params, "slide_link");
if (!empty($slideLink) && $slideLink != "nothing") {
//get slide index from id
if (is_numeric($slideLink)) {
$slideLink = UniteFunctionsRev::getVal($this->slidesNumIndex, $slideLink);
}
if (!empty($slideLink)) {
$htmlLink = "data-link=\"slide\" data-linktoslide=\"{$slideLink}\" ";
}
}
break;
}
//set link position:
$linkPos = UniteFunctionsRev::getVal($params, "link_pos", "front");
if ($linkPos == "back") {
$htmlLink .= ' data-slideindex="back"';
}
}
//set delay
$htmlDelay = "";
$delay = $slide->getParam("delay", "");
if (!empty($delay) && is_numeric($delay)) {
$htmlDelay = "data-delay=\"{$delay}\" ";
}
//get duration
//.........这里部分代码省略.........
开发者ID:nimishavyas,项目名称:proiti,代码行数:101,代码来源:revslider_output.class.php
示例10: putSlides
/**
*
* put the slider slides
*/
private function putSlides()
{
$slides = $this->slider->getSlides();
if (empty($slides)) {
?>
<div class="no-slides-text">
No slides found, please add some slides
</div>
<?php
}
$thumbWidth = $this->slider->getParam("thumb_width", 100);
$thumbHeight = $this->slider->getParam("thumb_height", 50);
$slideWidth = $this->slider->getParam("width", 900);
$slideHeight = $this->slider->getParam("height", 300);
$navigationType = $this->slider->getParam("navigaion_type", "none");
$isThumbsActive = $navigationType == "thumb" ? true : false;
$flagReize = $this->slider->getParam("php_resize", "none");
$flagReize = $flagReize == "on" ? true : false;
?>
<ul>
<?php
foreach ($slides as $slide) {
$params = $slide->getParams();
$transition = $slide->getParam("slide_transition", "random");
$slotAmount = $slide->getParam("slot_amount", "7");
$urlSlideImage = $slide->getImageUrl();
if ($flagReize == true) {
$pathSlideImage = $slide->getImageFilepath();
if (!empty($pathSlideImage)) {
$urlSlideImage = UniteBaseClassRev::getImageUrl($pathSlideImage, $slideWidth, $slideHeight, true);
}
}
//get thumb url
$htmlThumb = "";
if ($isThumbsActive == true) {
$urlThumb = $slide->getParam("slide_thumb", "");
if (empty($urlThumb)) {
//try to get resized thumb
$pathThumb = $slide->getImageFilepath();
if (!empty($pathThumb)) {
$urlThumb = UniteBaseClassRev::getImageUrl($pathThumb, $thumbWidth, $thumbHeight, true);
}
}
//if not - put regular image:
if (empty($urlThumb)) {
$urlThumb = $slide->getImageUrl();
}
$htmlThumb = 'data-thumb="' . $urlThumb . '" ';
}
//get link
$htmlLink = "";
$enableLink = $slide->getParam("enable_link", "false");
if ($enableLink == "true") {
$link = $slide->getParam("link", "");
$linkOpenIn = $slide->getParam("link_open_in", "same");
$htmlTarget = "";
if ($linkOpenIn == "new") {
$htmlTarget = ' data-target="_blank"';
}
$htmlLink = "data-link=\"{$link}\" {$htmlTarget} ";
}
//set delay
$htmlDelay = "";
$delay = $slide->getParam("delay", "");
if (!empty($delay) && is_numeric($delay)) {
$htmlDelay = "data-delay=\"{$delay}\" ";
}
//get duration
$htmlDuration = "";
$duration = $slide->getParam("transition_duration", "");
if (!empty($duration) && is_numeric($duration)) {
$htmlDuration = "data-masterspeed=\"{$duration}\" ";
}
//get rotation
$htmlRotation = "";
$rotation = $slide->getParam("transition_rotation", "");
if (!empty($rotation)) {
$rotation = (int) $rotation;
if ($rotation != 0) {
if ($rotation > 720 && $rotation != 999) {
$rotation = 720;
}
if ($rotation < -720) {
$rotation = -720;
}
}
$htmlRotation = "data-rotate=\"{$rotation}\" ";
}
$videoData = $this->getSlideFullWidthVideoData($slide);
$htmlParams = $htmlDuration . $htmlLink . $htmlThumb . $htmlDelay . $htmlRotation;
//Html
?>
<li data-transition="<?php
echo $transition;
?>
" data-slotamount="<?php
//.........这里部分代码省略.........
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:101,代码来源:revslider_output.class.php
示例11: add_shortcode
function add_shortcode($tag, $func)
{
UniteBaseClassRev::add_shortcode($tag, $func);
}
开发者ID:evgrishin,项目名称:se1614,代码行数:4,代码来源:revprestashoploader.php
示例12: do_shortcode
function do_shortcode($str)
{
return UniteBaseClassRev::parse($str);
}
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:4,代码来源:revslideropencart_loader.php
示例13: getUrlImageThumb
/**
*
* get thumb url
*/
public function getUrlImageThumb()
{
//get image url by thumb
if (!empty($this->imageID)) {
$urlImage = UniteFunctionsWPRev::getUrlAttachmentImage($this->imageID, UniteFunctionsWPRev::THUMB_MEDIUM);
} else {
//get from cache
if (!empty($this->imageFilepath)) {
$urlImage = UniteBaseClassRev::getImageUrl($this->imageFilepath, 200, 100, true);
} else {
$urlImage = $this->imageUrl;
}
}
if (empty($urlImage)) {
$urlImage = $this->imageUrl;
}
return $urlImage;
}
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:22,代码来源:revslider_slide.class.php
示例14: __construct
/**
*
* main constructor
*/
public function __construct($mainFile, $t, $defaultView)
{
parent::__construct($mainFile, $t);
//set view
self::$view = self::getGetVar("view");
if (empty(self::$view)) {
self::$view = $defaultView;
}
//add internal hook for adding a menu in arrMenus
self::addAction(self::ACTION_ADMIN_MENU, "addAdminMenu");
//if not inside plugin don't continue
if ($this->isInsidePlugin() == true) {
self::addAction(self::ACTION_ADD_SCRIPTS, "addCommonScripts");
self::addAction(self::ACTION_ADD_SCRIPTS, "onAddScripts");
}
//a must event for any admin. call onActivate function.
$this->addEvent_onActivate();
self::addActionAjax("show_image", "onShowImage");
}
开发者ID:venkimithu,项目名称:npmgroups,代码行数:23,代码来源:base_admin.class.php
示例15: __construct
public function __construct($mainFile, $t)
{
parent::__construct($mainFile, $t);
self::addAction(self::ACTION_ENQUEUE_SCRIPTS, "onAddScripts");
}
开发者ID:evgrishin,项目名称:se1614,代码行数:5,代码来源:base_front.class.php
示例16: setPathCache
/**
*
* set cache path for images. for multisite it will be current blog content folder
*/
private static function setPathCache()
{
self::$path_cache = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
}
开发者ID:perseusl,项目名称:kingdavid,代码行数:8,代码来源:base.class.php
示例17: setDebugMode
/**
*
* set debug mode.
*/
public static function setDebugMode()
{
self::$debugMode = true;
}
开发者ID:brianmontecillo,项目名称:wordpress,代码行数:8,代码来源:base.class.php
示例18: __construct
/**
*
* main constructor
*/
public function __construct($mainFile, $t)
{
parent::__construct($mainFile, $t);
self::addAction(self::ACTION_ENQUEUE_SCRIPTS, "onAddScripts");
add_filter('wp_footer', array($this, 'onAddScriptsHtml'));
}
开发者ID:nazarmak,项目名称:wp-content,代码行数:10,代码来源:base_front.class.php
注:本文中的UniteBaseClassRev类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论