PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
cmb2
/
includes
/
types
<?php /** * CMB title field type * * @since 2.2.2 * * @category WordPress_Plugin * @package CMB2 * @author CMB2 team * @license GPL-2.0+ * @link https://cmb2.io */ class CMB2_Type_Title extends CMB2_Type_Base { /** * Handles outputting an 'title' element * * @return string Heading element */ public function render() { $name = $this->field->args( 'name' ); $tag = 'span'; if ( ! empty( $name ) ) { $tag = $this->field->object_type == 'post' ? 'h5' : 'h3'; } $a = $this->parse_args( 'title', array( 'tag' => $tag, 'class' => empty( $name ) ? 'cmb2-metabox-title-anchor' : 'cmb2-metabox-title', 'name' => $name, 'desc' => $this->_desc( true ), 'id' => str_replace( '_', '-', sanitize_html_class( $this->field->id() ) ), ) ); return $this->rendered( sprintf( '<%1$s %2$s>%3$s</%1$s>%4$s', $a['tag'], $this->concat_attrs( $a, array( 'tag', 'name', 'desc' ) ), $a['name'], $a['desc'] ) ); } }
[+]
..
[-] CMB2_Type_Taxonomy_Radio_Hierarchical.php
[edit]
[-] CMB2_Type_Colorpicker.php
[edit]
[-] CMB2_Type_Text_Datetime_Timestamp_Timezone.php
[edit]
[-] CMB2_Type_Text_Datetime_Timestamp.php
[edit]
[-] CMB2_Type_Select_Timezone.php
[edit]
[-] CMB2_Type_Textarea.php
[edit]
[-] CMB2_Type_Textarea_Code.php
[edit]
[-] CMB2_Type_Multicheck.php
[edit]
[-] CMB2_Type_Select.php
[edit]
[-] CMB2_Type_Taxonomy_Base.php
[edit]
[-] CMB2_Type_File.php
[edit]
[-] CMB2_Type_File_Base.php
[edit]
[-] CMB2_Type_Base.php
[edit]
[-] CMB2_Type_Wysiwyg.php
[edit]
[-] CMB2_Type_Taxonomy_Multicheck.php
[edit]
[-] CMB2_Type_Text.php
[edit]
[-] CMB2_Type_Taxonomy_Multicheck_Hierarchical.php
[edit]
[-] CMB2_Type_Taxonomy_Radio.php
[edit]
[-] CMB2_Type_Oembed.php
[edit]
[-] CMB2_Type_Checkbox.php
[edit]
[-] CMB2_Type_Picker_Base.php
[edit]
[-] CMB2_Type_Title.php
[edit]
[-] CMB2_Type_Text_Time.php
[edit]
[-] CMB2_Type_File_List.php
[edit]
[-] CMB2_Type_Taxonomy_Select.php
[edit]
[-] CMB2_Type_Radio.php
[edit]
[-] CMB2_Type_Multi_Base.php
[edit]
[-] CMB2_Type_Text_Date.php
[edit]