本文整理汇总了PHP中_uge函数的典型用法代码示例。如果您正苦于以下问题:PHP _uge函数的具体用法?PHP _uge怎么用?PHP _uge使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_uge函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawGlobalCssEditor
/**
*
* draw css editor
*/
public function drawGlobalCssEditor()
{
?>
<div id="css_static_editor_wrap" title="<?php
_uge("Global Style Editor", REVSLIDER_TEXTDOMAIN);
?>
" style="display:none;">
<div id="css-static-accordion">
<h3><?php
_uge("Dynamic Styles (Not Editable):", REVSLIDER_TEXTDOMAIN);
?>
</h3>
<div class="css_editor_novice_wrap">
<textarea id="textarea_show_dynamic_styles" rows="20" cols="81"></textarea>
</div>
<h3 class="notopradius" style="margin-top:20px"><?php
_uge("Static Styles:", REVSLIDER_TEXTDOMAIN);
?>
</h3>
<div>
<textarea id="textarea_edit_static" rows="20" cols="81"></textarea>
</div>
</div>
</div>
<div id="dialog-change-css-static" title="<?php
_uge("Save Static Styles", REVSLIDER_TEXTDOMAIN);
?>
" style="display:none;">
<p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 50px 0;"></span><?php
_uge('Overwrite current static styles?', REVSLIDER_TEXTDOMAIN);
?>
</p>
</div>
<?php
}
示例2: _uge
<?php
require self::getPathTemplate("dialog_preview_slide");
?>
<script type="text/javascript">
var g_patternViewSlide = '<?php
echo $patternViewSlide;
?>
';
var g_messageChangeImage = "<?php
_uge("Select Slide Image", REVSLIDER_TEXTDOMAIN);
?>
";
jQuery(document).ready(function() {
var g_messageDeleteSlide = "<?php
_uge("Delete this slide?", REVSLIDER_TEXTDOMAIN);
?>
";
RevSliderAdmin.initSlidesListView("<?php
echo $sliderID;
?>
");
});
</script>
示例3: _uge
</span></h3>
<div class="toggled-content tp-closedatstart p20">
<div class="api-caption"><?php
_uge("Custom CSS", REVSLIDER_TEXTDOMAIN);
?>
:</div>
<div class="divide5"></div>
<textarea name="custom_css" id="rs_custom_css"><?php
echo $custom_css;
?>
</textarea>
<div class="divide20"></div>
<div class="api-caption"><?php
_uge("Custom JavaScript", REVSLIDER_TEXTDOMAIN);
?>
:</div>
<div class="divide5"></div>
<textarea name="custom_javascript" id="rs_custom_javascript"><?php
echo $custom_js;
?>
</textarea>
<div class="divide20"></div>
</div>
</div>
<script type="text/javascript">
rev_cm_custom_css = null;
rev_cm_custom_js = null;
示例4: _uge
<?php
echo $linkNewPost;
?>
<span id="slides_top_loader" class="slides_posts_loader" style="display:none;"><?php
_uge("Updating Sorting...", REVSLIDER_TEXTDOMAIN);
?>
</span>
<div class="vert_sap"></div>
<div class="sliders_list_container">
<?php
require self::getPathTemplate("slides_list_posts");
?>
</div>
<div class="vert_sap_medium"></div>
<div class="list_slides_bottom">
<?php
echo $linkNewPost;
?>
<a class="button-primary revyellow" href='<?php
echo self::getViewUrl(RevSliderAdmin::VIEW_SLIDERS);
?>
' ><i class="revicon-cancel"></i><?php
_uge("Close", REVSLIDER_TEXTDOMAIN);
?>
</a>
<a href="<?php
echo $linksSliderSettings;
示例5: _uge
</tr>
<tr>
<td><?php
_uge("Static Styles:", REVSLIDER_TEXTDOMAIN);
?>
</td>
<td><input type="radio" name="update_static_captions" value="true" checked="checked"> <?php
_uge("overwrite", REVSLIDER_TEXTDOMAIN);
?>
</td>
<td><input type="radio" name="update_static_captions" value="false"> <?php
_uge("append", REVSLIDER_TEXTDOMAIN);
?>
</td>
</tr>
</table>
<br><br>
<input type="submit" class='button-primary' value="<?php
_uge("Import Slider", REVSLIDER_TEXTDOMAIN);
?>
">
</form>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
RevSliderAdmin.initSlidersListView();
});
</script>
示例6: putErrorMessage
/**
*
* put inline error message in a box.
*/
public function putErrorMessage($message)
{
?>
<div style="width:800px;height:300px;margin-bottom:10px;border:1px solid black;margin:0px auto;">
<div style="padding-left:20px;padding-right:20px;line-height:1.5;padding-top:40px;color:red;font-size:16px;text-align:left;">
<?php
_uge("Revolution Slider Error", REVSLIDER_TEXTDOMAIN);
?>
: <?php
echo $message;
?>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".rev_slider").show();
});
</script>
<?php
}
示例7: 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";
$buttonRemoveID = $settingsID . "_button_remove";
$spanPreviewID = $buttonID . "_preview";
$img = "";
$value = UniteFunctionsRev::getVal($setting, "value");
if (!empty($value)) {
$urlImage = $value;
$imagePath = UniteFunctionsWPRev::getImageRealPathFromUrl($urlImage);
$img = '<div style="width:100px;height:70px;background:url(' . $urlImage . '); background-position:center center; background-size:contain;background-repeat:no-repeat;"></div>';
}
?>
<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;
?>
" style="width: 110px !important; float: left;" class='button-image-select button-primary revblue<?php
echo $class;
?>
' value="<?php
_uge('Choose Image', REVSLIDER_TEXTDOMAIN);
?>
"></input>
<input type="button" class="button-image-remove button-primary revred" style="width: 110px !important;" id="<?php
echo $buttonRemoveID;
?>
" value="<?php
_uge('Remove', REVSLIDER_TEXTDOMAIN);
?>
" />
<div class="clear"></div>
<?php
}
示例8: _uge
?>
<a id="button_save_slider" class='button-primary revgreen' href='javascript:void(0)' ><i class="revicon-cog"></i><span id="create_slider_text"><?php
_uge("Create Slider", REVSLIDER_TEXTDOMAIN);
?>
</span></a>
<?php
}
// end permission
?>
<span class="hor_sap"></span>
<a id="button_cancel_save_slider" class='button-primary revred' href='<?php
echo self::getViewUrl("sliders");
?>
' ><i class="revicon-cancel"></i><?php
_uge("Close", REVSLIDER_TEXTDOMAIN);
?>
</a>
</div>
</div>
</div>
<div class="settings_panel_right">
<?php
$settingsSliderParams->draw("form_slider_params", true);
?>
</div>
<div class="clear"></div>
</div>
</div>
<script type="text/javascript">
示例9: add_eg_additional_meta_field
/**
* Adds custom meta field into the essential grid meta box for post/pages
*/
public function add_eg_additional_meta_field($values)
{
$sld = new RevSlider();
$sliders = $sld->getArrSliders();
$shortcodes = array();
if (!empty($sliders)) {
$first = true;
foreach ($sliders as $slider) {
$name = $slider->getParam('shortcode', 'false');
if ($name != 'false') {
$shortcodes[$slider->getID()] = $name;
$first = false;
}
}
}
$selected_slider = isset($values['eg_sources_revslider']) ? $values['eg_sources_revslider'] : '';
if ($selected_slider == '') {
$selected_slider[0] = '';
}
?>
<p>
<strong style="font-size:14px"><?php
_uge('Choose Revolution Slider', REVSLIDER_TEXTDOMAIN);
?>
</strong>
</p>
<p>
<select name="eg_sources_revslider" id="eg_sources_revslider">
<option value=""<?php
selected($selected_slider[0], '');
?>
><?php
_uge('--- Choose Slider ---', REVSLIDER_TEXTDOMAIN);
?>
</option>
<?php
if (!empty($shortcodes)) {
foreach ($shortcodes as $id => $name) {
?>
<option value="<?php
echo $id;
?>
"<?php
selected($selected_slider[0], $id);
?>
><?php
echo $name;
?>
</option>
<?php
}
}
?>
</select>
</p>
<?php
}
示例10: _uge
:</div>
<div class="api-desc">
<?php
_uge("To update the slider please show the slider install package. The files will be overwriten.", REVSLIDER_TEXTDOMAIN);
?>
<br> <?php
_uge("File example: revslider.zip", REVSLIDER_TEXTDOMAIN);
?>
</div>
<br>
<form action="<?php
echo UniteBaseClassRev::$url_ajax;
?>
" enctype="multipart/form-data" method="post">
<input type="hidden" name="action" value="uniterevolution_ajax_action">
<input type="hidden" name="client_action" value="update_plugin">
<input type="hidden" name="nonce" value="<?php
echo wp_create_nonce("revslider_actions");
?>
">
<?php
_uge("Choose the update file:", REVSLIDER_TEXTDOMAIN);
?>
<br>
<input type="file" name="update_file" class="input_update_slider">
<input type="submit" class='button-secondary' value="<?php
_uge("Update Slider", REVSLIDER_TEXTDOMAIN);
?>
">
</form>
示例11: _uge
?>
.bind("revolution.slide.onloaded",function (e) {
//alert("slider loaded");
});
<?php
echo $api;
?>
.bind("revolution.slide.onchange",function (e,data) {
//alert("slide changed to: "+data.slideIndex);
//data.slideIndex <?php
_uge('is the index of the li container in this Slider', REVSLIDER_TEXTDOMAIN);
?>
//data.slide <?php
_uge('is the current slide jQuery object (the li element)', REVSLIDER_TEXTDOMAIN);
?>
});
<?php
echo $api;
?>
.bind("revolution.slide.onpause",function (e,data) {
//alert("timer paused");
});
<?php
echo $api;
?>
.bind("revolution.slide.onresume",function (e,data) {
示例12: _uge
<a class='button-primary revgreen' href='<?php
echo $urlEditSlide;
?>
'><i class="revicon-pencil-1"></i><?php
_uge("Edit Post", REVSLIDER_TEXTDOMAIN);
?>
</a>
</span>
<span class="slide-col col-image">
<?php
if (!empty($urlImageForView)) {
?>
<div id="slide_image_<?php
echo $postID;
?>
" class="slide_image" title="Click to change the slide image. Note: The post featured image will be changed." alt="<?php
echo $imageAlt;
?>
" style="background-image:url('<?php
echo $urlImageForView;
?>
');<?php
echo $bgStyle;
?>
"></div>
<?php
} else {
?>
no image
<?php
}
示例13: _uge
?>
</td></tr>
<tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_state')">%event_location_state%</a></td><td><?php
_uge("Event location state", REVSLIDER_TEXTDOMAIN);
?>
</td></tr>
<tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_postcode')">%event_location_postcode%</a></td><td><?php
_uge("Event location postcode", REVSLIDER_TEXTDOMAIN);
?>
</td></tr>
<tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_region')">%event_location_region%</a></td><td><?php
_uge("Event location region", REVSLIDER_TEXTDOMAIN);
?>
</td></tr>
<tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_country')">%event_location_country%</a></td><td><?php
_uge("Event location country", REVSLIDER_TEXTDOMAIN);
?>
</td></tr>
</table>
<?php
}
?>
</div>
<!-- FIXED POSITIONED TOOLBOX -->
<div class="" style="position:fixed;right:-10px;top:100px;z-index:100;">
<?php
if (!$slide->isStaticSlide()) {
?>
<a href="javascript:void(0)" id="button_preview_slide-tb" class="button-primary button-fixed revbluedark"><div style="font-size:16px; padding:10px 5px;" class="revicon-search-1"></div></a>
示例14: _uge
?>
<a id="button_copy_slide_<?php
echo $slideid;
?>
" class='<?php
echo $copyButtonClass;
?>
' title="<?php
echo $copyButtonTitle;
?>
" style="width:120px; " href='javascript:void(0)'><i class="revicon-picture"></i><?php
_uge("Copy / Move", REVSLIDER_TEXTDOMAIN);
?>
</a>
<span class="loader_round loader_copy mtop_10 mleft_20 display_block" style="display:none;"><?php
_uge("Working...", REVSLIDER_TEXTDOMAIN);
?>
</span>
</span>
<span class="slide-col col-handle">
<div class="col-handle-inside">
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
</div>
</span>
<?php
}
// end permission
?>
<div class="clear"></div>
示例15: _uge
<div class="tp-googlefont-cus-row-l"><label><?php
_uge('Handle:', REVSLIDER_TEXTDOMAIN);
?>
</label><span style="margin-left:-20px;margin-right:2px;"><strong>tp-</strong></span><input type="text" name="eg-font-handle" value="" /></div>
<div style="margin-top:0px; padding-left:100px; margin-bottom:20px;">
<i style="font-size:12px;color:#777; line-height:20px;"><?php
_uge('Unique WordPress handle (Internal use only)', REVSLIDER_TEXTDOMAIN);
?>
</i>
</div>
<div class="tp-googlefont-cus-row-l"><label><?php
_uge('Parameter:', REVSLIDER_TEXTDOMAIN);
?>
</label><input type="text" name="eg-font-url" value="" /></div>
<div style="padding-left:100px;">
<i style="font-size:12px;color:#777; line-height:20px;"><?php
_uge('Copy the Google Font Family from <a href="http://www.google.com/fonts" target="_blank">http://www.google.com/fonts</a><br/>i.e.:<strong>Open+Sans:400,600,700</strong>', REVSLIDER_TEXTDOMAIN);
?>
</i>
</div>
</div>
<script type="text/javascript">
jQuery(function(){
UniteAdminRev.initGoogleFonts();
UniteAdminRev.initAccordion();
});
</script>