Plugin Directory

Changeset 3402555


Ignore:
Timestamp:
11/25/2025 01:11:22 PM (4 months ago)
Author:
cifi
Message:

Update Google Ranking filters and stats

Location:
squirrly-seo/tags/12.4.14
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • squirrly-seo/tags/12.4.14/controllers/Ranking.php

    r3260759 r3402555  
    7676            $page      = SQ_Classes_Helpers_Tools::getValue( 'spage', 1 );
    7777            $num       = SQ_Classes_Helpers_Tools::getValue( 'snum', SQ_Classes_Helpers_Tools::getOption( 'sq_posts_per_page' ) );
     78            $has_change      =  (int) SQ_Classes_Helpers_Tools::getValue( 'schanges', '' );
     79            $has_ranks       =  (int) SQ_Classes_Helpers_Tools::getValue( 'ranked', '' );
    7880
    7981            $this->args = array(
     
    8587                'strict'     => $strict,
    8688                'days_back'  => $days_back,
    87                 'has_change' => '',
    88                 'has_ranks'  => '',
     89                'has_change' => $has_change,
     90                'has_ranks'  => $has_ranks,
    8991            );
    9092        }
     
    194196                    'strict'     => $strict,
    195197                    'days_back'  => $days_back,
    196                     'has_change' => (string) SQ_Classes_Helpers_Tools::getValue( 'schanges', '' ),
    197                     'has_ranks'  => (string) SQ_Classes_Helpers_Tools::getValue( 'ranked', '' ),
     198                    'has_change' => (int) SQ_Classes_Helpers_Tools::getValue( 'schanges', '' ),
     199                    'has_ranks'  => (int) SQ_Classes_Helpers_Tools::getValue( 'ranked', '' ),
    198200                );
    199201
  • squirrly-seo/tags/12.4.14/view/Ranking/Rankings.php

    r3339738 r3402555  
    142142                                                                    </h6>
    143143                                                                <?php } ?>
     144                                                                <?php if ( isset( $view->info->new ) && (int) $view->info->new > 0 ) { ?>
     145                                                                    <h6 class="col-12 px-0 text-success small">
     146                                                                        <i class="fa-solid fa-arrow-up" style="font-size: 9px !important;margin: 0 5px;vertical-align: middle;"></i><?php echo sprintf( esc_html__( "%s new keywords in TOP 100", 'squirrly-seo' ), '<strong>' . esc_html( $view->info->new ) . '</strong>' ); ?>
     147                                                                    </h6>
     148                                                                <?php } ?>
    144149                                                                <?php if ( isset ( $view->info->positive_changes ) && (int) $view->info->positive_changes > 0 ) { ?>
    145150                                                                    <h6 class="col-12 px-0 text-success small">
Note: See TracChangeset for help on using the changeset viewer.