PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
fields-nav-menu
<?php class QodeFrameworkFieldNavMenuIconpack extends QodeFrameworkFieldNavMenuType { function __construct( $params ) { $params['icons_object'] = qode_framework_icons(); $params['icon_packs'] = $params['icons_object']->get_icon_packs(); parent::__construct( $params ); } public function render() { $this->params['class'] .= ' qodef-icon-pack-field'; ?> <p class="description description-<?php echo esc_attr( $this->params['width'] ); ?> <?php echo esc_attr( $this->params['class'] ); ?>" <?php echo qode_framework_get_inline_attrs( $this->params['dependency_data'], true ); ?>> <label for="<?php echo esc_attr( $this->params['id'] ); ?>"><?php echo esc_html( $this->title ); ?><br/> <select type="text" id="<?php echo esc_attr( $this->params['id'] ); ?>" class="widefat qodef-menu-item-field <?php echo esc_attr( $this->params['id'] ); ?>" data-option-type="selectbox" data-option-name="<?php echo esc_attr( $this->params['field_name'] ); ?>" data-selected="<?php echo esc_attr( $this->params['value'] ); ?>" name="<?php echo esc_attr( $this->params['field_name'] ); ?>"> <option value=""> <?php echo esc_html__( 'Select Icon Pack', 'qode-framework' ); ?> </option> <?php foreach ( $this->params['icon_packs'] as $key => $label ) { $selected = $this->params['value'] == $key ? ' selected="selected"' : ''; ?> <option <?php echo esc_attr( $selected ); ?> value="<?php echo esc_attr( $key ); ?>"> <?php echo esc_html( $label ); ?> </option> <?php } ?> </select> <span class="description"><?php echo esc_html( $this->description ); ?></span> </label> </p> <?php } }
[-] class-qodeframeworkfieldnavmenutype.php
[edit]
[+]
..
[-] class-qodeframeworkfieldnavmenuselect.php
[edit]
[-] class-qodeframeworkfieldnavmenutext.php
[edit]
[-] class-qodeframeworkfieldnavmenuicon.php
[edit]
[-] class-qodeframeworkfieldnavmenuiconpack.php
[edit]
[-] class-qodeframeworkfieldnavmenucheckbox.php
[edit]