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


PHP UniteSettingsAdvancedRev::addImage方法代码示例

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


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

示例1: array

    $slideName = $arr["title"];
    $arrSlideLink[$slideNameID] = $slideName;
    $arrSlideLinkLayers[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
//$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
//-----------------------
$slideSettings->addHr("");
$params = array("description" => __ug("Slide Thumbnail. If not set - it will be taken from the slide image.", REVSLIDER_TEXTDOMAIN));
$slideSettings->addImage("slide_thumb", "", __ug("Thumbnail", REVSLIDER_TEXTDOMAIN), $params);
//$params = array("description"=>__ug("Apply to full width mode only. Centering vertically slide images.",REVSLIDER_TEXTDOMAIN));
//$slideSettings->addCheckbox("fullwidth_centering", false, __ug("Full Width Centering",REVSLIDER_TEXTDOMAIN), $params);
//add background type (hidden)
$slideSettings->addTextBox("background_type", "image", __ug("Background Type", REVSLIDER_TEXTDOMAIN), array("hidden" => true));
//store settings
$slideSettings->addHr("");
$params = array("description" => __ug('Adds a unique class to the li of the Slide like class="rev_special_class" (add only the classnames, seperated by space)', REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextBox("class_attr", "", __ug("Class", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug('Adds a unique ID to the li of the Slide like id="rev_special_id" (add only the id)', REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextBox("id_attr", "", __ug("ID", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug('Adds a unique Attribute to the li of the Slide like attr="rev_special_attr" (add only the attribute)', REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextBox("attr_attr", "", __ug("Attribute", REVSLIDER_TEXTDOMAIN), $params);
$params = array("description" => __ug('Add as many attributes as you wish here. (i.e.: data-layer="firstlayer" data-custom="somevalue")', REVSLIDER_TEXTDOMAIN));
$slideSettings->addTextArea("data_attr", "", __ug("Custom Fields", REVSLIDER_TEXTDOMAIN), $params);
self::storeSettings("slide_settings", $slideSettings);
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:slide_settings.php

示例2: array

//num_slide_link
$arrSlideLink = array("nothing" => "-- Not Chosen --", "next" => "-- Next Slide --", "prev" => "-- Previous Slide --");
foreach ($arrSlideNames as $slideNameID => $slideName) {
    $arrSlideLink[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
//-----------------------
//enable video
$params = array("description" => "Put a full width video on the slide");
$slideSettings->addSelect_boolean("enable_video", "Enable Full Width Video", false, "Enable", "Disable");
//video id
$params = array("description" => "The field can take Youtube ID (example: QohUdrgbD2k) or Vidmeo ID (example: 30300114)", "class" => "medium");
$slideSettings->addTextBox("video_id", "", "Video ID", $params);
//video autoplay
$params = array("description" => "Enable video autoplay on enter slide", "class" => "medium");
$slideSettings->addCheckbox("video_autoplay", false, "Video Autoplay");
$slideSettings->addControl("enable_video", "video_id", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
$slideSettings->addControl("enable_video", "video_autoplay", UniteSettingsRev::CONTROL_TYPE_SHOW, "true");
$params = array("description" => "Slide Thumbnail. If not set - it will be taken from the slide image.");
$slideSettings->addImage("slide_thumb", "", "Thumbnail", $params);
$params = array("description" => "Apply to full width mode only. Centering vertically slide images.");
$slideSettings->addCheckbox("fullwidth_centering", false, "Full Width Centering", $params);
//store settings
self::storeSettings("slide_settings", $slideSettings);
开发者ID:nimishavyas,项目名称:proiti,代码行数:31,代码来源:slide_settings.php

示例3: array

$arrSlideLinkLayers["scroll_under"] = ControllerModulerevslideropencart::$lang_var['Scroll_Below_Slider'];
foreach ($arrSlideNames as $slideNameID => $arr) {
    $slideName = $arr["title"];
    $arrSlideLink[$slideNameID] = $slideName;
    $arrSlideLinkLayers[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
//$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
//-----------------------
$slideSettings->addHr("");
$params = array("description" => ControllerModulerevslideropencart::$lang_var['Slide_Thumbnail_Image']);
$slideSettings->addImage("slide_thumb", "", ControllerModulerevslideropencart::$lang_var['Thumbnail'], $params);
//add background type (hidden)
$slideSettings->addTextBox("background_type", "image", ControllerModulerevslideropencart::$lang_var['Background_Type'], array("hidden" => true));
//store settings
$slideSettings->addHr("");
$params = array("description" => ControllerModulerevslideropencart::$lang_var['rev_special_class']);
$slideSettings->addTextBox("class_attr", "", ControllerModulerevslideropencart::$lang_var['Class'], $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['rev_special_id']);
$slideSettings->addTextBox("id_attr", "", ControllerModulerevslideropencart::$lang_var['ID'], $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['rev_special_attr']);
$slideSettings->addTextBox("attr_attr", "", ControllerModulerevslideropencart::$lang_var['Attribute'], $params);
$params = array("description" => ControllerModulerevslideropencart::$lang_var['Attributes_data_custom']);
$slideSettings->addTextArea("data_attr", "", ControllerModulerevslideropencart::$lang_var['Custom_Fields'], $params);
self::storeSettings("slide_settings", $slideSettings);
开发者ID:rinodung,项目名称:opencart-15x-flat-admin,代码行数:31,代码来源:slide_settings.php

示例4: array

    $slideName = $arr["title"];
    $arrSlideLink[$slideNameID] = $slideName;
    $arrSlideLinkLayers[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
//$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
//-----------------------
$slideSettings->addHr("");
$params = array("description" => Mage::helper('nwdrevslider')->__("Slide Thumbnail. If not set - it will be taken from the slide image."));
$slideSettings->addImage("slide_thumb", "", Mage::helper('nwdrevslider')->__("Thumbnail"), $params);
//$params = array("description"=>Mage::helper('nwdrevslider')->__("Apply to full width mode only. Centering vertically slide images."));
//$slideSettings->addCheckbox("fullwidth_centering", false, Mage::helper('nwdrevslider')->__("Full Width Centering"), $params);
//add background type (hidden)
$slideSettings->addTextBox("background_type", "image", Mage::helper('nwdrevslider')->__("Background Type"), array("hidden" => true));
//store settings
$slideSettings->addHr("");
$params = array("description" => Mage::helper('nwdrevslider')->__('Adds a unique class to the li of the Slide like class="rev_special_class" (add only the classnames, seperated by space)'));
$slideSettings->addTextBox("class_attr", "", Mage::helper('nwdrevslider')->__("Class"), $params);
$params = array("description" => Mage::helper('nwdrevslider')->__('Adds a unique ID to the li of the Slide like id="rev_special_id" (add only the id)'));
$slideSettings->addTextBox("id_attr", "", Mage::helper('nwdrevslider')->__("ID"), $params);
$params = array("description" => Mage::helper('nwdrevslider')->__('Adds a unique Attribute to the li of the Slide like attr="rev_special_attr" (add only the attribute)'));
$slideSettings->addTextBox("attr_attr", "", Mage::helper('nwdrevslider')->__("Attribute"), $params);
$params = array("description" => Mage::helper('nwdrevslider')->__('Add as many attributes as you wish here. (i.e.: data-layer="firstlayer" data-custom="somevalue")'));
$slideSettings->addTextArea("data_attr", "", Mage::helper('nwdrevslider')->__("Custom Fields"), $params);
//debug_print_backtrace();
开发者ID:perseusl,项目名称:kingdavid,代码行数:31,代码来源:slide_settings.php

示例5: array

$arrSlideLinkLayers["scroll_under"] = RevsliderPrestashop::$lang['Scroll_Below_Slider'];
foreach ($arrSlideNames as $slideNameID => $arr) {
    $slideName = $arr["title"];
    $arrSlideLink[$slideNameID] = $slideName;
    $arrSlideLinkLayers[$slideNameID] = $slideName;
}
$slideSettings->addSelect("slide_link", $arrSlideLink, "Link To Slide", "nothing");
$params = array("description" => "The position of the link related to layers");
$slideSettings->addRadio("link_pos", array("front" => "Front", "back" => "Back"), "Link Position", "front", $params);
$slideSettings->addHr("link_sap");
$slideSettings->endBulkControl();
$slideSettings->addControl("link_type", "slide_link", UniteSettingsRev::CONTROL_TYPE_ENABLE, "slide");
$slideSettings->addControl("link_type", "link", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$slideSettings->addControl("link_type", "link_open_in", UniteSettingsRev::CONTROL_TYPE_DISABLE, "slide");
$params = array("description" => RevsliderPrestashop::$lang['Slide_Thumbnail_Image']);
$slideSettings->addImage("slide_thumb", "", RevsliderPrestashop::$lang['Thumbnail'], $params);
$slideSettings->addTextBox("background_type", "image", RevsliderPrestashop::$lang['Background_Type'], array("hidden" => true));
$slideSettings->addHr("");
//store settings
$params = array("description" => RevsliderPrestashop::$lang['rev_special_class']);
$slideSettings->addTextBox("class_attr", "", RevsliderPrestashop::$lang['Class'], $params);
$params = array("description" => RevsliderPrestashop::$lang['rev_special_id']);
$slideSettings->addTextBox("id_attr", "", RevsliderPrestashop::$lang['ID'], $params);
$params = array("description" => RevsliderPrestashop::$lang['rev_special_attr']);
$slideSettings->addTextBox("attr_attr", "", RevsliderPrestashop::$lang['Attribute'], $params);
$params = array("description" => RevsliderPrestashop::$lang['Attributes_data_custom']);
$slideSettings->addTextArea("data_attr", "", RevsliderPrestashop::$lang['Custom_Fields'], $params);
self::storeSettings("slide_settings", $slideSettings);
?>

开发者ID:evgrishin,项目名称:se1614,代码行数:29,代码来源:slide_settings.php


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