예제 #1
0
파일: bold.php 프로젝트: hamby/SEBLOD
 public function onCCK_Field_TypoPrepareContent(&$field, $target = 'value', &$config = array())
 {
     if (self::$type != $field->typo) {
         return;
     }
     // Prepare
     $typo = parent::g_getTypo($field->typo_options);
     $value = parent::g_hasLink($field, $typo, $field->{$target});
     // Set
     if ($field->typo_label) {
         $field->label = self::_typo($typo, $field, $field->label, $config);
     }
     $field->typo = self::_typo($typo, $field, $value, $config);
 }
예제 #2
0
파일: image.php 프로젝트: hamby/SEBLOD
 public function onCCK_Field_TypoPrepareContent(&$field, $target = 'value', &$config = array())
 {
     if (self::$type != $field->typo) {
         return;
     }
     self::$path = JURI::root() . 'plugins/cck_field_typo/' . self::$type . '/';
     // Prepare
     if ($field->value && $field->value != '') {
         $typo = parent::g_getTypo($field->typo_options);
         $field->typo = self::_typo($typo, $field, '', $config);
     } else {
         $field->typo = '';
     }
 }
예제 #3
0
파일: html.php 프로젝트: densem-2013/exikom
 public function onCCK_Field_TypoPrepareContent(&$field, $target = 'value', &$config = array())
 {
     if (self::$type != $field->typo) {
         return;
     }
     // Prepare
     $typo = parent::g_getTypo($field->typo_options);
     // Set
     if ($typo->get('html', '') == 'clear') {
         $field->display = 0;
         $field->type = '';
     } else {
         if ($field->typo_label) {
             $field->label = self::_typo($typo, $field, '', $config);
         }
         $field->typo = self::_typo($typo, $field, '', $config);
     }
 }