本文整理汇总了PHP中wpl_global::import_activity方法的典型用法代码示例。如果您正苦于以下问题:PHP wpl_global::import_activity方法的具体用法?PHP wpl_global::import_activity怎么用?PHP wpl_global::import_activity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpl_global
的用法示例。
在下文中一共展示了wpl_global::import_activity方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generate_params_page
private function generate_params_page($dbst_id)
{
$params = array('element_class' => 'wpl_params_cnt', 'js_function' => 'wpl_save_params', 'id' => $dbst_id, 'table' => 'wpl_dbst', 'html_path_message' => 'dont_show', 'close_fancybox' => true);
wpl_global::import_activity('params:default', '', $params);
exit;
}
示例2: str_replace
$upload_params['request_str'] = str_replace('[item_id]', $item_id, $upload_params['request_str']);
$activity_layout = isset($options['layout']) ? $options['layout'] : 'default';
?>
<label for="wpl_c_<?php
echo $field->id;
?>
"><?php
echo __($label, WPL_TEXTDOMAIN);
if (in_array($mandatory, array(1, 2))) {
?>
<span class="wpl_red_star">*</span><?php
}
?>
</label>
<?php
wpl_global::import_activity('ajax_file_upload:' . $activity_layout, '', $upload_params);
?>
<span id="wpl_upload_saved_span_<?php
echo $field->id;
?>
" class="wpl_listing_saved_span"></span>
<?php
if ($options['preview'] and trim($value) != '') {
?>
<div class="upload-preview-wp preview_upload" id="preview_upload<?php
echo $field->id;
?>
">
<div class="upload-preview">
<img src="<?php
echo wpl_items::get_folder($item_id, $field->kind) . $value;
示例3: __
<thead>
<tr>
<th>
<?php
echo __('Google Icon', WPL_TEXTDOMAIN);
?>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php
$params = array('html_element_id' => 'wpl_gicon_file', 'html_path_message' => '.wpl_data_structure_list_gicon .wpl_show_message', 'html_ajax_loader' => '#wpl_gicon_ajax_loader', 'request_str' => 'admin.php?wpl_format=b:data_structure:ajax_listing_types&wpl_function=gicon_upload_file');
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);
示例4: __
</div>
</div>
<div class="side-6 side-statistic2">
<div class="panel-wp">
<h3><?php
echo __('Properties by property types', WPL_TEXTDOMAIN);
?>
</h3>
<div class="panel-body">
<?php
$properties = wpl_db::select("SELECT COUNT(*) as count, `property_type` FROM `#__wpl_properties` WHERE `finalized`='1' AND `expired`='0' AND `confirmed`='1' AND `deleted`='0' AND `property_type`!='0' GROUP BY `property_type`", 'loadAssocList');
$data = array();
$total = 0;
foreach ($properties as $property) {
$property_type = wpl_global::get_property_types($property['property_type']);
if (is_object($property_type)) {
$data[__($property_type->name, WPL_TEXTDOMAIN)] = $property['count'];
$total += $property['count'];
}
}
$params = array('chart_background' => '#fafafa', 'chart_width' => '100%', 'chart_height' => '250px', 'show_value' => 1, 'data' => $data);
if (count($data)) {
echo '<div class="wpl-total-properties">' . sprintf(__('Total Properties: %s', WPL_TEXTDOMAIN), $total) . '</div>';
wpl_global::import_activity('charts:bar', '', $params);
} else {
echo __('No data!', WPL_TEXTDOMAIN);
}
?>
</div>
</div>
</div>
示例5:
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;
?>
"><?php
echo $setting_title;
?>
<span class="wpl_st_citation">:</span></label>
<?php
wpl_global::import_activity('ajax_file_upload', '', $activity_params);
?>
<span class="ajax-inline-save" id="wpl_ajax_loader_<?php
echo $setting_record->id;
?>
"></span>
<?php
if ($setting_record->setting_value) {
?>
<div class="upload-preview wpl-upload-setting">
<img id="wpl_upload_image<?php
echo $setting_record->id;
?>
" src="<?php
echo $src;
?>
示例6: __
echo __('Settings', WPL_TEXTDOMAIN);
?>
</a>
</header>
<div class="sidebar-wp">
<div class="side-15">
<div class="panel-wp">
<h3>
<?php
echo __('Location Tools', WPL_TEXTDOMAIN);
?>
</h3>
<div class="panel-body">
<?php
$params = array('element_class' => 'location_breadcrumb', 'root_url' => $this->admin_url . 'admin.php?page=wpl_admin_locations', 'location_level' => $this->level, 'location_id' => $this->parent, 'load_zipcodes' => $this->load_zipcodes);
wpl_global::import_activity('location_breadcrumb:location_manager', '', $params);
?>
<div class="location_tools">
<?php
if ($this->level == 1 and $this->enabled == 1) {
?>
<input class="button" type="submit" value="<?php
echo __('Show all countries', WPL_TEXTDOMAIN);
?>
" onclick="wpl_show_countries(-1);" />
<?php
} elseif ($this->level == 1) {
?>
<input class="button" type="submit" value="<?php
echo __('Show enabled countries', WPL_TEXTDOMAIN);
?>