本文整理汇总了PHP中UniteSettingsAdvancedRev类的典型用法代码示例。如果您正苦于以下问题:PHP UniteSettingsAdvancedRev类的具体用法?PHP UniteSettingsAdvancedRev怎么用?PHP UniteSettingsAdvancedRev使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UniteSettingsAdvancedRev类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getWildcardsSettings
/**
*
* get wildcards settings object
* $isInsidePost it means that it's used inside the post and not template page.
*/
public static function getWildcardsSettings(){
$settings = new UniteSettingsAdvancedRev();
//add youtube, excerpt and vimeo id
$slider = new RevSlider();
$arrOutput = array();
$arrOutput["default"] = "default";
$arrSlides = $slider->getArrSlidersWithSlidesShort(RevSlider::SLIDER_TYPE_TEMPLATE);
$arrOutput = $arrOutput + $arrSlides; //union arrays
$settings->addSelect("slide_template", $arrOutput, __("Choose Slide Template",REVSLIDER_TEXTDOMAIN),"default");
/*
$params = array("class"=>"textbox_small","description"=>"Overwrite the global excerpt words limit option for this post");
$settings->addTextBox("revslider_excerpt_limit", "", "Excerpt Words Limit",$params);
$params = array("description"=>"The youtube ID, example: 9bZkp7q19f0");
$settings->addTextBox("youtube_id", "", "Youtube ID", $params);
$params = array("description"=>"The youtube ID, example: 18554749");
$settings->addTextBox("vimeo_id", "", "Vimeo ID",$params);
*/
return($settings);
}
开发者ID:verbazend,项目名称:AWFA,代码行数:30,代码来源:revslider_operations.class.php
示例2: getWildcardsSettings
public static function getWildcardsSettings()
{
$settings = new UniteSettingsAdvancedRev();
$slider = new RevSlider();
$arrOutput = array();
$arrOutput["default"] = "default";
$arrSlides = $slider->getArrSlidersWithSlidesShort(RevSlider::SLIDER_TYPE_TEMPLATE);
$arrOutput = $arrOutput + $arrSlides;
$settings->addSelect("slide_template", $arrOutput, __("Choose Slide Template", REVSLIDER_TEXTDOMAIN), "default");
return $settings;
}
开发者ID:evgrishin,项目名称:se1614,代码行数:11,代码来源:revslider_operations.class.php
示例3: array
$sliderMainSettings->addRadio("auto_height", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Unlimited Height", REVSLIDER_TEXTDOMAIN), "off");
$sliderMainSettings->addRadio("force_full_width", array("on" => __("On", REVSLIDER_TEXTDOMAIN), "off" => __("Off", REVSLIDER_TEXTDOMAIN)), __("Force Full Width", REVSLIDER_TEXTDOMAIN), "off");
$arrParams = array("description" => __("", REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addTextBox("min_height", "0", __("Min. Height", REVSLIDER_TEXTDOMAIN), $arrParams);
$paramsSize = array("width" => 960, "height" => 350, "datatype" => UniteSettingsRev::DATATYPE_NUMBER, "description" => __('
- The <span class="prevxmpl">LAYERS GRID</span> is the container of layers within the <span class="prevxmpl">SLIDER</span> <br>
- The "Grid Size" setting does not relate to the actual "Slider Size". <br>
- "Max Height" of the slider equals the "Grid Height"<br>
- "Slider Width" can be greater than the set "Grid Width"', REVSLIDER_TEXTDOMAIN));
$sliderMainSettings->addCustom("slider_size", "slider_size", "", __("Layers Grid Size", REVSLIDER_TEXTDOMAIN), $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310, "datatype" => UniteSettingsRev::DATATYPE_NUMBER);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", __("Responsive Sizes", REVSLIDER_TEXTDOMAIN), $paramsResponsitive);
$sliderMainSettings->addHr();
self::storeSettings("slider_main", $sliderMainSettings);
//set "slider_params" settings.
$sliderParamsSettings = new UniteSettingsAdvancedRev();
$sliderParamsSettings->loadXMLFile(self::$path_settings . "/slider_settings.xml");
//update transition type setting.
$settingFirstType = $sliderParamsSettings->getSettingByName("first_transition_type");
$operations = new RevOperations();
$arrTransitions = $operations->getArrTransition();
if (count($arrTransitions) == 0) {
$arrTransitions = $operations->getArrTransition(true);
}
//get premium transitions
$settingFirstType["items"] = $arrTransitions;
$sliderParamsSettings->updateArrSettingByName("first_transition_type", $settingFirstType);
//store params
self::storeSettings("slider_params", $sliderParamsSettings);
?>
开发者ID:TeamCodeStudio,项目名称:fpmoz,代码行数:30,代码来源:slider_settings.php
示例4: array
<?php
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrPremiumTransitions = $operations->getArrTransition(true);
$defaultTransition = $operations->getDefaultTransition();
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
$arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => __ug("The title of the slide, will be shown in the slides list.", REVSLIDER_TEXTDOMAIN), "class" => "medium");
$slideSettings->addTextBox("title", __ug("Slide", REVSLIDER_TEXTDOMAIN), __ug("Slide Title", REVSLIDER_TEXTDOMAIN), $params);
//state
$params = array("description" => __ug("The state of the slide. The unpublished slide will be excluded from the slider.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("state", array("published" => __ug("Published", REVSLIDER_TEXTDOMAIN), "unpublished" => __ug("Unpublished", REVSLIDER_TEXTDOMAIN)), __ug("State", REVSLIDER_TEXTDOMAIN), "published", $params);
if (isset($slider) && $slider->isInited()) {
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
if ($isWpmlExists && $useWpml == "on") {
$arrLangs = UniteWpmlRev::getArrLanguages();
$params = array("description" => __ug("The language of the slide (uses WPML plugin).", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("lang", $arrLangs, __ug("Language", REVSLIDER_TEXTDOMAIN), "all", $params);
}
}
$params = array("description" => __ug("If set, slide will be visible after the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_from", "", __ug("Visible from", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug("If set, slide will be visible till the date is reached", REVSLIDER_TEXTDOMAIN));
$slideSettings->addDatePicker("date_to", "", __ug("Visible until", REVSLIDER_TEXTDOMAIN), $params);
$slideSettings->addHr("");
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:slide_settings.php
示例5: UniteSettingsAdvancedRev
<?php
//set "slider_main" settings
$sliderMainSettings = new UniteSettingsAdvancedRev();
$sliderMainSettings->addTextBox("title", "", "Slider Title", array("description" => "The title of the slider. Example: Slider1", "required" => "true"));
$sliderMainSettings->addTextBox("alias", "", "Slider Alias", array("description" => "The alias that will be used for embedding the slider. Example: slider1", "required" => "true"));
$sliderMainSettings->addTextBox("shortcode", "", "Slider Short Code", array("readonly" => true, "class" => "code"));
$sliderMainSettings->addHr();
$sliderMainSettings->addRadio("slider_type", array("fixed" => "Fixed", "responsitive" => "Responsive", "fullwidth" => "Full Width"), "Slider Type", "fixed");
$paramsSize = array("width" => 960, "height" => 350);
$sliderMainSettings->addCustom("slider_size", "slider_size", "", "Slider Size", $paramsSize);
$paramsResponsitive = array("w1" => 940, "sw1" => 770, "w2" => 780, "sw2" => 500, "w3" => 510, "sw3" => 310);
$sliderMainSettings->addCustom("responsitive_settings", "responsitive", "", "Responsive Sizes", $paramsResponsitive);
$sliderMainSettings->addHr();
self::storeSettings("slider_main", $sliderMainSettings);
//set "slider_params" settings.
$sliderParamsSettings = new UniteSettingsAdvancedRev();
$sliderParamsSettings->loadXMLFile(self::$path_settings . "/slider_settings.xml");
self::storeSettings("slider_params", $sliderParamsSettings);
开发者ID:nimishavyas,项目名称:proiti,代码行数:19,代码来源:slider_settings.php
示例6: RevOperations
<?php
$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" style="width:30px; text-align:center;padding:0px;" class="revgray button-primary"><i class="eg-icon-down-dir"></i></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-magic\"></i>Edit Style", "button_edit_css", "button-primary revblue");
$buttonEditStylesGlobal = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-palette\"></i>Edit Global Style", "button_edit_css_global", "button-primary revblue");
$arrSplit = $operations->getArrSplit();
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(ControllerModulerevslideropencart::$lang_var['Layer_Params'], ControllerModulerevslideropencart::$lang_var['layer_params']);
$layerSettings->addSap(ControllerModulerevslideropencart::$lang_var['Layer_Params'], ControllerModulerevslideropencart::$lang_var['layer_params']);
$layerSettings->addTextBox("layer_caption", ControllerModulerevslideropencart::$lang_var['caption_green'], ControllerModulerevslideropencart::$lang_var['Style'], array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Meta", "linkInsertTemplate", "disabled revblue button-primary");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Button", "linkInsertButton", "disabled revblue button-primary");
$layerSettings->addTextArea("layer_text", "", ControllerModulerevslideropencart::$lang_var['Text_Html'], array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", ControllerModulerevslideropencart::$lang_var['Image_Link'], array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => ControllerModulerevslideropencart::$lang_var['Same_Window'], "new" => ControllerModulerevslideropencart::$lang_var['New_Window']), ControllerModulerevslideropencart::$lang_var['Link_Open'], "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, ControllerModulerevslideropencart::$lang_var['Start_Animation'], "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, ControllerModulerevslideropencart::$lang_var['Start_Easing'], "Power3.easeInOut");
$params = array("unit" => ControllerModulerevslideropencart::$lang_var['ms']);
$paramssplit = array("unit" => ControllerModulerevslideropencart::$lang_var['ms_keep_low']);
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:layer_settings.php
示例7: RevOperations
<?php
$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-magic\"></i>Edit Style", "button_edit_css", "button-primary revblue");
$buttonEditStylesGlobal = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-palette\"></i>Edit Global Style", "button_edit_css_global", "button-primary revblue");
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox(__("layer_caption", REVSLIDER_TEXTDOMAIN), __("caption_green", REVSLIDER_TEXTDOMAIN), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert post template", "linkInsertTemplate", "disabled");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Start Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Start Easing", REVSLIDER_TEXTDOMAIN), "Power3.easeInOut");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_speed", "", "Start Speed", $params);
$layerSettings->addCheckbox("layer_hidden", false, __("Hide Under Width", REVSLIDER_TEXTDOMAIN));
开发者ID:ConceptHaus,项目名称:huasca,代码行数:31,代码来源:layer_settings.php
示例8: RevOperations
<?php
$operations = new RevOperations();
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$slideSettings = new UniteSettingsAdvancedRev();
//transition
$params = array("description" => "The appearance transition of this slide.");
$slideSettings->addSelect("slide_transition", $arrTransitions, "Transition", "random", $params);
//slot amount
$params = array("description" => "The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", "class" => "small");
$slideSettings->addTextBox("slot_amount", "7", "Slot Amount", $params);
//rotation:
$params = array("description" => "Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", "class" => "small");
$slideSettings->addTextBox("transition_rotation", "0", "Rotation", $params);
//transition speed
$params = array("description" => "The duration of the transition (Default:300, min: 100 max 2000). ", "class" => "small");
$slideSettings->addTextBox("transition_duration", "300", "Transition Duration", $params);
//delay
$params = array("description" => "A new Dealy value for the Slide. If no delay defined per slide, the dealy defined via Options will be used", "class" => "small");
$slideSettings->addTextBox("delay", "", "Delay", $params);
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", "Enable Link", false, "Enable", "Disable");
//link
$params = array("description" => "A link on the whole slide pic");
$slideSettings->addTextBox("link", "", "Slide Link", $params);
//link target
$params = array("description" => "The target of the slide link");
$slideSettings->addSelect("link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", $params);
$slideSettings->addControl("enable_link", "link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:31,代码来源:slide_settings.php
示例9: writeSettingLanguageFile
/**
*
* write settings language file for wp automatic scanning
*/
public static function writeSettingLanguageFile($filepath)
{
$info = pathinfo($filepath);
$path = UniteFunctionsRev::getVal($info, "dirname") . "/";
$filename = UniteFunctionsRev::getVal($info, "filename");
$ext = UniteFunctionsRev::getVal($info, "extension");
$filenameOutput = "{$filename}_{$ext}_lang.php";
$filepathOutput = $path . $filenameOutput;
//load settings
$settings = new UniteSettingsAdvancedRev();
$settings->loadXMLFile($filepath);
$arrText = $settings->getArrTextFromAllSettings();
$str = "";
$str .= "<?php \n";
foreach ($arrText as $text) {
$text = str_replace('"', '\\"', $text);
$str .= "_e(\"{$text}\",\"" . REVSLIDER_TEXTDOMAIN . "\"); \n";
}
$str .= "?>";
UniteFunctionsRev::writeFile($str, $filepathOutput);
}
开发者ID:jhonrsalcedo,项目名称:sitio,代码行数:25,代码来源:functions_wordpress.class.php
示例10: UniteSettingsAdvancedRev
<?php
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrSlideNames = $slider->getArrSlideNames();
$slideSettings = new UniteSettingsAdvancedRev();
//transition
$params = array("description" => "The appearance transition of this slide.");
$slideSettings->addSelect("slide_transition", $arrTransitions, "Transition", "random", $params);
//slot amount
$params = array("description" => "The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", "class" => "small");
$slideSettings->addTextBox("slot_amount", "7", "Slot Amount", $params);
//rotation:
$params = array("description" => "Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", "class" => "small");
$slideSettings->addTextBox("transition_rotation", "0", "Rotation", $params);
//transition speed
$params = array("description" => "The duration of the transition (Default:300, min: 100 max 2000). ", "class" => "small");
$slideSettings->addTextBox("transition_duration", "300", "Transition Duration", $params);
//delay
$params = array("description" => "A new delay value for the Slide. If no delay defined per slide, the delay defined via Options ( {$sliderDelay} ms) will be used", "class" => "small");
$slideSettings->addTextBox("delay", "", "Delay", $params);
//-----------------------
//enable link
$slideSettings->addSelect_boolean("enable_link", "Enable Link", false, "Enable", "Disable");
$slideSettings->startBulkControl("enable_link", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
//link type
$slideSettings->addRadio("link_type", array("regular" => "Regular", "slide" => "To Slide"), "Link Type", "regular");
//link
$params = array("description" => "A link on the whole slide pic");
$slideSettings->addTextBox("link", "", "Slide Link", $params);
//link target
开发者ID:nimishavyas,项目名称:proiti,代码行数:31,代码来源:slide_settings.php
示例11: RevOperations
<?php
$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" style="width:30px; text-align:center;padding:0px;" class="revgray button-primary"><i class="eg-icon-down-dir"></i></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-magic\"></i>Edit Style", "button_edit_css", "button-primary revblue");
$buttonEditStylesGlobal = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "<i class=\"revicon-palette\"></i>Edit Global Style", "button_edit_css_global", "button-primary revblue");
$arrSplit = $operations->getArrSplit();
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles . $buttonEditStylesGlobal;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addSap(__("Layer Params", REVSLIDER_TEXTDOMAIN), __("layer_params", REVSLIDER_TEXTDOMAIN));
$layerSettings->addTextBox("layer_caption", __("caption_green", REVSLIDER_TEXTDOMAIN), __("Style", REVSLIDER_TEXTDOMAIN), array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = '';
if ($sliderTemplate == "true") {
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Meta", "linkInsertTemplate", "disabled revblue button-primary");
}
$addHtmlTextarea .= UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Insert Button", "linkInsertButton", "disabled revblue button-primary");
$layerSettings->addTextArea("layer_text", "", __("Text / Html", REVSLIDER_TEXTDOMAIN), array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", __("Image Link", REVSLIDER_TEXTDOMAIN), array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => __("Same Window", REVSLIDER_TEXTDOMAIN), "new" => __("New Window", REVSLIDER_TEXTDOMAIN)), __("Link Open In", REVSLIDER_TEXTDOMAIN), "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, __("Start Animation", REVSLIDER_TEXTDOMAIN), "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, __("Start Easing", REVSLIDER_TEXTDOMAIN), "Power3.easeInOut");
$params = array("unit" => __("ms", REVSLIDER_TEXTDOMAIN));
$paramssplit = array("unit" => __(" ms (keep it low i.e. 1- 200)", REVSLIDER_TEXTDOMAIN));
开发者ID:szpaddy,项目名称:the7,代码行数:31,代码来源:layer_settings.php
示例12: UniteSettingsAdvancedRev
<?php
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrSlideNames = $slider->getArrSlideNames();
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => __("The title of the slide, will be shown in the slides list.", REVSLIDER_TEXTDOMAIN), "class" => "medium");
$slideSettings->addTextBox("title", __("Slide", REVSLIDER_TEXTDOMAIN), __("Slide Title", REVSLIDER_TEXTDOMAIN), $params);
//state
$params = array("description" => __("The state of the slide. The unpublished slide will be excluded from the slider.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("state", array("published" => __("Published", REVSLIDER_TEXTDOMAIN), "unpublished" => __("Unpublished", REVSLIDER_TEXTDOMAIN)), __("State", REVSLIDER_TEXTDOMAIN), "published", $params);
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
if ($isWpmlExists && $useWpml == "on") {
$arrLangs = UniteWpmlRev::getArrLanguages();
$params = array("description" => __("The language of the slide (uses WPML plugin).", REVSLIDER_TEXTDOMAIN));
$slideSettings->addSelect("lang", $arrLangs, __("Language", REVSLIDER_TEXTDOMAIN), "all", $params);
}
//transition
$params = array("description" => __("The appearance transitions of this slide.", REVSLIDER_TEXTDOMAIN), "minwidth" => "450px");
$slideSettings->addChecklist("slide_transition", $arrTransitions, __("Transitions", REVSLIDER_TEXTDOMAIN), "random", $params);
//slot amount
$params = array("description" => __("The number of slots or boxes the slide is divided into. If you use boxfade, over 7 slots can be juggy.", REVSLIDER_TEXTDOMAIN), "class" => "small");
$slideSettings->addTextBox("slot_amount", "7", __("Slot Amount", REVSLIDER_TEXTDOMAIN), $params);
//rotation:
$params = array("description" => __("Rotation (-720 -> 720, 999 = random) Only for Simple Transitions.", REVSLIDER_TEXTDOMAIN), "class" => "small");
$slideSettings->addTextBox("transition_rotation", "0", __("Rotation", REVSLIDER_TEXTDOMAIN), $params);
//transition speed
$params = array("description" => __("The duration of the transition (Default:300, min: 100 max 2000). ", REVSLIDER_TEXTDOMAIN), "class" => "small");
$slideSettings->addTextBox("transition_duration", "300", __("Transition Duration", REVSLIDER_TEXTDOMAIN), $params);
开发者ID:jgabrielfreitas,项目名称:MultipagosTestesAPP,代码行数:31,代码来源:slide_settings.php
示例13: RevOperations
<?php
$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Edit CSS File", "button_edit_css", "button-secondary");
$arrEasing = $operations->getArrEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection("Layer Params", "layer_params");
$layerSettings->addSap("Layer Params", "layer_params");
$layerSettings->addTextBox("layer_caption", "caption_green", "Style", array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", "Text / Html", array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", "Image Link", array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, "Animation", "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, "Easing", "easeOutExpo");
$layerSettings->addTextBox("layer_speed", "", "Speed");
$layerSettings->addTextBox("layer_left", "", "X");
$layerSettings->addTextBox("layer_top", "", "Y");
$layerSettings->addButton("button_edit_video", "Edit Video", array("hidden" => true));
self::storeSettings("layer_settings", $layerSettings);
//store settings of content css for editing on the client.
self::storeSettings("css_captions_content", $contentCSS);
开发者ID:rohichurch,项目名称:rohichurch-wp,代码行数:28,代码来源:layer_settings.php
示例14: array
<?php
//set Slide settings
$arrTransitions = $operations->getArrTransition();
$arrPremiumTransitions = $operations->getArrTransition(true);
$defaultTransition = $operations->getDefaultTransition();
$arrSlideNames = array();
if (isset($slider) && $slider->isInited()) {
$arrSlideNames = $slider->getArrSlideNames();
}
$slideSettings = new UniteSettingsAdvancedRev();
//title
$params = array("description" => ControllerModulerevslideropencart::$lang_var['shown_slides_list'], "class" => "medium");
$slideSettings->addTextBox("title", ControllerModulerevslideropencart::$lang_var['Slide'], ControllerModulerevslideropencart::$lang_var['Slide_Title'], $params);
//state
$params = array("description" => ControllerModulerevslideropencart::$lang_var['excluded_slider']);
$slideSettings->addSelect("state", array("published" => ControllerModulerevslideropencart::$lang_var['Published'], "unpublished" => ControllerModulerevslideropencart::$lang_var['Unpublished']), ControllerModulerevslideropencart::$lang_var['State'], "published", $params);
if (isset($slider) && $slider->isInited()) {
$isWpmlExists = UniteWpmlRev::isWpmlExists();
$useWpml = $slider->getParam("use_wpml", "off");
if ($isWpmlExists && $useWpml == "on") {
$arrLangs = UniteWpmlRev::getArrLanguages();
$params = array("description" => ControllerModulerevslideropencart::$lang_var['language_slide']);
$slideSettings->addSelect("lang", $arrLangs, ControllerModulerevslideropencart::$lang_var['Language'], "all", $params);
}
}
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_visible']);
$slideSettings->addDatePicker("date_from", "", ControllerModulerevslideropencart::$lang_var['Visible_from'], $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['slide_visible_reached']);
$slideSettings->addDatePicker("date_to", "", ControllerModulerevslideropencart::$lang_var['Visible_until'], $params);
$slideSettings->addHr("");
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slide_settings.php
示例15: RevOperations
<?php
$operations = new RevOperations();
//set Layer settings
$contentCSS = $operations->getCaptionsContent();
$arrAnimations = $operations->getArrAnimations();
$arrEndAnimations = $operations->getArrEndAnimations();
$htmlButtonDown = '<div id="layer_captions_down" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-arrowthick-1-s"></span></div>';
$buttonEditStyles = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "Edit CSS File", "button_edit_css", "button-secondary");
$arrEasing = $operations->getArrEasing();
$arrEndEasing = $operations->getArrEndEasing();
$captionsAddonHtml = $htmlButtonDown . $buttonEditStyles;
//set Layer settings
$layerSettings = new UniteSettingsAdvancedRev();
$layerSettings->addSection("Layer Params", "layer_params");
$layerSettings->addSap("Layer Params", "layer_params");
$layerSettings->addTextBox("layer_caption", "caption_green", "Style", array(UniteSettingsRev::PARAM_ADDTEXT => $captionsAddonHtml, "class" => "textbox-caption"));
$addHtmlTextarea = UniteFunctionsRev::getHtmlLink("javascript:void(0)", "insert button", "linkInsertButton", "disabled");
$layerSettings->addTextArea("layer_text", "", "Text / Html", array("class" => "area-layer-params", UniteSettingsRev::PARAM_ADDTEXT_BEFORE_ELEMENT => $addHtmlTextarea));
$layerSettings->addTextBox("layer_image_link", "", "Image Link", array("class" => "text-sidebar-link", "hidden" => true));
$layerSettings->addSelect("layer_link_open_in", array("same" => "Same Window", "new" => "New Window"), "Link Open In", "same", array("hidden" => true));
$layerSettings->addSelect("layer_animation", $arrAnimations, "Animation", "fade");
$layerSettings->addSelect("layer_easing", $arrEasing, "Easing", "easeOutExpo");
$params = array("unit" => "ms");
$layerSettings->addTextBox("layer_speed", "", "Speed", $params);
$layerSettings->addCheckbox("layer_hidden", false, "Hide Under Width");
$layerSettings->addTextBox("layer_left", "", "X");
$layerSettings->addTextBox("layer_top", "", "Y");
$layerSettings->addCheckbox("layer_video_autoplay", false, "Video Autoplay", array("hidden" => true));
$layerSettings->addSelect("layer_slide_link", $arrSlideLink, "Link To Slide", "nothing");
$layerSettings->addButton("button_edit_video", "Edit Video", array("hidden" => true, "class" => "button-secondary"));
开发者ID:par-orillonsoft,项目名称:elearning-wordpress,代码行数:31,代码来源:layer_settings.php
注:本文中的UniteSettingsAdvancedRev类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论