コード例 #1
0
ファイル: default.php プロジェクト: gvh1993/project-vvvh
<?php

/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
/** set params **/
$js_function = isset($params['js_function']) ? $params['js_function'] : 'wpl_save_params';
$element_class = isset($params['element_class']) ? $params['element_class'] : '';
$element_id = isset($params['element_id']) ? $params['element_id'] : 'wpl_params_cnt' . rand(1, 100);
$html_path_message = isset($params['html_path_message']) ? $params['html_path_message'] : '.wpl_params_activity .wpl_show_message';
$html_ajax_loader = isset($params['html_ajax_loader']) ? $params['html_ajax_loader'] : 'wpl_params_ajax_loader';
$img_ajax_loader = isset($params['img_ajax_loader']) ? $params['img_ajax_loader'] : 'ajax-loader3.gif';
$close_lightbox = isset($params['close_fancybox']) ? $params['close_fancybox'] : 0;
$db_table = isset($params['table']) ? $params['table'] : '';
$record_id = isset($params['id']) ? $params['id'] : '';
$params_array = (isset($params['params']) and is_array($params['params'])) ? $params['params'] : wpl_global::get_params($db_table, $record_id);
if (!$params_array) {
    $params_array = array('' => '');
}
?>
<div class="<?php 
echo $element_class;
?>
 fanc-params-wp fanc-content size-width-1" id="<?php 
echo $element_id;
?>
">
    <h2><?php 
echo __('Parameters', WPL_TEXTDOMAIN);
?>
</h2>
    <div class="fanc-body">