芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/www/wp-content/themes/brunn/framework/lib/qodef.layout3.php
name = $name; $this->label = $label; $this->description = $description; $brunn_select_global_Framework->qodeMetaBoxes->addOption( $this->name, "" ); } public function render( $factory ) { global $post; ?>
label ); ?>
description ); ?>
ID, $this->name, true ); if ( $image_gallery_val != '' ) { $image_gallery_array = explode( ',', $image_gallery_val ); } if ( isset( $image_gallery_array ) && count( $image_gallery_array ) != 0 ): foreach ( $image_gallery_array as $gimg_id ): $gimage_wp = wp_get_attachment_image_src( $gimg_id, 'thumbnail', true ); echo '
'; endforeach; endif; ?>
name ), 'qodef_gallery_upload_get_images_' . esc_attr( $this->name ) ); ?>
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.', 'brunn' ); } else { $message = $responseObj->message; } } $buttonText = $twitterApi->hasUserConnected() ? esc_html__( 'Re-connect with Twitter', 'brunn' ) : esc_html__( 'Connect with Twitter', 'brunn' ); ?>
setConnectionType('instagram'); $instagram_api->instagramStoreCode(); $instagram_api->instagramExchangeCodeForToken(); $message = esc_html__( 'You have successfully connected with your Instagram Personal account.', 'brunn' ); } //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.', 'brunn' ); } //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.', 'brunn' ); } ?>
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', 'brunn' ); $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 ++; } $brunn_select_global_Framework->qodeMetaBoxes->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[] = 'qodef-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 ); ?>
getOptionValue( 'google_maps_api_key' ); if ( empty( $google_maps_api_key ) ) { ?>
getIconCollectionsEmpty(); $icons_collections = brunn_select_icon_collections()->getIconCollectionsKeys(); ?>
$value ) { if ( $key == "-1" ) { $key = ""; } ?>
value="">
getIconCollectionParamNameByKey( $icons_collection ); $field_class = ! empty( $rvalue ) && $rvalue['icon_pack'] == $icons_collection ? 'qodef-show-field' : 'qodef-hide-field'; ?>
getIconCollection( $icons_collection ); $active_icon = $rvalue[ $icons_param ]; foreach ( $icons->icons as $option => $key ) { ?>
>