Plugin Directory

Changeset 2302407


Ignore:
Timestamp:
05/11/2020 07:17:14 AM (6 years ago)
Author:
wptmcdev
Message:

Apply filter: 'endingCharacter' - gives the option to set up a character at the end of the trimmed string.

Location:
breadcrumb-tmc
Files:
14 added
4 edited

Legend:

Unmodified
Added
Removed
  • breadcrumb-tmc/trunk/breadcrumb-tmc.php

    r2296845 r2302407  
    55 * Plugin URI:        https://wordpress.org/plugins/breadcrumb-tmc/
    66 * Description:       Agile WordPress plugin to create Breadcrumb. Quick use <code>[breadcrumb-tmc]</code> to display breadcrumb.
    7  * Version:           1.1.0
     7 * Version:           1.1.1
    88 * Requires at least: 5.2
    99 * Requires PHP:      5.6
  • breadcrumb-tmc/trunk/readme.txt

    r2296845 r2302407  
    66Requires PHP: 5.6
    77Tested up to: 5.4.1
    8 Stable tag: 1.1.0
     8Stable tag: 1.1.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9494== Changelog ==
    9595
     96= 1.1.1 =
     97Release date: May 11, 2020
     98
     99- Apply filter: 'endingCharacter' - gives the option to set up a character at the end of the trimmed string.
     100
    96101= 1.1.0 =
    97 Release date: May 2nd, 2020
     102Release date: May 2, 2020
    98103
    99104- Apply filter: 'trimWords' - Set breadcrumb string / title limit in Words.
     
    101106
    102107= 1.0.9 =
    103 Release date: April 10th, 2020
     108Release date: April 10, 2020
    104109
    105110- Apply filter: 'enqueueStyles' - allow users to disable plugin css styles (optimize seo and speed)
    106111
    107112= 1.0.8 =
    108 Release date: April 3rd, 2020
     113Release date: April 3, 2020
    109114
    110115- Apply filter: 'PageNotFoundText' - allow users to change default the separator mark
     
    112117
    113118= 1.0.7 =
    114 Release date: April 2nd, 2020
     119Release date: April 2, 2020
    115120
    116121- Problem withs plugin update
    117122
    118123= 1.0.6 =
    119 Release date: April 2nd, 2020
     124Release date: April 2, 2020
    120125
    121126- Refactor: Tested up to: WP 5.4
     
    124129
    125130= 1.0.5 =
    126 Release date: March 29th, 2020
     131Release date: March 29, 2020
    127132
    128133- Add: support for '404' template
     
    131136
    132137= 1.0.4 =
    133 Release date: January 31st, 2020
     138Release date: January 31, 2020
    134139
    135140- FIX: change name of class in if statement 'class_exists' - "use"
    136141
    137142= 1.0.3 =
    138 Release date: January 22nd, 2020
     143Release date: January 22, 2020
    139144
    140145- Apply filter: 'separatorMark' - allow users to change default the separator mark
     
    142147
    143148= 1.0.2 =
    144 Release date: January 15th, 2020
     149Release date: January 15, 2020
    145150
    146151- Refactor: change breadcrumb separator '»'
     
    148153
    149154= 1.0.1 =
    150 Release date: January 14th, 2020
     155Release date: January 14, 2020
    151156
    152157- Add Post archive link for Single Post Page type 'post'
    153158
    154159= 1.0.0 =
    155 Release date: January 10th, 2020
     160Release date: January 10, 2020
    156161
    157162- First release: Breadcrumb TMC for WordPress
  • breadcrumb-tmc/trunk/src/BreadcrumbGenerator.php

    r2296845 r2302407  
    33/**
    44 * @author: przemyslaw.jaworowski@gmail.com
    5  * Date: 2020-05-02
    6  * Time: 23:12
     5 * Date: 2020-05-11
     6 * Time: 08:12
    77 */
    88
    9 namespace breadcrumb_tmc\v1_1_0;
     9namespace breadcrumb_tmc\v1_1_1;
    1010use sundawp\v1_0_5\SundaWP;
    1111
    1212
    13 if (! class_exists('sundawp\v1_0_4\SundaWP')) {
     13
     14if (! class_exists('sundawp\v1_0_5\SundaWP')) {
    1415
    1516    require dirname( plugin_dir_path( __FILE__ ) ) . '/lib/SundaWP/SundaWP.php';
     
    2728
    2829        $trimWords = apply_filters( 'trimWords' , 55 );
     30        $endingCharacter = apply_filters( 'endingCharacter' , '&hellip;' );
    2931
    3032        //  ----------------------------------------
     
    3436        if ( SundaWP::getHomePathLinkHtml() ) {
    3537
    36             $item       = sprintf('<li>%1$s</li>', SundaWP::getHomePathLinkHtml( $trimWords ) );
     38            $item       = sprintf('<li>%1$s</li>', SundaWP::getHomePathLinkHtml( $trimWords, $endingCharacter ) );
    3739            $nodes[]    = $item;
    3840
    3941        }
     42
    4043
    4144        //  ----------------------------------------
     
    4548        if ( ( ( is_archive()  || is_single() || is_home() ) and !is_front_page() ) and SundaWP::getArchivePathLinkHtml() ) {
    4649
    47             $item       = sprintf('<li>%1$s</li>', SundaWP::getArchivePathLinkHtml( $trimWords ) );
     50            $item       = sprintf('<li>%1$s</li>', SundaWP::getArchivePathLinkHtml( $trimWords, $endingCharacter ) );
    4851            $nodes[]    = $item;
    4952
     
    5760        if ( is_category() and SundaWP::getCategoryPathLinkHtml() ) {
    5861
    59             $item       = sprintf('<li>%1$s</li>', SundaWP::getCategoryPathLinkHtml( $trimWords ) );
     62            $item       = sprintf('<li>%1$s</li>', SundaWP::getCategoryPathLinkHtml( $trimWords, $endingCharacter ) );
    6063            $nodes[]    = $item;
    6164
     
    6972        if ( is_tag() and SundaWP::getTagPathLinkHtml() ) {
    7073
    71             $item       = sprintf('<li>%1$s</li>', SundaWP::getTagPathLinkHtml( $trimWords ) );
     74            $item       = sprintf('<li>%1$s</li>', SundaWP::getTagPathLinkHtml( $trimWords, $endingCharacter ) );
    7275            $nodes[]    = $item;
    7376
     
    8184        if ( ( (is_single() || is_page() ) && !is_front_page() ) and SundaWP::getSinglePathLinkHtml() ) {
    8285
    83             $item       = sprintf('<li>%1$s</li>', SundaWP::getSinglePathLinkHtml( $trimWords ) );
     86            $item       = sprintf('<li>%1$s</li>', SundaWP::getSinglePathLinkHtml( $trimWords, $endingCharacter ) );
    8487            $nodes[]    = $item;
    8588
     
    9598
    9699
    97             $item       = sprintf('<li>%1$s</li>', SundaWP::getPageNotFoundPathLinkHtml( $trimWords ) );
     100            $item       = sprintf('<li>%1$s</li>', SundaWP::getPageNotFoundPathLinkHtml( $trimWords, $endingCharacter ) );
    98101            $nodes[]    = $item;
    99102
  • breadcrumb-tmc/trunk/src/app.php

    r2296845 r2302407  
    77 */
    88
    9 use breadcrumb_tmc\v1_1_0\BreadcrumbGenerator;
     9use breadcrumb_tmc\v1_1_1\BreadcrumbGenerator;
    1010
    1111if (! class_exists( 'BreadcrumbGenerator' ) ) {
Note: See TracChangeset for help on using the changeset viewer.