function wrap($content, $taxonomy, $before, $sep, $after) { global $post; if (!in_the_loop()) { return $content; } $post_id = $post->ID; if (!$post_id) { return $content; } $data = compact('post_id', 'taxonomy', 'before', 'sep', 'after'); if (!$this->check($data)) { return $content; } $content = $this->placehold($content); $data['type'] = is_taxonomy_hierarchical($taxonomy) ? FEE_Core::$options->taxonomy_ui : 'terminput'; return FEE_Field_Base::wrap($content, $data); }
function wrap($img, $key) { if (!$this->check()) { return $img; } return parent::wrap($img, compact('key')); }
function wrap($content = null, $data = null, $instance = null, $id_base = null) { // Only target text widgets if ('title' == $this->field && (!$id_base || 'text' != $id_base)) { return $content; } if ('text' == $this->field) { $content = $this->placehold($content); } return FEE_Field_Base::wrap($content, array()); }
function wrap($content = null, $data = null, $img = null, $key = null) { if (!$this->check()) { return $img; } return parent::wrap($img, compact('key')); }
function wrap($data, $post_id, $key, $ui, $single) { if ($this->check($post_id)) { if ($single) { $data = array($this->placehold($data)); } $r = array(); foreach ($data as $i => $val) { $r[$i] = FEE_Field_Base::wrap($val, compact('post_id', 'key', 'ui', 'i')); } } else { $r = (array) $data; } if ($single) { return $r[0]; } return $r; }
function wrap($data, $post_id, $key, $type, $single) { extract(self::convert_type($type)); if ($this->check($post_id)) { if ($single) { if ('checkbox' == $type) { $value = (bool) get_post_meta($post_id, $key, true); $data = $values[$value]; } else { $data = $this->placehold($data); } $data = array($data); } $r = array(); foreach ($data as $i => $val) { $r[$i] = FEE_Field_Base::wrap($val, compact('post_id', 'key', 'type', 'values', 'i')); } } else { $r = (array) $data; } if ($single) { return $r[0]; } return $r; }