name = $name; $this->label = $label; $this->description = $description; $calla_elated_Framework->eltdMetaBoxes->addOption( $this->name, "" ); } public function render( $factory ) { global $post; ?>

label ); ?>

description ); ?>

obtainAccessToken(); if ( $responseObj->status ) { $message = esc_html__( 'You have successfully connected with your Twitter account. If you have any issues fetching data from Twitter try reconnecting.', 'calla' ); } else { $message = $responseObj->message; } } $buttonText = $twitterApi->hasUserConnected() ? esc_html__( 'Re-connect with Twitter', 'calla' ) : esc_html__( 'Connect with Twitter', 'calla' ); ?>

setConnectionType( 'instagram' ); $instagram_api->instagramStoreCode(); $instagram_api->instagramExchangeCodeForToken(); $message = esc_html__( 'You have successfully connected with your Instagram Personal account.', 'calla' ); } //check if code parameter and instagram parameter is set in URL if ( ! empty( $_GET['access_token'] ) && ! empty( $_GET['facebook'] ) ) { //update code option so we can use it later $instagram_api->setConnectionType( 'facebook' ); $instagram_api->facebookStoreToken(); $message = esc_html__( 'You have successfully connected with your Instagram Business account.', 'calla' ); } //check if code parameter and instagram parameter is set in URL if ( ! empty( $_GET['disconnect'] ) ) { //update code option so we can use it later $instagram_api->disconnect(); $message = esc_html__( 'You have have been disconnected from all Instagram accounts.', 'calla' ); } ?>

label = $label; $this->description = $description; $this->fields = $fields; $this->name = $name; $this->num_of_rows = 1; $this->button_text = ! empty( $button_text ) ? $button_text : esc_html__( 'Add New Item', 'calla' ); $this->table_layout = $table_layout; $counter = 0; foreach ( $this->fields as $field ) { if ( ! isset( $this->fields[ $counter ]['options'] ) ) { $this->fields[ $counter ]['options'] = array(); } if ( ! isset( $this->fields[ $counter ]['args'] ) ) { $this->fields[ $counter ]['args'] = array(); } if ( ! isset( $this->fields[ $counter ]['label'] ) ) { $this->fields[ $counter ]['label'] = ''; } if ( ! isset( $this->fields[ $counter ]['description'] ) ) { $this->fields[ $counter ]['description'] = ''; } if ( ! isset( $this->fields[ $counter ]['default_value'] ) ) { $this->fields[ $counter ]['default_value'] = ''; } $counter ++; } $calla_elated_Framework->eltdMetaBoxes->addOption( $this->name, ''); } public function render( $factory ) { global $post; $clones = array(); $wrapper_classes = array(); if ( ! empty( $post ) ) { $clones = get_post_meta( $post->ID, $this->name, true ); } $sortable_class = 'sortable'; foreach ( $this->fields as $field ) { if ( $field['type'] == 'textareahtml' ) { $sortable_class = ''; break; } } if ($this->table_layout){ $wrapper_classes[] = 'eltdf-repeater-table'; } ?>
label !== '') { ?>

label); ?>

description != ''){ ?>

description); ?>

table_layout) { ?>
fields as $field ) { $col_width_class = 'col-xs-12'; if ( ! empty($field['col_width']) ) { $col_width_class = 'col-xs-'.$field['col_width']; } ?>
0) { $counter = 0; foreach($clones as $clone) { ?>
fields as $field) { $col_width_class = 'col-xs-12'; if ( ! empty($field['col_width']) ) { $col_width_class = 'col-xs-'.$field['col_width']; } ?>

0) { $counter2 = 0; foreach($clone[$field['name']] as $clone_inner) { ?>
$field, 'repeaterName' => $this->name, 'counter' => $counter, 'fieldInner' => $field_inner, 'counter2' => $counter2 )); $data = $dependencyValues['data']; $containerClass = $dependencyValues['class']; } ?>
> render($field_inner['type'], $field_inner['name'], $field_inner['label'], $field_inner['description'], $field_inner['options'], $field_inner['args'], array('name'=> $this->name . '['.$counter.']['.$field['name'].']', 'index' => $counter2, 'value' => $repeater_inner_field_value)); ?>
$field, 'repeaterName' => $this->name, 'counter' => $counter )); $data = $dependencyValues['data']; $containerClass = $dependencyValues['class']; } ?>
> render($field['type'], $field['name'], $field['label'], $field['description'], $field['options'], $field['args'], array('name'=> $this->name, 'index' => $counter, 'value' => $repeater_field_value)); ?>
fields as $field) { if($field['type'] == 'repeater') { ?>
button_text ); ?>

getIconCollectionsEmpty(); $icons_collections = \CallaElatedIconCollections::get_instance()->getIconCollectionsKeys(); ?>

getIconCollectionParamNameByKey( $icons_collection ); $style = 'display: none'; if ( !empty($rvalue) && $rvalue['icon_pack'] == $icons_collection ) { $style = 'display: block'; } ?>