Plugin Directory

Changeset 2883577


Ignore:
Timestamp:
03/20/2023 01:52:12 PM (2 years ago)
Author:
wsxplugindev
Message:

Tagging Version 1.0.8

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  
    100100                                        // Social Media Reviews Page
    101101                                        $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']) ) {
    103103                                            $good_rating_true = '<i class="fa fa-check-circle fa-2x" aria-hidden="true"></i> ';
    104104                                            $tick_count3 = 1;
  • ultimate-reviews-rocket/trunk/admin/settings/class-ultimate-reviews-rocket-social-media-settings.php

    r2663245 r2883577  
    8080       
    8181        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' ),
    8585            $this->ultimate_reviews_rocket . '-social-media',
    8686            $this->ultimate_reviews_rocket . '-options'
     
    161161     * @return      mixed           The settings field
    162162     */
    163     public function Google() {
     163    public function Instagram() {
    164164
    165165        $options    = get_option( $this->ultimate_reviews_rocket . '_options' );
    166166
    167167        if(!empty($options)){
    168             if ( ! empty( $options['google'] ) ) {
    169                 $option = $options['google'];
     168            if ( ! empty( $options['instagram'] ) ) {
     169                $option = $options['instagram'];
    170170            } else {
    171171                $option = null;
    172172            }
    173173        } else {
    174             $option = "google.com";
     174            $option = "instagram.com";
    175175        }
    176176
    177177        ?>
    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);?>">
    179179        <?php
    180     } //google()
     180    } //instagram()
    181181
    182182    /**
     
    190190        $options[] = array( 'section-heading', 'text', '' );
    191191        $options[] = array( 'facebook', 'text', '' );
    192         $options[] = array( 'google', 'text', '' );     
     192        $options[] = array( 'instagram', 'text', '' );     
    193193
    194194        return $options;
Note: See TracChangeset for help on using the changeset viewer.