本文整理汇总了PHP中wpl_global::get_wpl_asset_url方法的典型用法代码示例。如果您正苦于以下问题:PHP wpl_global::get_wpl_asset_url方法的具体用法?PHP wpl_global::get_wpl_asset_url怎么用?PHP wpl_global::get_wpl_asset_url使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpl_global
的用法示例。
在下文中一共展示了wpl_global::get_wpl_asset_url方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
echo $category->id;
?>
" style="<?php
echo $display;
?>
">
<?php
$this->generate_slide($category);
?>
</div>
<?php
}
?>
<div class="wpl_slide_container wpl_slide_container10000" id="wpl_slide_container_id10000">
<div id="wpl_slide_container_id10000_befor_save" class="hide"><img src="<?php
echo wpl_global::get_wpl_asset_url('img/ajax-loader3.gif');
?>
" /></div>
<div id="wpl_slide_container_id10000_after_save" class="hide">
<div class="after-finilize-wp">
<div class="finilize-icon"></div>
<div class="message-wp">
<span>
<?php
echo __('Your property successfully finalized!', WPL_TEXTDOMAIN);
?>
</span>
<div class="finilize-btn-wp">
<?php
$listing_target_page = wpl_global::get_client() == 1 ? wpl_global::get_setting('backend_listing_target_page') : NULL;
$property_link = wpl_property::get_property_link('', $this->property_id, $listing_target_page);
示例2: register_shortcode_buttons
/**
* Registering shortcode buttons
* @author Howard <howard@realtyna.com>
* @param array $plugin_array
* @return array
*/
public function register_shortcode_buttons($plugin_array)
{
$plugin_array['wplbuttons'] = wpl_global::get_wpl_asset_url('packages/mce_editor/wpl.js');
return $plugin_array;
}
示例3:
echo wpl_global::get_wpl_asset_url('js/libraries/realtyna/realtyna.min.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo wpl_global::get_wpl_asset_url('js/libraries/realtyna/realtyna.utility.min.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo wpl_global::get_wpl_asset_url('js/libraries/realtyna/realtyna.tagging.min.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo wpl_global::get_wpl_asset_url('js/libraries/realtyna/realtyna.lightbox.min.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo wpl_global::get_wpl_asset_url('js/backend.min.js');
?>
"></script>
<link rel="stylesheet" id="wpl_backend_main_style-css" type="text/css" media="all" href="<?php
echo wpl_global::get_wpl_asset_url('css/backend.css');
?>
" />
</head>
<body>
<?php
echo $this->{$function}();
?>
</body>
</html>
示例4:
/** Remove next location levels **/
for(i=next_level; i<=7; i++)
{
if(wplj("#wpl' . $widget_id . '_search_widget_location_level_container"+i).length)
{
/** remove form element **/
wplj("#wpl' . $widget_id . '_search_widget_location_level_container"+i).remove();
}
}
/** load zipcodes **/
if(next_level > ' . $location_settings['zipcode_parent_level'] . ') next_level = "zips";
wplj("#wpl' . $widget_id . '_search_fields_location_' . $field['id'] . '").append(\'<div class="wpl_search_widget_location_level_container" id="wpl' . $widget_id . '_search_widget_location_level_container\'+next_level+\'"></div>\');
wplj("#wpl' . $widget_id . '_search_widget_location_level_container"+next_level).html(\'<img src="' . wpl_global::get_wpl_asset_url('img/ajax-loader3.gif') . '" />\');
request_str = "wpl_format=f:property_listing:ajax&wpl_function=get_locations&location_level="+next_level+"¤t_location_id="+id+"&parent="+parent+"&widget_id=' . $widget_id . '";
/** run ajax query **/
ajax = wpl_run_ajax_query("' . wpl_global::get_full_url() . '", request_str);
ajax.success(function(data)
{
if(data.success == 1)
{
wplj("#wpl' . $widget_id . '_search_widget_location_level_container"+next_level).html("");
html += \'<label class="wpl_search_widget_location_level_label" for="sf' . $widget_id . '_select_location\'+next_level+\'_id">\'+data.keyword+\'</label>\';
html += data.html;
wplj("#wpl' . $widget_id . '_search_widget_location_level_container"+next_level).html(html);
示例5: wplj
select").chosen();
wplj('#wpl_searchwidget_<?php
echo $widget_id;
?>
input.yesno[type="checkbox"]').checkbox({
cls: 'jquery-safari-checkbox',
empty: '<?php
echo wpl_global::get_wpl_asset_url('img/empty.png');
?>
'
});
wplj('#wpl_searchwidget_<?php
echo $widget_id;
?>
input[type="checkbox"]:not(.yesno)').checkbox({empty: '<?php
echo wpl_global::get_wpl_asset_url('img/empty.png');
?>
'});
/** make the form empty if searched by listing id **/
wplj("#sf<?php
echo $widget_id;
?>
_select_mls_id").on("change", function () {
wpl_do_reset<?php
echo $widget_id;
?>
(new Array("sf<?php
echo $widget_id;
?>
_select_mls_id"), false);
示例6: render_attachments
/**
* Renders attachments
* @author Howard R <howard@realtyna.com>
* @static
* @param array $attachments
* @return array
*/
public static function render_attachments($attachments = array())
{
_wpl_import('libraries.render');
/** force to array **/
$attachments = (array) $attachments;
$return = array();
$i = 0;
foreach ($attachments as $attachment) {
/** force to array **/
$attachment = (array) $attachment;
$att_path = self::get_path($attachment['parent_id'], $attachment['parent_kind']) . $attachment['item_name'];
$att_url = self::get_folder($attachment['parent_id'], $attachment['parent_kind']) . $attachment['item_name'];
/** existance check **/
if (!wpl_file::exists($att_path)) {
continue;
}
$pathinfo = @pathinfo($att_path);
$filesize = @filesize($att_path);
$return[$i]['item_id'] = $attachment['id'];
$return[$i]['name'] = (isset($attachment['item_extra1']) and trim($attachment['item_extra1']) != '') ? $attachment['item_extra1'] : $attachment['item_name'];
$return[$i]['path'] = $att_path;
$return[$i]['url'] = $att_url;
$return[$i]['size'] = $filesize;
$return[$i]['rendered_size'] = wpl_render::render_file_size($filesize);
$return[$i]['title'] = (string) $attachment['item_extra1'];
$return[$i]['description'] = (string) $attachment['item_extra2'];
$return[$i]['category'] = $attachment['item_cat'];
$return[$i]['ext'] = $pathinfo['extension'];
$return[$i]['raw'] = $attachment;
/** attachment icon **/
$icon_url = wpl_global::get_wpl_asset_url('img/extentions/' . $pathinfo['extension'] . '.png');
$icon_path = WPL_ABSPATH . 'assets' . DS . 'img' . DS . 'extentions' . DS . $pathinfo['extension'] . '.png';
if (!wpl_file::exists($icon_path)) {
$icon_url = wpl_global::get_wpl_asset_url('img/extentions/default.png');
$icon_path = WPL_ABSPATH . DS . 'assets' . DS . 'img' . DS . 'extentions' . DS . 'default.png';
}
$return[$i]['icon_path'] = $icon_path;
$return[$i]['icon_url'] = $icon_url;
$i++;
}
return $return;
}
示例7: get_icon
/**
* Returns icon details
* @author Howard <howard@realtyna.com>
* @static
* @param string $icon_name
* @return array
*/
public static function get_icon($icon_name)
{
$url = wpl_global::get_wpl_asset_url('img/rooms/' . $icon_name);
$path = WPL_ABSPATH . 'assets' . DS . 'img' . DS . 'rooms' . DS . $icon_name;
list($width, $height) = getimagesize($path);
return array('url' => $url, 'path' => $path, 'width' => $width, 'height' => $height);
}
示例8:
ajax_loader_element = '#<?php
echo $html_ajax_loader;
?>
';
url = '<?php
echo wpl_global::get_full_url();
?>
';
wpl_remove_message('<?php
echo $html_path_message;
?>
');
wplj(ajax_loader_element).html('<img src="<?php
echo wpl_global::get_wpl_asset_url('img/' . $img_ajax_loader);
?>
" />');
request_str = 'wpl_format=a:params:main&wpl_function=save_params&table=<?php
echo $db_table;
?>
&id=<?php
echo $record_id;
?>
' + request_str;
ajax = wpl_run_ajax_query(url, request_str);
ajax.success(function(data)
{
if (data.success == 1)
示例9: elseif
</span>
</span>
<?php
}
?>
<span class="ajax-inline-save" id="wpl_ajax_loader_<?php
echo $setting_record->id;
?>
"></span>
</div>
</div>
<?php
$done_this = true;
} elseif ($type == 'upload' and !$done_this) {
$src = wpl_global::get_wpl_asset_url('img/system/' . $setting_record->setting_value);
$params = array('html_element_id' => 'wpl_watermark_uploader', 'html_ajax_loader' => '#wpl_ajax_loader_' . $setting_record->id, 'request_str' => 'admin.php?wpl_format=b:settings:ajax&wpl_function=save_watermark_image');
?>
<div class="prow wpl_setting_form_container wpl_st_type<?php
echo $setting_record->type;
?>
wpl_st_<?php
echo $setting_record->setting_name;
?>
" id="wpl_st_<?php
echo $setting_record->id;
?>
">
<div class="upload-wp">
<label for="wpl_st_form_element<?php
echo $setting_record->id;
示例10: foreach
wpl_global::import_activity('ajax_file_upload:default', '', $params);
?>
<span class="ajax-inline-save" id="wpl_gicon_ajax_loader"></span>
</td>
</tr>
<tr>
<td class="gmarker-icon-wp" id="wpl_gicon_listing">
<?php
foreach ($this->listing_gicons as $index => $listing_gicon) {
?>
<div class="gmarker-icon" id="gicon<?php
echo $index;
?>
">
<img src="<?php
echo wpl_global::get_wpl_asset_url('img/listing_types/gicon/' . $listing_gicon);
?>
" alt="" />
<span class="action-btn icon-recycle-3" onclick="wpl_gicon_delete('<?php
echo $listing_gicon;
?>
', 0, '<?php
echo $index;
?>
')"></span>
<span class="ajax-inline-save" id="wpl_gicon_ajax_loader_<?php
echo __($index, WPL_TEXTDOMAIN);
?>
"></span>
</div>
<?php
示例11: __
$current_checkin_value = wpl_request::getVar('sf_calendarcheckin', '');
$current_checkout_value = wpl_request::getVar('sf_calendarcheckout', '');
/** for opening more details **/
$current_value = $current_checkin_value;
$html .= '<div class="wpl_search_widget_calendar_search_container">';
$html .= '<input type="text" name="sf' . $widget_id . '_calendarcheckin" id="sf' . $widget_id . '_calendarcheckin" value="' . ($current_checkin_value != '' ? $current_checkin_value : '') . '" placeholder="' . __('Check In', WPL_TEXTDOMAIN) . '" />';
$html .= '<input type="text" name="sf' . $widget_id . '_calendarcheckout" id="sf' . $widget_id . '_calendarcheckout" value="' . ($current_checkout_value != '' ? $current_checkout_value : '') . '" placeholder="' . __('Check Out', WPL_TEXTDOMAIN) . '" />';
$html .= '</div>';
$html .= '
<script type="text/javascript">
wplj(document).ready(function()
{
wplj("#sf' . $widget_id . '_calendarcheckin, #sf' . $widget_id . '_calendarcheckout").datepicker(
{
dayNamesMin: ["' . addslashes(__('SU', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('MO', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('TU', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('WE', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('TH', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('FR', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('SA', WPL_TEXTDOMAIN)) . '"],
dayNames: ["' . addslashes(__('Sunday', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('Monday', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('Tuesday', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('Wednesday', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('Thursday', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('Friday', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('Saturday', WPL_TEXTDOMAIN)) . '"],
monthNames: ["' . addslashes(__('January', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('February', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('March', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('April', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('May', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('June', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('July', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('August', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('September', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('October', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('November', WPL_TEXTDOMAIN)) . '", "' . addslashes(__('December', WPL_TEXTDOMAIN)) . '"],
dateFormat: "' . addslashes($jqdate_format) . '",
gotoCurrent: true,
minDate: new Date(' . $mindate[0] . ', ' . intval($mindate[1]) . '-1, ' . $mindate[2] . '),
changeYear: true,
' . ($show_icon == '1' ? 'showOn: "both", buttonImage: "' . wpl_global::get_wpl_asset_url('img/system/calendar2.png') . '",' : '') . '
buttonImageOnly: true
});
});
</script>';
$done_this = true;
} elseif ($type == 'separator' and !$done_this) {
$html .= '<label id="wpl' . $widget_id . '_search_widget_separator_' . $field['id'] . '">' . __($field['name'], WPL_TEXTDOMAIN) . '</label>';
$done_this = true;
}
示例12: remove_upload
private function remove_upload()
{
$setting_name = wpl_request::getVar('setting_name', '');
$settings_value = wpl_settings::get($setting_name);
$upload_src = wpl_global::get_wpl_asset_url('img/system/' . $settings_value);
wpl_settings::save_setting($setting_name, NULL);
wpl_file::delete($upload_src);
/** Remove Thumbnails **/
wpl_settings::clear_cache('listings_thumbnails');
wpl_settings::clear_cache('users_thumbnails');
$response = array('success' => 1, 'message' => __('Uploaded file removed successfully!', WPL_TEXTDOMAIN));
echo json_encode($response);
exit;
}
示例13: defined
<?php
/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
?>
<script type="text/javascript">
try{videojs.options.flash.swf = "<?php
echo wpl_global::get_wpl_asset_url('packages/video-js/video-js.swf');
?>
";}
catch(err){}
</script>
示例14: function
echo '<script type="text/javascript">
wplj(document).ready( function ()
{
wplj("#wpl_c_' . $field->id . '").datepicker(
{
dayNamesMin: ["' . __('SU', WPL_TEXTDOMAIN) . '", "' . __('MO', WPL_TEXTDOMAIN) . '", "' . __('TU', WPL_TEXTDOMAIN) . '", "' . __('WE', WPL_TEXTDOMAIN) . '", "' . __('TH', WPL_TEXTDOMAIN) . '", "' . __('FR', WPL_TEXTDOMAIN) . '", "' . __('SA', WPL_TEXTDOMAIN) . '"],
dayNames: ["' . __('Sunday', WPL_TEXTDOMAIN) . '", "' . __('Monday', WPL_TEXTDOMAIN) . '", "' . __('Tuesday', WPL_TEXTDOMAIN) . '", "' . __('Wednesday', WPL_TEXTDOMAIN) . '", "' . __('Thursday', WPL_TEXTDOMAIN) . '", "' . __('Friday', WPL_TEXTDOMAIN) . '", "' . __('Saturday', WPL_TEXTDOMAIN) . '"],
monthNames: ["' . __('January', WPL_TEXTDOMAIN) . '", "' . __('February', WPL_TEXTDOMAIN) . '", "' . __('March', WPL_TEXTDOMAIN) . '", "' . __('April', WPL_TEXTDOMAIN) . '", "' . __('May', WPL_TEXTDOMAIN) . '", "' . __('June', WPL_TEXTDOMAIN) . '", "' . __('July', WPL_TEXTDOMAIN) . '", "' . __('August', WPL_TEXTDOMAIN) . '", "' . __('September', WPL_TEXTDOMAIN) . '", "' . __('October', WPL_TEXTDOMAIN) . '", "' . __('November', WPL_TEXTDOMAIN) . '", "' . __('December', WPL_TEXTDOMAIN) . '"],
dateFormat: "' . $jqdate_format . '",
gotoCurrent: true,
minDate: new Date(' . $mindate[0] . ', ' . $mindate[1] . '-1, ' . $mindate[2] . '),
maxDate: new Date(' . $maxdate[0] . ', ' . $maxdate[1] . '-1, ' . $maxdate[2] . '),
changeYear: true,
yearRange: "' . $mindate[0] . ':' . $maxdate[0] . '",
showOn: "both",
buttonImage: "' . wpl_global::get_wpl_asset_url('img/system/calendar3.png') . '",
buttonImageOnly: false,
buttonImageOnly: true,
firstDay: 1,
onSelect: function(dateText, inst)
{
ajax_save("' . $field->table_name . '","' . $field->table_column . '",dateText,' . $item_id . ',' . $field->id . ');
}
});
});
</script>';
$done_this = true;
} elseif ($type == 'checkbox' and !$done_this) {
?>
<div class="checkbox-wp">
<input type="checkbox" class="wpl_c_<?php
示例15: pathinfo
" class="video-js vjs-default-skin" controls preload="none" width="<?php
echo $video_width;
?>
" height="<?php
echo $video_height;
?>
" data-setup="{}">
<source src="<?php
echo $video['url'];
?>
" type='video/<?php
echo pathinfo($video['url'], PATHINFO_EXTENSION);
?>
' />
<track kind="captions" src="<?php
echo wpl_global::get_wpl_asset_url('packages/video-js/demo.captions.vtt');
?>
" srclang="en" label="<?php
echo __('English', WPL_TEXTDOMAIN);
?>
"></track>
</video>
<?php
} elseif ($video['category'] == 'video_embed') {
?>
<?php
echo $video['url'];
?>
<?php
}
?>