本文整理汇总了PHP中Essential_Grid_Base::output_demo_skin_html方法的典型用法代码示例。如果您正苦于以下问题:PHP Essential_Grid_Base::output_demo_skin_html方法的具体用法?PHP Essential_Grid_Base::output_demo_skin_html怎么用?PHP Essential_Grid_Base::output_demo_skin_html使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Essential_Grid_Base
的用法示例。
在下文中一共展示了Essential_Grid_Base::output_demo_skin_html方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: on_ajax_action
//.........这里部分代码省略.........
if (!isset($data['name'])) {
Essential_Grid::ajaxResponseError(__('No name given', EG_TEXTDOMAIN), false);
}
$wa = new Essential_Grid_Widget_Areas();
$result = $wa->edit_widget_area_by_handle($data);
if ($result === true) {
Essential_Grid::ajaxResponseSuccess(__("Widget Area successfully changed!", EG_TEXTDOMAIN), array('data' => $result));
} else {
Essential_Grid::ajaxResponseError($result, false);
}
break;
case 'remove_widget_area':
if (!isset($data['handle'])) {
Essential_Grid::ajaxResponseError(__('Widget Area not found', EG_TEXTDOMAIN), false);
}
$wa = new Essential_Grid_Widget_Areas();
$result = $wa->remove_widget_area_by_handle($data['handle']);
if ($result === true) {
Essential_Grid::ajaxResponseSuccess(__("Widget Area successfully removed!", EG_TEXTDOMAIN), array('data' => $result));
} else {
Essential_Grid::ajaxResponseError($result, false);
}
break;
case 'get_preview_html_markup':
//add wpml transient
$lang_code = '';
if (Essential_Grid_Wpml::is_wpml_exists()) {
$lang_code = Essential_Grid_Wpml::get_current_lang_code();
}
if (isset($data['id'])) {
delete_transient('ess_grid_trans_query_' . $data['id'] . $lang_code);
//delete cache
}
$result = Essential_Grid_Base::output_demo_skin_html($data);
if (isset($result['error'])) {
Essential_Grid::ajaxResponseData($result);
} else {
Essential_Grid::ajaxResponseData(array("data" => array('html' => $result['html'], 'preview' => @$result['preview'])));
}
break;
/* //TP: CHUNK
case 'get_preview_html_markup_chunk': //only for custom grid
$grid = new Essential_Grid();
$grid->init_by_data($data);
$html = '';
if($grid->is_custom_grid()){
ob_start();
$grid->output_by_custom('custom', true);
$html = ob_get_contents();
ob_clean();
ob_end_clean();
}
$order_id = self::getPostVar("order_id", false);
Essential_Grid::ajaxResponseData(array("data"=>array('preview' => $html, 'order_id' => $order_id)));
break; */
/* //TP: CHUNK
case 'get_preview_html_markup_chunk': //only for custom grid
$grid = new Essential_Grid();
$grid->init_by_data($data);
$html = '';