Plugin Directory

Changeset 1593336


Ignore:
Timestamp:
02/10/2017 01:35:14 PM (9 years ago)
Author:
cvmh
Message:

2.3.13

  • Added: Filters cvmh_catblock_before_img and cvmh_catblock_after_img to wrap image
Location:
cat-block/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cat-block/trunk/cat-block.php

    r1592480 r1593336  
    44 * Plugin URI: http://www.agence-web-cvmh.fr
    55 * Description: Adds a block (widget or shortcode), which scrolls through the posts in a category.
    6  * Version: 2.6.12
     6 * Version: 2.6.13
    77 * Author: CVMH solutions
    88 * Author URI: http://www.agence-web-cvmh.fr
     
    1616add_action( 'plugins_loaded', 'cvmh_catblock_constants', 1 );
    1717function cvmh_catblock_constants() {
    18     define( 'CVMH_CATBLOCK_VERSION'       , '2.6.12' );
     18    define( 'CVMH_CATBLOCK_VERSION'       , '2.6.13' );
    1919    define( 'CVMH_CATBLOCK_PATH'          , trailingslashit( plugin_dir_path( __FILE__ ) ) );
    2020    define( 'CVMH_CATBLOCK_URI'           , trailingslashit( plugin_dir_url( __FILE__ ) ) );
  • cat-block/trunk/includes/functions.php

    r1582746 r1593336  
    122122                $thumbnail = get_the_post_thumbnail( $post->ID, $args['imagesize'], array( 'class' => 'catblock-img catblock-goto', 'data-url' => $link ) );
    123123                if ( ! empty( $thumbnail ) ) :
    124                     $html .= $thumbnail;
     124                    $html .= apply_filters( 'cvmh_catblock_before_img', '', get_the_ID() ) . $thumbnail . apply_filters( 'cvmh_catblock_after_img', '', get_the_ID() );
    125125                endif;
    126126            endif;
  • cat-block/trunk/readme.txt

    r1592480 r1593336  
    6060
    6161== Changelog ==
     62
     63= 2.3.13 =
     64* Added: Filters cvmh_catblock_before_img and cvmh_catblock_after_img to wrap image
    6265
    6366= 2.6.12 =
Note: See TracChangeset for help on using the changeset viewer.