Plugin Directory

Changeset 2345453


Ignore:
Timestamp:
07/23/2020 02:57:21 PM (6 years ago)
Author:
wptmcdev
Message:

FIX: Hide node with empty url

Location:
breadcrumb-tmc
Files:
16 added
5 edited

Legend:

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

    r2339177 r2345453  
    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.3.1
     7 * Version:           1.3.2
    88 * Requires at least: 5.0
    99 * Requires PHP:      5.6
  • breadcrumb-tmc/trunk/readme.txt

    r2339177 r2345453  
    66Requires PHP: 5.6
    77Tested up to: 5.4.1
    8 Stable tag: 1.3.1
     8Stable tag: 1.3.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== Changelog ==
     95
     96= 1.3.2 =
     97Release date: July 23, 2020
     98
     99- FIX: Hide node with empty url.
     100
    95101
    96102= 1.3.1 =
  • breadcrumb-tmc/trunk/src/BreadcrumbGenerator.php

    r2339177 r2345453  
    77 */
    88
    9 namespace breadcrumb_tmc\v1_3_1;
     9namespace breadcrumb_tmc\v1_3_2;
    1010use pathnode\PathNode;
    1111use sundawp\v1_0_8\SundaWP;
     
    5454        //  ----------------------------------------
    5555
    56         if ( ( ( is_archive()  || is_single() || is_home() ) and !is_front_page() ) and SundaWP::getArchiveLabel() ) {
     56        if ( ( ( is_archive()  || is_single() || is_home() ) and !is_front_page() ) and SundaWP::getArchiveUrl() ) {
    5757
    5858            $archiveLabel = apply_filters( 'breadcrumbTmc/archiveLabel', __( null, 'breadcrumb-tmc') );
     
    7979        //  ----------------------------------------
    8080
    81         if ( is_category() and SundaWP::getCategoryLabel() ) {
     81        if ( is_category() and SundaWP::getCategoryUrl() ) {
    8282
    8383            $categoryNode = new PathNode();
     
    9393        //  ----------------------------------------
    9494
    95         if ( is_tag() and SundaWP::getTagLabel() ) {
     95        if ( is_tag() and SundaWP::getTagUrl() ) {
    9696
    9797            $tagNode = new PathNode();
     
    108108        global $post;
    109109
    110         if ( ( (is_single() || is_page() ) && !is_front_page() ) and ( SundaWP::getSingleLabel() and SundaWP::getSingleUrl() ) ) {
     110        if ( ( (is_single() || is_page() ) && !is_front_page() ) and SundaWP::getSingleUrl() ) {
    111111
    112112            $parentNodes = array(); //  Parent nodes in natural order.
     
    134134
    135135            $nodes[] = $SingleNode;
    136 
    137136        }
    138137
  • breadcrumb-tmc/trunk/src/app.php

    r2339177 r2345453  
    33/**
    44 * @author: przemyslaw.jaworowski@gmail.com
    5  * Date: 2020-07-12
    6  * Time: 09:32
     5 * Date: 2020-07-23
     6 * Time: 16:00
    77 */
    88
    99
    10 use breadcrumb_tmc\v1_3_1\BreadcrumbGenerator;
     10use breadcrumb_tmc\v1_3_2\BreadcrumbGenerator;
    1111
    1212if (! class_exists('pathnode\PathNode')) {
Note: See TracChangeset for help on using the changeset viewer.