本文整理汇总了PHP中UniteFunctionsRev::getHtmlLink方法的典型用法代码示例。如果您正苦于以下问题:PHP UniteFunctionsRev::getHtmlLink方法的具体用法?PHP UniteFunctionsRev::getHtmlLink怎么用?PHP UniteFunctionsRev::getHtmlLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniteFunctionsRev
的用法示例。
在下文中一共展示了UniteFunctionsRev::getHtmlLink方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
if ($strSource == "Template") {
$preicon = "templateicon";
}
$rowClass = "";
if ($isFromPosts == true) {
$strSource = __("Posts", REVSLIDER_TEXTDOMAIN);
$preicon = "revicon-doc";
$rowClass = "class='row_alt'";
}
if ($outputTemplates) {
$editLink = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER_TEMPLATE, "id={$id}");
} else {
$editLink = self::getViewUrl(RevSliderAdmin::VIEW_SLIDER, "id={$id}");
}
$editSlidesLink = self::getViewUrl(RevSliderAdmin::VIEW_SLIDES, "id={$id}");
$showTitle = UniteFunctionsRev::getHtmlLink($editLink, $showTitle);
$shortCode = $slider->getShortcode();
$numSlides = $slider->getNumSlides();
} catch (Exception $e) {
$errorMessage = "ERROR: " . $e->getMessage();
$strSource = "";
$numSlides = "";
}
?>
<tr <?php
echo $rowClass;
?>
>
<td><?php
echo $id;
?>
示例2: drawButtons
/**
*
* draw buttons that defined earlier
*/
private function drawButtons()
{
foreach ($this->arrButtons as $key => $button) {
if ($key > 0) {
echo "<span class='hor_sap'></span>";
}
echo UniteFunctionsRev::getHtmlLink("#", $button["title"], $button["id"], $button["class"]);
}
}
示例3: stripslashes
}
$imageFilepath = $slide->getImageFilepath();
$urlImageForView = $slide->getThumbUrl();
$slideTitle = $slide->getParam("title", "Slide");
$title = $slideTitle;
$filename = $slide->getImageFilename();
$imageAlt = stripslashes($slideTitle);
if (empty($imageAlt)) {
$imageAlt = "slide";
}
if ($bgType == "image") {
$title .= " (" . $filename . ")";
}
$slideid = $slide->getID();
$urlEditSlide = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE, "id={$slideid}");
$linkEdit = UniteFunctionsRev::getHtmlLink($urlEditSlide, $title);
$state = $slide->getParam("state", "published");
?>
<li id="slidelist_item_<?php
echo $slideid;
?>
" class="ui-state-default">
<span class="slide-col col-order">
<span class="order-text"><?php
echo $counter;
?>
</span>
<div class="state_loader" style="display:none;"></div>
<?php
if ($state == "published") {
示例4: importSliderHandle
/**
*
* import slideer handle (not ajax response)
*/
private static function importSliderHandle($viewBack = null, $updateAnim = true, $updateStatic = true)
{
dmp(__("importing slider setings and data...", REVSLIDER_TEXTDOMAIN));
$slider = new RevSlider();
$response = $slider->importSliderFromPost($updateAnim, $updateStatic);
$sliderID = $response["sliderID"];
if (empty($viewBack)) {
$viewBack = self::getViewUrl(self::VIEW_SLIDER, "id=" . $sliderID);
if (empty($sliderID)) {
$viewBack = self::getViewUrl(self::VIEW_SLIDERS);
}
}
//handle error
if ($response["success"] == false) {
$message = $response["error"];
dmp("<b>Error: " . $message . "</b>");
echo UniteFunctionsRev::getHtmlLink($viewBack, __("Go Back", REVSLIDER_TEXTDOMAIN));
} else {
//handle success, js redirect.
dmp(__("Slider Import Success, redirecting...", REVSLIDER_TEXTDOMAIN));
sdsconfig::getgeneratecssfile();
echo "<script>location.href='{$viewBack}'</script>";
}
exit;
}
示例5: importSliderHandle
/**
*
* import slideer handle (not ajax response)
*/
private static function importSliderHandle()
{
dmp("importing slider setings and data...");
$slider = new RevSlider();
$response = $slider->importSliderFromPost();
$sliderID = $response["sliderID"];
$viewBack = self::getViewUrl(self::VIEW_SLIDER, "id=" . $sliderID);
if (empty($sliderID)) {
$viewBack = self::getViewUrl(self::VIEW_SLIDERS);
}
//handle error
if ($response["success"] == false) {
$message = $response["error"];
dmp("<b>Error: " . $message . "</b>");
echo UniteFunctionsRev::getHtmlLink($viewBack, "Go Back");
} else {
//handle success, js redirect.
dmp("Slider Import Success, redirecting...");
echo "<script>location.href='{$viewBack}'</script>";
}
exit;
}
示例6: updatePlugin
/**
*
* Enter description here ...
*/
protected static function updatePlugin($viewBack = false)
{
$linkBack = self::getViewUrl($viewBack);
$htmlLinkBack = UniteFunctionsRev::getHtmlLink($linkBack, "Go Back");
//check if css table exist, if not, we need to verify that the current captions.css can be parsed
if (UniteFunctionsWPRev::isDBTableExists(GlobalsRevSlider::TABLE_CSS_NAME)) {
$captions = RevOperations::getCaptionsCssContentArray();
if ($captions === false) {
$message = "CSS parse error! Please make sure your captions.css is valid CSS before updating the plugin!";
echo "<div style='color:#B80A0A;font-size:18px;'><b>Update Error: </b> {$message}</div><br>";
echo $htmlLinkBack;
exit;
}
}
$zip = new UniteZipRev();
try {
if (function_exists("unzip_file") == false) {
if (UniteZipRev::isZipExists() == false) {
UniteFunctionsRev::throwError("The ZipArchive php extension not exists, can't extract the update file. Please turn it on in php ini.");
}
}
dmp("Update in progress...");
$arrFiles = UniteFunctionsRev::getVal($_FILES, "update_file");
if (empty($arrFiles)) {
UniteFunctionsRev::throwError("Update file don't found.");
}
$filename = UniteFunctionsRev::getVal($arrFiles, "name");
if (empty($filename)) {
UniteFunctionsRev::throwError("Update filename not found.");
}
$fileType = UniteFunctionsRev::getVal($arrFiles, "type");
/*
$fileType = strtolower($fileType);
if($fileType != "application/zip")
UniteFunctionsRev::throwError("The file uploaded is not zip.");
*/
$filepathTemp = UniteFunctionsRev::getVal($arrFiles, "tmp_name");
if (file_exists($filepathTemp) == false) {
UniteFunctionsRev::throwError("Can't find the uploaded file.");
}
//crate temp folder
UniteFunctionsRev::checkCreateDir(self::$path_temp);
//create the update folder
$pathUpdate = self::$path_temp . "update_extract/";
UniteFunctionsRev::checkCreateDir($pathUpdate);
//remove all files in the update folder
if (is_dir($pathUpdate)) {
$arrNotDeleted = UniteFunctionsRev::deleteDir($pathUpdate, false);
if (!empty($arrNotDeleted)) {
$strNotDeleted = print_r($arrNotDeleted, true);
UniteFunctionsRev::throwError("Could not delete those files from the update folder: {$strNotDeleted}");
}
}
//copy the zip file.
$filepathZip = $pathUpdate . $filename;
$success = move_uploaded_file($filepathTemp, $filepathZip);
if ($success == false) {
UniteFunctionsRev::throwError("Can't move the uploaded file here: " . $filepathZip . ".");
}
if (function_exists("unzip_file") == true) {
WP_Filesystem();
$response = unzip_file($filepathZip, $pathUpdate);
} else {
$zip->extract($filepathZip, $pathUpdate);
}
//get extracted folder
$arrFolders = UniteFunctionsRev::getFoldersList($pathUpdate);
if (empty($arrFolders)) {
UniteFunctionsRev::throwError("The update folder is not extracted");
}
if (count($arrFolders) > 1) {
UniteFunctionsRev::throwError("Extracted folders are more then 1. Please check the update file.");
}
//get product folder
$productFolder = $arrFolders[0];
if (empty($productFolder)) {
UniteFunctionsRev::throwError("Wrong product folder.");
}
if ($productFolder != self::$dir_plugin) {
UniteFunctionsRev::throwError("The update folder don't match the product folder, please check the update file.");
}
$pathUpdateProduct = $pathUpdate . $productFolder . "/";
//check some file in folder to validate it's the real one:
$checkFilepath = $pathUpdateProduct . $productFolder . ".php";
if (file_exists($checkFilepath) == false) {
UniteFunctionsRev::throwError("Wrong update extracted folder. The file: " . $checkFilepath . " not found.");
}
//copy the plugin without the captions file.
//$pathOriginalPlugin = $pathUpdate."copy/";
$pathOriginalPlugin = self::$path_plugin;
$arrBlackList = array();
$arrBlackList[] = "rs-plugin/css/captions.css";
$arrBlackList[] = "rs-plugin/css/dynamic-captions.css";
$arrBlackList[] = "rs-plugin/css/static-captions.css";
UniteFunctionsRev::copyDir($pathUpdateProduct, $pathOriginalPlugin, "", $arrBlackList);
//.........这里部分代码省略.........
示例7: UniteSettingsAdvancedRev
$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']);
$layerSettings->addTextBox("layer_speed", "", "Start Duration", $params);
$layerSettings->addTextBox("layer_splitdelay", "10", "Split Delay", $paramssplit);
$layerSettings->addSelect("layer_split", $arrSplit, ControllerModulerevslideropencart::$lang_var['Split_Text_per'], "none");
$layerSettings->addCheckbox("layer_hidden", false, ControllerModulerevslideropencart::$lang_var['Hide_Under_Width']);
$params = array("hidden" => true);
$layerSettings->addTextBox("layer_link_id", "", ControllerModulerevslideropencart::$lang_var['Link_ID'], $params);
$layerSettings->addTextBox("layer_link_class", "", ControllerModulerevslideropencart::$lang_var['Link_Classes'], $params);
$layerSettings->addTextBox("layer_link_title", "", ControllerModulerevslideropencart::$lang_var['Link_Title'], $params);
示例8:
$htmlBefore = "";
$htmlBefore .= "<li class='item_operation operation_delete'><a data-operation='delete' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconDelete . "'/> " . $textDelete . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_edit'><a data-operation='edit' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconEdit . "'/> " . $textEdit . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_preview'><a data-operation='preview' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconPreview . "'/> " . $textPreview . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_sap'>" . "\n";
$htmlBefore .= "<div class='float_menu_sap'></div>" . "\n";
$htmlBefore .= "</a></li>" . "\n";
$langFloatMenu = UniteWpmlRev::getLangsWithFlagsHtmlList("id='slides_langs_float' class='slides_langs_float'", $htmlBefore);
}
} else {
//slides from posts
$templateName = "slides_posts";
$sourceType = $slider->getParam("source_type", "posts");
$showSortBy = $sourceType == "posts" ? true : false;
//get button links
$urlNewPost = UniteFunctionsWPRev::getUrlNewPost();
$linkNewPost = UniteFunctionsRev::getHtmlLink($urlNewPost, ControllerModulerevslideropencart::$lang_var['New_Post'], "button_new_post", "button-primary revblue", true);
//get ordering
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
$sortBy = $slider->getParam("post_sortby", RevSlider::DEFAULT_POST_SORTBY);
$selectSortBy = UniteFunctionsRev::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
}
require self::getPathTemplate($templateName);
?>
示例9: UniteSettingsAdvancedRev
$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));
//scale for img
$textScaleX = __("Width", REVSLIDER_TEXTDOMAIN);
$textScaleProportionalX = __("Width/Height", REVSLIDER_TEXTDOMAIN);
$params = array("attrib_text" => "data-textproportional='" . $textScaleProportionalX . "' data-textnormal='" . $textScaleX . "'", "hidden" => false);
$layerSettings->addTextBox("layer_scaleX", "", __("Width", REVSLIDER_TEXTDOMAIN), $params);
$layerSettings->addTextBox("layer_scaleY", "", __("Height", REVSLIDER_TEXTDOMAIN), array("hidden" => false));
$layerSettings->addCheckbox("layer_proportional_scale", false, __("Scale Proportional", REVSLIDER_TEXTDOMAIN), array("hidden" => false));
示例10: foreach
<?php
foreach ($arrSlides as $slide) {
$order = $slide->getOrder();
$imageFilepath = $slide->getImageFilepath();
$imageUrl = $slide->getImageUrl();
if (!empty($imageFilepath)) {
//show php resized image:
$urlImageForView = self::getImageUrl($imageFilepath, 200, 100, true);
} else {
$urlImageForView = $imageUrl;
}
$filename = $slide->getImageFilename();
$slideid = $slide->getID();
$urlEditSlide = self::getViewUrl(RevSliderAdmin::VIEW_SLIDE, "id={$slideid}");
$linkEdit = UniteFunctionsRev::getHtmlLink($urlEditSlide, $filename);
?>
<li id="slidelist_item_<?php
echo $slideid;
?>
" class="ui-state-default">
<span class="slide-col col-id">
<?php
echo $slideid;
?>
</span>
<span class="slide-col col-name">
<?php
echo $linkEdit;
示例11: __ug
$htmlBefore = "";
$htmlBefore .= "<li class='item_operation operation_delete'><a data-operation='delete' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconDelete . "'/> " . $textDelete . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_edit'><a data-operation='edit' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconEdit . "'/> " . $textEdit . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_preview'><a data-operation='preview' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconPreview . "'/> " . $textPreview . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_sap'>" . "\n";
$htmlBefore .= "<div class='float_menu_sap'></div>" . "\n";
$htmlBefore .= "</a></li>" . "\n";
$langFloatMenu = UniteWpmlRev::getLangsWithFlagsHtmlList("id='slides_langs_float' class='slides_langs_float'", $htmlBefore);
}
} else {
//slides from posts
$templateName = "slides_posts";
$sourceType = $slider->getParam("source_type", "posts");
$showSortBy = $sourceType == "posts" ? true : false;
//get button links
$urlNewPost = UniteFunctionsWPRev::getUrlNewPost();
$linkNewPost = UniteFunctionsRev::getHtmlLink($urlNewPost, __ug("<i class='revicon-pencil-1'></i>New Post", REVSLIDER_TEXTDOMAIN), "button_new_post", "button-primary revblue", true);
//get ordering
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
$sortBy = $slider->getParam("post_sortby", RevSlider::DEFAULT_POST_SORTBY);
$selectSortBy = UniteFunctionsRev::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
}
require self::getPathTemplate($templateName);
?>
示例12: __construct
/**
* Constructor
*/
public function __construct()
{
parent::__construct();
$operations = new RevOperations();
$sliderID = $this->getRequest()->getParam('id');
$storeID = $this->getRequest()->getParam('store_id', 0);
if (empty($sliderID)) {
UniteFunctionsRev::throwError("Slider ID not found");
}
$slider = new RevSlider();
$slider->initByID($sliderID);
$sliderParams = $slider->getParams();
$arrSliders = $slider->getArrSlidersShort($sliderID);
$selectSliders = UniteFunctionsRev::getHTMLSelect($arrSliders, "", "id='selectSliders'", true);
$numSliders = count($arrSliders);
//set iframe parameters
$width = $sliderParams["width"];
$height = $sliderParams["height"];
$iframeWidth = $width + 60;
$iframeHeight = $height + 50;
$iframeStyle = "width:" . $iframeWidth . "px;height:" . $iframeHeight . "px;";
$arrSlides = $slider->getSlides(false, $storeID);
$numSlides = count($arrSlides);
$linksSliderSettings = $this->helper("adminhtml")->getUrl('adminhtml/nwdrevslider/slider/id/' . $sliderID);
$patternViewSlide = $this->helper("adminhtml")->getUrl('adminhtml/nwdrevslider/slider/id/[slideid]');
$useStaticLayers = $slider->getParam("enable_static_layers", "off");
//treat in case of slides from gallery
if ($slider->isSlidesFromPosts() == false) {
$templateName = "slides_gallery";
// store view
$selectStoreView = Mage::app()->getLayout()->createBlock('core/html_select')->setName('select_storeview')->setId('select_storeview')->setTitle('Store View')->setValue($storeID)->setOptions(Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true))->getHtml();
$this->assign('storeID', $storeID);
$this->assign('selectStoreView', $selectStoreView);
$this->setTemplate('nwdthemes/revslider/templates/slides_gallery.phtml');
} else {
//slides from posts
$templateName = "slides_posts";
$sourceType = $slider->getParam("source_type", "posts");
$showSortBy = $sourceType == "posts" ? true : false;
$showDelete = $sourceType == "specific_posts" ? true : false;
//get button links
$urlNewPost = $this->helper('adminhtml')->getUrl('adminhtml/catalog_product/new');
$linkNewPost = UniteFunctionsRev::getHtmlLink($urlNewPost, $this->__("<i class='revicon-pencil-1'></i>New Product"), "button_new_post", "button-primary revblue", true);
//get ordering
$arrSortBy = $this->helper('nwdrevslider')->getArrSortBy();
$sortBy = $slider->getParam("post_sortby", RevSlider::DEFAULT_POST_SORTBY);
$selectSortBy = UniteFunctionsRev::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
$this->assign('showSortBy', $showSortBy);
$this->assign('showDelete', $showDelete);
$this->assign('selectSortBy', $selectSortBy);
$this->assign('linkNewPost', $linkNewPost);
$this->setTemplate('nwdthemes/revslider/templates/slides_posts.phtml');
}
$this->assign('sliderID', $sliderID);
$this->assign('iframeStyle', $iframeStyle);
$this->assign('patternViewSlide', $patternViewSlide);
$this->assign('selectSliders', $selectSliders);
$this->assign('linksSliderSettings', $linksSliderSettings);
$this->assign('useStaticLayers', $useStaticLayers);
$this->assign('arrSlides', $arrSlides);
$this->assign('slider', $slider);
$this->assign('numSlides', $numSlides);
$this->assign('numSliders', $numSliders);
}
示例13:
$htmlBefore = "";
$htmlBefore .= "<li class='item_operation operation_delete'><a data-operation='delete' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconDelete . "'/> " . $textDelete . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_edit'><a data-operation='edit' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconEdit . "'/> " . $textEdit . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_preview'><a data-operation='preview' href='javascript:void(0)'>" . "\n";
$htmlBefore .= "<img src='" . $urlIconPreview . "'/> " . $textPreview . "\n";
$htmlBefore .= "</a></li>" . "\n";
$htmlBefore .= "<li class='item_operation operation_sap'>" . "\n";
$htmlBefore .= "<div class='float_menu_sap'></div>" . "\n";
$htmlBefore .= "</a></li>" . "\n";
$langFloatMenu = UniteWpmlRev::getLangsWithFlagsHtmlList("id='slides_langs_float' class='slides_langs_float'", $htmlBefore);
}
} else {
$templateName = "slides_posts";
$sourceType = $slider->getParam("source_type", "posts");
$showSortBy = $sourceType == "posts" ? true : false;
//get button links
$urlNewPost = UniteFunctionsWPRev::getUrlNewPost();
$linkNewPost = UniteFunctionsRev::getHtmlLink($urlNewPost, RevsliderPrestashop::$lang['New_Post'], "button_new_post", "button-primary revblue", true);
//get ordering
$arrSortBy = UniteFunctionsWPRev::getArrSortBy();
$sortBy = $slider->getParam("post_sortby", RevSlider::DEFAULT_POST_SORTBY);
$selectSortBy = UniteFunctionsRev::getHTMLSelect($arrSortBy, $sortBy, "id='select_sortby'", true);
}
require self::getPathTemplate($templateName);
?>