Changeset 2883577
- Timestamp:
- 03/20/2023 01:52:12 PM (2 years ago)
- Location:
- ultimate-reviews-rocket/trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ultimate-reviews-rocket/trunk/admin/partials/ultimate-reviews-rocket-admin-display.php
r2663245 r2883577 100 100 // Social Media Reviews Page 101 101 $tick_count3 = 0; 102 if( !empty($option_social_media['facebook']) || !empty($option_social_media[' google']) ) {102 if( !empty($option_social_media['facebook']) || !empty($option_social_media['instagram']) ) { 103 103 $good_rating_true = '<i class="fa fa-check-circle fa-2x" aria-hidden="true"></i> '; 104 104 $tick_count3 = 1; -
ultimate-reviews-rocket/trunk/admin/settings/class-ultimate-reviews-rocket-social-media-settings.php
r2663245 r2883577 80 80 81 81 add_settings_field( 82 ' google',83 apply_filters( $this->ultimate_reviews_rocket . '- google', __( 'Google+:', $this->ultimate_reviews_rocket ) ),84 array( $this, ' Google' ),82 'instagram', 83 apply_filters( $this->ultimate_reviews_rocket . '-instagram', __( 'Instagram:', $this->ultimate_reviews_rocket ) ), 84 array( $this, 'Instagram' ), 85 85 $this->ultimate_reviews_rocket . '-social-media', 86 86 $this->ultimate_reviews_rocket . '-options' … … 161 161 * @return mixed The settings field 162 162 */ 163 public function Google() {163 public function Instagram() { 164 164 165 165 $options = get_option( $this->ultimate_reviews_rocket . '_options' ); 166 166 167 167 if(!empty($options)){ 168 if ( ! empty( $options[' google'] ) ) {169 $option = $options[' google'];168 if ( ! empty( $options['instagram'] ) ) { 169 $option = $options['instagram']; 170 170 } else { 171 171 $option = null; 172 172 } 173 173 } else { 174 $option = " google.com";174 $option = "instagram.com"; 175 175 } 176 176 177 177 ?> 178 <label for="<?php echo esc_attr($this->ultimate_reviews_rocket); ?>_options[ google]"></label><input type="text" id="<?php echo esc_attr($this->ultimate_reviews_rocket); ?>_options[google]" name="<?php echo esc_attr($this->ultimate_reviews_rocket); ?>_options[google]" value="<?php echo esc_url($option);?>">178 <label for="<?php echo esc_attr($this->ultimate_reviews_rocket); ?>_options[instagram]"></label><input type="text" id="<?php echo esc_attr($this->ultimate_reviews_rocket); ?>_options[instagram]" name="<?php echo esc_attr($this->ultimate_reviews_rocket); ?>_options[instagram]" value="<?php echo esc_url($option);?>"> 179 179 <?php 180 } // google()180 } //instagram() 181 181 182 182 /** … … 190 190 $options[] = array( 'section-heading', 'text', '' ); 191 191 $options[] = array( 'facebook', 'text', '' ); 192 $options[] = array( ' google', 'text', '' );192 $options[] = array( 'instagram', 'text', '' ); 193 193 194 194 return $options;
Note: See TracChangeset
for help on using the changeset viewer.