Changeset 2302407
- Timestamp:
- 05/11/2020 07:17:14 AM (6 years ago)
- Location:
- breadcrumb-tmc
- Files:
-
- 14 added
- 4 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/assets (added)
-
tags/1.1.0/assets/css (added)
-
tags/1.1.0/assets/css/style.css (added)
-
tags/1.1.0/breadcrumb-tmc.php (added)
-
tags/1.1.0/index.php (added)
-
tags/1.1.0/lib (added)
-
tags/1.1.0/lib/SundaWP (added)
-
tags/1.1.0/lib/SundaWP/SundaWP.php (added)
-
tags/1.1.0/lib/SundaWP/SundaWP_requirementChecker.php (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/src (added)
-
tags/1.1.0/src/BreadcrumbGenerator.php (added)
-
tags/1.1.0/src/app.php (added)
-
trunk/breadcrumb-tmc.php (modified) (1 diff)
-
trunk/readme.txt (modified) (8 diffs)
-
trunk/src/BreadcrumbGenerator.php (modified) (8 diffs)
-
trunk/src/app.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
breadcrumb-tmc/trunk/breadcrumb-tmc.php
r2296845 r2302407 5 5 * Plugin URI: https://wordpress.org/plugins/breadcrumb-tmc/ 6 6 * Description: Agile WordPress plugin to create Breadcrumb. Quick use <code>[breadcrumb-tmc]</code> to display breadcrumb. 7 * Version: 1.1. 07 * Version: 1.1.1 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 5.6 -
breadcrumb-tmc/trunk/readme.txt
r2296845 r2302407 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.4.1 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 94 94 == Changelog == 95 95 96 = 1.1.1 = 97 Release 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 96 101 = 1.1.0 = 97 Release date: May 2 nd, 2020102 Release date: May 2, 2020 98 103 99 104 - Apply filter: 'trimWords' - Set breadcrumb string / title limit in Words. … … 101 106 102 107 = 1.0.9 = 103 Release date: April 10 th, 2020108 Release date: April 10, 2020 104 109 105 110 - Apply filter: 'enqueueStyles' - allow users to disable plugin css styles (optimize seo and speed) 106 111 107 112 = 1.0.8 = 108 Release date: April 3 rd, 2020113 Release date: April 3, 2020 109 114 110 115 - Apply filter: 'PageNotFoundText' - allow users to change default the separator mark … … 112 117 113 118 = 1.0.7 = 114 Release date: April 2 nd, 2020119 Release date: April 2, 2020 115 120 116 121 - Problem withs plugin update 117 122 118 123 = 1.0.6 = 119 Release date: April 2 nd, 2020124 Release date: April 2, 2020 120 125 121 126 - Refactor: Tested up to: WP 5.4 … … 124 129 125 130 = 1.0.5 = 126 Release date: March 29 th, 2020131 Release date: March 29, 2020 127 132 128 133 - Add: support for '404' template … … 131 136 132 137 = 1.0.4 = 133 Release date: January 31 st, 2020138 Release date: January 31, 2020 134 139 135 140 - FIX: change name of class in if statement 'class_exists' - "use" 136 141 137 142 = 1.0.3 = 138 Release date: January 22 nd, 2020143 Release date: January 22, 2020 139 144 140 145 - Apply filter: 'separatorMark' - allow users to change default the separator mark … … 142 147 143 148 = 1.0.2 = 144 Release date: January 15 th, 2020149 Release date: January 15, 2020 145 150 146 151 - Refactor: change breadcrumb separator '»' … … 148 153 149 154 = 1.0.1 = 150 Release date: January 14 th, 2020155 Release date: January 14, 2020 151 156 152 157 - Add Post archive link for Single Post Page type 'post' 153 158 154 159 = 1.0.0 = 155 Release date: January 10 th, 2020160 Release date: January 10, 2020 156 161 157 162 - First release: Breadcrumb TMC for WordPress -
breadcrumb-tmc/trunk/src/BreadcrumbGenerator.php
r2296845 r2302407 3 3 /** 4 4 * @author: przemyslaw.jaworowski@gmail.com 5 * Date: 2020-05- 026 * Time: 23:125 * Date: 2020-05-11 6 * Time: 08:12 7 7 */ 8 8 9 namespace breadcrumb_tmc\v1_1_ 0;9 namespace breadcrumb_tmc\v1_1_1; 10 10 use sundawp\v1_0_5\SundaWP; 11 11 12 12 13 if (! class_exists('sundawp\v1_0_4\SundaWP')) { 13 14 if (! class_exists('sundawp\v1_0_5\SundaWP')) { 14 15 15 16 require dirname( plugin_dir_path( __FILE__ ) ) . '/lib/SundaWP/SundaWP.php'; … … 27 28 28 29 $trimWords = apply_filters( 'trimWords' , 55 ); 30 $endingCharacter = apply_filters( 'endingCharacter' , '…' ); 29 31 30 32 // ---------------------------------------- … … 34 36 if ( SundaWP::getHomePathLinkHtml() ) { 35 37 36 $item = sprintf('<li>%1$s</li>', SundaWP::getHomePathLinkHtml( $trimWords ) );38 $item = sprintf('<li>%1$s</li>', SundaWP::getHomePathLinkHtml( $trimWords, $endingCharacter ) ); 37 39 $nodes[] = $item; 38 40 39 41 } 42 40 43 41 44 // ---------------------------------------- … … 45 48 if ( ( ( is_archive() || is_single() || is_home() ) and !is_front_page() ) and SundaWP::getArchivePathLinkHtml() ) { 46 49 47 $item = sprintf('<li>%1$s</li>', SundaWP::getArchivePathLinkHtml( $trimWords ) );50 $item = sprintf('<li>%1$s</li>', SundaWP::getArchivePathLinkHtml( $trimWords, $endingCharacter ) ); 48 51 $nodes[] = $item; 49 52 … … 57 60 if ( is_category() and SundaWP::getCategoryPathLinkHtml() ) { 58 61 59 $item = sprintf('<li>%1$s</li>', SundaWP::getCategoryPathLinkHtml( $trimWords ) );62 $item = sprintf('<li>%1$s</li>', SundaWP::getCategoryPathLinkHtml( $trimWords, $endingCharacter ) ); 60 63 $nodes[] = $item; 61 64 … … 69 72 if ( is_tag() and SundaWP::getTagPathLinkHtml() ) { 70 73 71 $item = sprintf('<li>%1$s</li>', SundaWP::getTagPathLinkHtml( $trimWords ) );74 $item = sprintf('<li>%1$s</li>', SundaWP::getTagPathLinkHtml( $trimWords, $endingCharacter ) ); 72 75 $nodes[] = $item; 73 76 … … 81 84 if ( ( (is_single() || is_page() ) && !is_front_page() ) and SundaWP::getSinglePathLinkHtml() ) { 82 85 83 $item = sprintf('<li>%1$s</li>', SundaWP::getSinglePathLinkHtml( $trimWords ) );86 $item = sprintf('<li>%1$s</li>', SundaWP::getSinglePathLinkHtml( $trimWords, $endingCharacter ) ); 84 87 $nodes[] = $item; 85 88 … … 95 98 96 99 97 $item = sprintf('<li>%1$s</li>', SundaWP::getPageNotFoundPathLinkHtml( $trimWords ) );100 $item = sprintf('<li>%1$s</li>', SundaWP::getPageNotFoundPathLinkHtml( $trimWords, $endingCharacter ) ); 98 101 $nodes[] = $item; 99 102 -
breadcrumb-tmc/trunk/src/app.php
r2296845 r2302407 7 7 */ 8 8 9 use breadcrumb_tmc\v1_1_ 0\BreadcrumbGenerator;9 use breadcrumb_tmc\v1_1_1\BreadcrumbGenerator; 10 10 11 11 if (! class_exists( 'BreadcrumbGenerator' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.