Changeset 1597276
- Timestamp:
- 02/16/2017 12:44:54 PM (9 years ago)
- Location:
- sticky/trunk
- Files:
-
- 3 edited
-
includes/functions.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
sticky.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sticky/trunk/includes/functions.php
r1597209 r1597276 113 113 if ( $args['showreadmore'] and ! empty( $args['readmoretext'] ) ) : 114 114 if ( $args['readmoretype'] === 'button' ) : 115 $readmore = '<button class="sticky-readmore sticky-goto" data-url="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i ) . '</button>';115 $readmore = '<button class="sticky-readmore sticky-goto" data-url="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i, $post->ID ) . '</button>'; 116 116 else : 117 $readmore = '<a class="sticky-readmore" href="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i ) . '</a>';117 $readmore = '<a class="sticky-readmore" href="' . $link . '">' . apply_filters( 'cvmh_sticky_readmore', $args['readmoretext'], $i, $post->ID ) . '</a>'; 118 118 endif; 119 119 $html .= $readmore; -
sticky/trunk/readme.txt
r1597209 r1597276 30 30 == Changelog == 31 31 32 = 2.5.2 = 33 * Added: post id parameter in cvmh_sticky_readmore filter 34 32 35 = 2.5.1 = 33 36 * Added: filter cvmh_sticky_link -
sticky/trunk/sticky.php
r1597209 r1597276 4 4 * Plugin URI: http://www.agence-web-cvmh.fr 5 5 * Description: Adds sticky support for pages and/or custom posts. 6 * Version: 2.5. 16 * Version: 2.5.2 7 7 * Author: CVMH solutions 8 8 * Author URI: http://www.agence-web-cvmh.fr … … 16 16 add_action( 'plugins_loaded', 'cvmh_sticky_constants', 1 ); 17 17 function cvmh_sticky_constants() { 18 define( 'CVMH_STICKY_VERSION' , '2.5. 1' );18 define( 'CVMH_STICKY_VERSION' , '2.5.2' ); 19 19 define( 'CVMH_STICKY_PATH' , trailingslashit( plugin_dir_path( __FILE__ ) ) ); 20 20 define( 'CVMH_STICKY_URI' , trailingslashit( plugin_dir_url( __FILE__ ) ) );
Note: See TracChangeset
for help on using the changeset viewer.