Plugin Directory

Changeset 3353225


Ignore:
Timestamp:
08/31/2025 05:10:32 AM (7 months ago)
Author:
GamerZ
Message:

Deploying wp-postviews from GitHub

Location:
wp-postviews/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-postviews/trunk/postviews-options.php

    r2177976 r3353225  
    129129                - %POST_URL%<br />
    130130                - %POST_THUMBNAIL%<br />
     131                - %POST_THUMBNAIL_URL%<br />
    131132                - %POST_CATEGORY_ID%<br />
    132133                - %POST_AUTHOR%<br /><br />
  • wp-postviews/trunk/readme.txt

    r2949760 r3353225  
    44Tags: views, hits, counter, postviews 
    55Requires at least: 4.0 
    6 Tested up to: 6.3 
    7 Stable tag: 1.77
     6Tested up to: 6.6 
     7Stable tag: 1.7
    88
    99Enables you to display how many times a post/page had been viewed.
     
    3232
    3333## Changelog
     34### Version 1.78
     35* NEW: Add %POST_THUMBNAIL_URL% to template variables
     36
    3437### Version 1.77
    3538* NEW: Use Vanilla JS. Props @JiveDig
  • wp-postviews/trunk/wp-postviews.php

    r2949760 r3353225  
    285285                $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp );
    286286                $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp);
     287                $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp);
    287288                $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp );
    288289                $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
     
    347348                $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp );
    348349                $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp);
     350                $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp);
    349351                $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp );
    350352                $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
     
    410412                $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp );
    411413                $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp);
     414                $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp);
    412415                $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp );
    413416                $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
     
    473476                $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp );
    474477                $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp);
     478                $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp);
    475479                $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp );
    476480                $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
     
    535539                $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp );
    536540                $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp);
     541                $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp);
    537542                $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp );
    538543                $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
     
    598603                $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp );
    599604                $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp);
     605                $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp);
    600606                $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp );
    601607                $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
Note: See TracChangeset for help on using the changeset viewer.