Plugin Directory

Changeset 1499700


Ignore:
Timestamp:
09/21/2016 01:50:47 PM (10 years ago)
Author:
cvmh
Message:

2.6.6

  • Added: filter cvmh_catblock_before_title
  • Added: filter cvmh_catblock_widget_title_tag
  • Added: filter cvmh_catblock_after_widget_title
Location:
cat-block/trunk
Files:
3 edited

Legend:

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

    r1451167 r1499700  
    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.5
     6 * Version: 2.6.6
    77 * Author: CVMH solutions
    88 * Author URI: http://www.agence-web-cvmh.fr
  • cat-block/trunk/includes/functions.php

    r1451167 r1499700  
    124124            endif;
    125125
     126            $html .= apply_filters( 'cvmh_catblock_before_title', '', get_the_ID() );
     127           
    126128            if ( $args['showtitle'] ) :
    127129                $title = get_the_title();
     
    163165        $title = '';
    164166        if ( ! empty( $args['plugintitle']  ) ) :
    165             $title = '<h2 class="widget-title decorate">' . $args['plugintitle'] . '</h2>';
    166         endif;
    167 
     167            $title = '<' . apply_filters( 'cvmh_catblock_widget_title_tag', 'h2' ) . ' class="widget-title decorate">' . $args['plugintitle'] . '</' . apply_filters( 'cvmh_catblock_widget_title_tag', 'h2' ) . '>';
     168        endif;
     169
     170        $after_widget_title = apply_filters( 'cvmh_catblock_after_widget_title', '' );
     171       
    168172        $introduction = '';
    169173        if ( ! empty( $args['introduction']  ) ) :
     
    176180        endif;
    177181
    178         $cat_block = '<div>' . $title . $introduction . $navigation . '<div class="catblock-wrapper" id="catblock_' . $random . '"';
     182        $cat_block = '<div>' . $title . $after_widget_title . $introduction . $navigation . '<div class="catblock-wrapper" id="catblock_' . $random . '"';
    179183        $class_slideshow = '';
    180184        if ( $args['slideshow'] ) :
  • cat-block/trunk/readme.txt

    r1460621 r1499700  
    6161== Changelog ==
    6262
     63= 2.6.6 =
     64* Added: filter cvmh_catblock_before_title
     65* Added: filter cvmh_catblock_widget_title_tag
     66* Added: filter cvmh_catblock_after_widget_title
     67
    6368= 2.6.5 =
    6469* Added: filter cvmh_cat_block_get_posts_args
Note: See TracChangeset for help on using the changeset viewer.