コード例 #1
0
ファイル: element.php プロジェクト: densem-2013/exikom
 /**
  * Add more options to all elements
  * 
  * @return type
  */
 public function element_items_extra()
 {
     $css_suffix = array('name' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_CSS_CLASS_SUFFIX'), 'id' => 'css_suffix', 'type' => 'text_field', 'std' => JText::_(''), 'tooltip' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_CSS_CLASS_SUFFIX_DES'));
     $appearing_animation = array('name' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_APPEARING_ANIMATION'), 'id' => 'appearing_animation', 'type' => 'select', 'std' => '0', 'options' => JSNPagebuilderHelpersType::getAnimation(), 'tooltip' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_APPEARING_ANIMATION_DES'), 'has_depend' => '1');
     $appearing_animation_speed = array('name' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_APPEARING_ANIMATION_SPEED'), 'id' => 'appearing_animation_speed', 'type' => 'select', 'dependency' => array('appearing_animation', '!=', '0'), 'std' => 'medium', 'options' => array('slow' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_SLOW'), 'medium' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_MEDIUM'), 'fast' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_FAST')), 'tooltip' => JText::_('JSN_PAGEBUILDER_LIB_SHORTCODE_ELEMENT_APPEARING_ANIMATION_SPEED_DES'));
     if (isset($this->items['styling'])) {
         $this->items['styling'] = array_merge($this->items['styling'], array($appearing_animation, $appearing_animation_speed, $css_suffix, array('name' => JText::_('JSN_PAGEBUILDER_HELPER_SHORTCODE_MARGIN'), 'container_class' => 'combo-group', 'id' => 'div_margin', 'type' => 'margin', 'extended_ids' => array('div_margin_top', 'div_margin_bottom'), 'div_margin_top' => array('std' => ''), 'div_margin_bottom' => array('std' => ''), 'margin_elements' => 't, b', 'tooltip' => JText::_('Set margin size'))));
     } else {
         if (isset($this->items['Notab'])) {
             $this->items['Notab'] = array_merge($this->items['Notab'], array());
         }
     }
 }
コード例 #2
0
ファイル: element.php プロジェクト: site4com/prometheus
 /**
  * Add more options to all elements
  * 
  * @return type
  */
 public function element_items_extra()
 {
     $css_suffix = array('name' => JText::_('CSS Class suffix'), 'id' => 'css_suffix', 'type' => 'text_field', 'std' => JText::_(''), 'tooltip' => JText::_('Add custom css class for the wrapper div of this element'));
     $appearing_animation = array('name' => JText::_('Appearing Animation'), 'id' => 'appearing_animation', 'type' => 'select', 'std' => '0', 'options' => JSNPagebuilderHelpersType::getAnimation(), 'tooltip' => JText::_('Add Animation to Element'), 'has_depend' => '1');
     $appearing_animation_speed = array('name' => JText::_('Appearing Animation Speed'), 'id' => 'appearing_animation_speed', 'type' => 'select', 'dependency' => array('appearing_animation', '!=', '0'), 'std' => 'medium', 'options' => array('slow' => JText::_('Slow'), 'medium' => JText::_('Medium'), 'fast' => JText::_('Fast')), 'tooltip' => JText::_('Add Animation Speed to Element'));
     if (isset($this->items['styling'])) {
         $this->items['styling'] = array_merge($this->items['styling'], array($appearing_animation, $appearing_animation_speed, $css_suffix, array('name' => JText::_('Margin'), 'container_class' => 'combo-group', 'id' => 'div_margin', 'type' => 'margin', 'extended_ids' => array('div_margin_top', 'div_margin_bottom'), 'div_margin_top' => array('std' => ''), 'div_margin_bottom' => array('std' => ''), 'margin_elements' => 't, b', 'tooltip' => JText::_('Set margin size'))));
     } else {
         if (isset($this->items['Notab'])) {
             $this->items['Notab'] = array_merge($this->items['Notab'], array());
         }
     }
 }