예제 #1
0
파일: table.php 프로젝트: WaitButWhy/www
 /**
  * DEFINE setting options of shortcode
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Width', IGPBL), 'type' => array(array('id' => 'width_value', 'type' => 'text_number', 'std' => '', 'class' => 'input-mini', 'validate' => 'number', 'parent_class' => 'combo-item merge-data'), array('id' => 'width_type', 'type' => 'select', 'class' => 'input-mini', 'options' => array('%' => '%', 'px' => 'px'), 'std' => '%', 'parent_class' => 'combo-item merge-data')), 'container_class' => 'combo-group', 'tooltip' => __('Set the width of a row (px or %)', IGPBL)), array('name' => __('Tag Name', IGPBL), 'id' => 'tagname', 'type' => 'text_field', 'std' => 'td', 'input_type' => 'hidden', 'container_class' => 'hidden', 'tooltip' => __('', IGPBL)), array('name' => __('Row Span', IGPBL), 'id' => 'rowspan', 'type' => 'text_number', 'std' => '1', 'class' => 'input-mini positive-val', 'validate' => 'number', 'role' => 'extract', 'tooltip' => __('Enable extending over multiple rows', IGPBL)), array('name' => __('Column Span', IGPBL), 'id' => 'colspan', 'type' => 'text_number', 'std' => '1', 'class' => 'input-mini positive-val', 'validate' => 'number', 'role' => 'extract', 'tooltip' => __('Enable extending over multiple columns', IGPBL)), array('name' => __('Row Style', IGPBL), 'id' => 'rowstyle', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_table_row_color()), 'options' => IG_Pb_Helper_Type::get_table_row_color(), 'tooltip' => __('Select a style for a row', IGPBL)), array('name' => __('Content', IGPBL), 'id' => 'cell_content', 'role' => 'content', 'role_2' => 'title', 'type' => 'editor', 'std' => __('', IGPBL), 'tooltip' => __('Table content', IGPBL))));
 }