fields = $fields; $this->cl_box_label = $args['cl_box_label'] ; $this->cl_box_add_control = $args['cl_box_add_control']; $this->cats = get_categories(array( 'hide_empty' => false )); parent::__construct( $manager, $id, $args ); } public function render_content() { $values = json_decode($this->value()); ?> label ); ?> description){ ?> description); ?> link() ); ?> class="cl-repeater-collector" value="value() ); ?>" /> fields; $values = json_decode($this->value()); if(is_array($values)){ foreach($values as $value){ ?>
  • cl_box_label ); ?>

    $field) { $class = isset( $field['class'] ) ? $field['class'] : ''; ?>
    $key) ? $value->$key : ''; $default = isset($field['default']) ? $field['default'] : ''; switch ( $field['type'] ) { case 'text': echo ''; break; case 'select': $options = $field['options']; echo ''; break; case 'url': echo ''; break; case 'icons': echo '
    '; echo ''; echo ''; echo '
    '; echo '
      '; $businessroy_awesome_icon_array = businessroy_awesome_icon_array(); foreach ($businessroy_awesome_icon_array as $cl_awesome_icon) { $icon_class = $new_value == $cl_awesome_icon ? 'icon-active' : ''; echo '
    • '; } echo '
    '; echo ''; break; case 'upload': $image = $image_class= ""; if($new_value){ $image = ''; $image_class = ' hidden'; } echo '
    '; echo '
    '; echo '
    '; esc_html_e('No image selected', 'business-roy'); echo '
    '; echo '
    '; echo $image; echo '
    '; echo '
    '; echo ''; echo ''; echo ''; echo '
    '; echo '
    '; echo '
    '; break; default: break; } ?>
  • choices ) ) return; ?> label ) ) : ?> label ); ?> description ) ) : ?> description ); ?> value() ) ? explode( ',', $this->value() ) : $this->value(); ?> link() ); ?> value="" /> switch_label = $args['switch_label']; parent::__construct( $manager, $id, $args ); } public function render_content(){ ?> label ); ?> description){ ?> description ); ?> value() == 'enable') ? 'switch-on' : ''; $switch_label = $this->switch_label; ?>
    link(); ?> type="hidden" value="value()); ?>"/>