Changeset 3396714
- Timestamp:
- 11/16/2025 07:06:19 PM (3 months ago)
- Location:
- t4b-news-ticker/trunk
- Files:
-
- 17 edited
-
actions/t4bnt-functions.php (modified) (1 diff)
-
actions/ticker-shortcode.php (modified) (1 diff)
-
assets/css/t4bnt-admin.css (modified) (7 diffs)
-
assets/css/t4bnt-scroll.css (modified) (1 diff)
-
assets/css/t4bnt-styles.css (modified) (1 diff)
-
assets/js/t4bnt-admin.js (modified) (1 diff)
-
assets/js/t4bnt.atickers.js (modified) (1 diff)
-
assets/js/t4bnt.liscroll.js (modified) (1 diff)
-
inc/init-t4bnt.php (modified) (5 diffs)
-
inc/t4bnt-enqueue.php (modified) (1 diff)
-
inc/t4bnt-help.php (modified) (12 diffs)
-
inc/t4bnt-sidebar.php (modified) (4 diffs)
-
languages/t4b-news-ticker.pot (modified) (10 diffs)
-
news-ticker.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
settings/t4bnt-class.settings-api.php (modified) (1 diff)
-
settings/ticker-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
t4b-news-ticker/trunk/actions/t4bnt-functions.php
r3303710 r3396714 7 7 * and generating JavaScript for ticker effects. 8 8 * 9 * @package T4B News Ticker v1.4. 2 - 30 May, 20259 * @package T4B News Ticker v1.4.3 - 16 November, 2025 10 10 * @link https://www.realwebcare.com/ 11 11 */ -
t4b-news-ticker/trunk/actions/ticker-shortcode.php
r3303710 r3396714 8 8 * sanitization and validation of all inputs and options to maintain security and data integrity. 9 9 * 10 * @package T4B News Ticker v1.4. 2 - 30 May, 202510 * @package T4B News Ticker v1.4.3 - 16 November, 2025 11 11 * @link https://www.realwebcare.com/ 12 12 */ -
t4b-news-ticker/trunk/assets/css/t4bnt-admin.css
r3303710 r3396714 1 1 /*! 2 * T4B News Ticker v1.4. 2 - 30 May, 20252 * T4B News Ticker v1.4.3 - 16 November, 2025 3 3 * by @realwebcare - https://www.realwebcare.com/ 4 4 */ … … 204 204 205 205 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt { 206 margin: 0 0 10px;207 line-height: 30px206 margin: 0 0 10px; 207 line-height: 30px 208 208 } 209 209 210 210 #t4bnt-narration #t4bntusage-note .t4bnt h3 { 211 font-size: 20px;212 font-weight: 700;213 color: #0d0925;214 margin-top: 0;215 line-height: 30px;216 border-bottom: 1px solid #72777c;217 padding-bottom: 7px;218 text-transform: uppercase211 font-size: 20px; 212 font-weight: 700; 213 color: #0d0925; 214 margin-top: 0; 215 line-height: 30px; 216 border-bottom: 1px solid #72777c; 217 padding-bottom: 7px; 218 text-transform: uppercase 219 219 } 220 220 221 221 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt a { 222 float: none;223 background: none;224 margin: 0;225 padding: 0;226 color: #2271b1;227 font-size: 100%;228 border-radius: 0;229 box-shadow: none;230 border: 0;231 font-weight: 600;232 text-decoration: none222 float: none; 223 background: none; 224 margin: 0; 225 padding: 0; 226 color: #2271b1; 227 font-size: 100%; 228 border-radius: 0; 229 box-shadow: none; 230 border: 0; 231 font-weight: 600; 232 text-decoration: none 233 233 } 234 234 235 235 236 236 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt a:hover { 237 color: #135e96;238 text-decoration: underline237 color: #135e96; 238 text-decoration: underline 239 239 } 240 240 241 241 242 242 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt ol li { 243 line-height: 1.4;244 color: #262626243 line-height: 1.4; 244 color: #262626 245 245 } 246 246 … … 256 256 } 257 257 258 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent {259 padding-bottom: 20px258 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent { 259 padding-bottom: 20px 260 260 } 261 261 … … 265 265 266 266 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt .likeit { 267 position: relative;268 margin: 0 0 50px;269 font-size: 14px;270 text-transform: uppercase;271 text-align: justify;272 color: #2271b1;273 font-weight: 600;274 line-height: 1.5275 } 276 277 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt .likeit a {278 position: absolute;279 left: 50%;280 top: calc(100% + 5px);281 font-size: 16px;282 background-image: linear-gradient(147deg,#fe8a39 0%,#fd3838 74%);283 margin: 10px 0 0;284 padding: 6px 18px;285 border-radius: 50px;286 color: #fff;287 text-decoration: none;288 text-align: center;289 letter-spacing: 4px;290 transform: translateX(-50%)291 } 292 293 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt .likeit a:hover {294 text-decoration: none;295 color: #ffe000;296 background-image: linear-gradient(335deg,#fe8a39 0%,#fd3838 74%)267 position: relative; 268 margin: 0 0 50px; 269 font-size: 14px; 270 text-transform: uppercase; 271 text-align: justify; 272 color: #2271b1; 273 font-weight: 600; 274 line-height: 1.5 275 } 276 277 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt .likeit a { 278 position: absolute; 279 left: 50%; 280 top: calc(100% + 5px); 281 font-size: 16px; 282 background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%); 283 margin: 10px 0 0; 284 padding: 6px 18px; 285 border-radius: 50px; 286 color: #fff; 287 text-decoration: none; 288 text-align: center; 289 letter-spacing: 4px; 290 transform: translateX(-50%) 291 } 292 293 #t4bnt-narration #t4bntusage-note.t4bntusage-maincontent .t4bnt .likeit a:hover { 294 text-decoration: none; 295 color: #ffe000; 296 background-image: linear-gradient(335deg, #fe8a39 0%, #fd3838 74%) 297 297 } 298 298 /* // Narration */ … … 477 477 478 478 #t4bnt-sidebar #t4bntusage-shortcode.t4bntusage-sidebar .t4b-scode pre { 479 margin: 10px 0479 margin: 10px 0 480 480 } 481 481 … … 530 530 531 531 /* Help */ 532 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info {533 background-color: #fff;534 border: 1px solid #ddd;535 border-radius: 8px;536 padding: 20px;537 margin: 34px 10px 20px 0;538 line-height: 1.6532 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info { 533 background-color: #fff; 534 border: 1px solid #ddd; 535 border-radius: 8px; 536 padding: 20px; 537 margin: 34px 10px 20px 0; 538 line-height: 1.6 539 539 } 540 540 541 541 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .get-instructed { 542 font-size:20px;543 font-weight:bold;544 margin-bottom:15px;545 text-transform:uppercase542 font-size: 20px; 543 font-weight: bold; 544 margin-bottom: 15px; 545 text-transform: uppercase 546 546 } 547 547 548 548 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .t4bnt-help-instructions { 549 list-style:decimal inside;550 margin:0;551 padding:0;552 color:#333549 list-style: decimal inside; 550 margin: 0; 551 padding: 0; 552 color: #333 553 553 } 554 554 555 555 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .t4bnt-help-instructions ul { 556 list-style:disc inside;557 margin:10px 0 0 20px;558 padding:0556 list-style: disc inside; 557 margin: 10px 0 0 20px; 558 padding: 0 559 559 } 560 560 561 561 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .t4bnt-help-instructions li { 562 margin:10px 0;563 padding:10px;564 background-color:#f9f9f9;565 border:1px solid #eee;566 border-radius:4px562 margin: 10px 0; 563 padding: 10px; 564 background-color: #f9f9f9; 565 border: 1px solid #eee; 566 border-radius: 4px 567 567 } 568 568 569 569 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .t4bnt-help-instructions li pre { 570 display:inline-block570 display: inline-block 571 571 } 572 572 … … 581 581 582 582 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .t4bnt-help-instructions li strong { 583 color:#0056b3;584 font-weight:bold583 color: #0056b3; 584 font-weight: bold 585 585 } 586 586 587 587 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .getting-started_video { 588 display:flex588 display: flex 589 589 } 590 590 591 591 .t4bnt_settings_area .wrap.t4bnt_settings .t4bnt-help-info .getting-started_video img { 592 max-width:100%592 max-width: 100% 593 593 } 594 594 595 595 .t4bnt_settings_area .t4bnt-help-info .t4bnt-help-instructions .t4bnt-keyword { 596 color:#B8DC9F596 color: #B8DC9F 597 597 } 598 598 599 599 .t4bnt_settings_area .t4bnt-help-info .t4bnt-help-instructions .t4bnt-function { 600 color:#fe8d59600 color: #fe8d59 601 601 } 602 602 603 603 .t4bnt_settings_area .t4bnt-help-info .t4bnt-help-instructions .t4bnt-string { 604 color:#00fbbd604 color: #00fbbd 605 605 } 606 606 /* // Help */ 607 607 608 608 /* Review */ 609 #t4bnt-review{ 610 background:linear-gradient(135deg,#f0f9ff,#cfe7f9); 611 border:2px solid #4a90e2; 612 border-radius:12px; 613 margin:1em auto 0; 614 padding:20px; 615 box-shadow:0 4px 10px rgba(0,0,0,0.1); 616 font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif; 617 color:#333; 618 max-width:90%; 619 animation:fadeIn .6s ease-in-out 620 } 621 622 @keyframes fadeIn{ 623 from{ 624 opacity:0; 625 transform:translateY(-10px) 609 #t4bnt-review { 610 background: #fff; 611 border-radius: 10px; 612 margin: 1em auto 0; 613 padding: 20px; 614 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 615 color: #333; 616 max-width: 100%; 617 animation: fadeIn .6s ease-in-out 618 } 619 620 @keyframes fadeIn { 621 from { 622 opacity: 0; 623 transform: translateY(-10px) 626 624 } 627 to {628 opacity: 1;629 transform: translateY(0)625 to { 626 opacity: 1; 627 transform: translateY(0) 630 628 } 631 629 } 632 633 #t4bnt-review p{ 634 font-size:16px; 635 line-height:1.6; 636 margin:10px 0 637 } 638 639 #t4bnt-review b{ 640 color:#0073aa 641 } 642 643 .t4bnt-review-btn{ 644 display:flex; 645 align-items:flex-start; 646 gap:15px; 647 margin-top:15px 648 } 649 650 .t4bnt-review-btn .button-primary,.t4bnt-review-btn .button-secondary{ 651 transition:background-color .3s ease,transform .2s ease 652 } 653 654 .t4bnt-review-btn .button-primary:hover,.t4bnt-review-btn .button-secondary:hover{ 655 transform:scale(1.05) 656 } 657 658 .t4bnt-is-dismissible{ 659 position:relative; 660 padding-right:40px 661 } 662 663 .t4bnt-notice .t4bnt-close-icon{ 664 position:absolute; 665 top:12px; 666 right:12px; 667 width:13px; 668 height:13px; 669 line-height:10px; 670 text-align:center; 671 background:#999; 672 border-radius:50%; 673 font-size:15px; 674 font-weight:900; 675 color:#d3e9f9; 676 cursor:pointer; 677 transition:color .3s ease 678 } 679 680 .t4bnt-notice .t4bnt-close-icon:hover{ 681 background:#333 630 631 #t4bnt-review p { 632 font-size: 14px; 633 line-height: 1.5; 634 margin: 10px 0; 635 } 636 637 #t4bnt-review b { 638 color: #0073aa 639 } 640 641 .t4bnt-review-btn { 642 display: flex; 643 align-items: flex-start; 644 gap: 15px; 645 margin-top: 15px 646 } 647 648 .t4bnt_settings_area .t4bnt-review-btn .button-primary { 649 padding: 0 10px; 650 font-size: 100%; 651 } 652 653 .t4bnt-review-btn .button-primary, .t4bnt-review-btn .button-secondary { 654 transition: background-color .3s ease, transform .2s ease 655 } 656 657 .t4bnt-review-btn .button-primary:hover, .t4bnt-review-btn .button-secondary:hover { 658 transform: scale(1.05) 682 659 } 683 660 /* //Review */ -
t4b-news-ticker/trunk/assets/css/t4bnt-scroll.css
r3303710 r3396714 1 1 /** 2 * T4B News Ticker v1.4. 2 - 30 May, 20252 * T4B News Ticker v1.4.3 - 16 November, 2025 3 3 * by @realwebcare - https://www.realwebcare.com/ 4 4 */ -
t4b-news-ticker/trunk/assets/css/t4bnt-styles.css
r3303710 r3396714 1 1 /** 2 * T4B News Ticker v1.4. 2 - 30 May, 20252 * T4B News Ticker v1.4.3 - 16 November, 2025 3 3 * by @realwebcare - https://www.realwebcare.com/ 4 4 */ -
t4b-news-ticker/trunk/assets/js/t4bnt-admin.js
r3303710 r3396714 7 7 * the user's last tab state even after a page reload or revisit. 8 8 * 9 * T4B News Ticker v1.4. 2 - 30 May, 20259 * T4B News Ticker v1.4.3 - 16 November, 2025 10 10 * by @realwebcare - https://www.realwebcare.com/ 11 11 */ -
t4b-news-ticker/trunk/assets/js/t4bnt.atickers.js
r3303710 r3396714 12 12 along with jQuery News Ticker. If not, see <http://www.gnu.org/licenses/>. 13 13 14 T4B News Ticker v1.4. 2 - 30 May, 202514 T4B News Ticker v1.4.3 - 16 November, 2025 15 15 by @realwebcare - https://www.realwebcare.com/ 16 16 */ -
t4b-news-ticker/trunk/assets/js/t4bnt.liscroll.js
r3303710 r3396714 8 8 * 9 9 * Modified by @realwebcare v1.3.1 10 * T4B News Ticker v1.4. 2 - 30 May, 202510 * T4B News Ticker v1.4.3 - 16 November, 2025 11 11 * by @realwebcare - https://www.realwebcare.com/ 12 12 */ -
t4b-news-ticker/trunk/inc/init-t4bnt.php
r3303710 r3396714 8 8 * and various other essential tasks needed when the plugin is live at the front-end. 9 9 * 10 * @package T4B News Ticker v1.4. 2 - 30 May, 202510 * @package T4B News Ticker v1.4.3 - 16 November, 2025 11 11 * @link https://www.realwebcare.com/ 12 12 */ 13 if ( ! defined( 'ABSPATH' )) {13 if (!defined('ABSPATH')) { 14 14 exit; // Exit if accessed directly 15 15 } 16 16 17 if( ! class_exists( 'T4BNT_Init' ) ) { 18 class T4BNT_Init { 17 if (!class_exists('T4BNT_Init')) { 18 class T4BNT_Init 19 { 19 20 20 21 private static $instance; 21 22 22 public function __construct() { 23 public function __construct() 24 { 23 25 // Load necessary required files. 24 26 $this->required_files(); 25 27 26 28 /// Load plugin text domain 27 add_action( 'plugins_loaded', array( $this, 't4bnt_textdomain' ));29 add_action('plugins_loaded', array($this, 't4bnt_textdomain')); 28 30 29 31 // Init admin notice for review 30 add_action( 'admin_init', array( $this, 't4bnt_check_i10n_date' ));32 add_action('admin_init', array($this, 't4bnt_check_i10n_date')); 31 33 32 34 // Init to remove admin notice 33 add_action( 'admin_init', array( $this, 't4bnt_review_nt' ), 5);35 add_action('admin_init', array($this, 't4bnt_review_nt'), 5); 34 36 35 37 // This filter allows us to modify the action links displayed on the Plugins page 36 add_filter( 'plugin_action_links_' . plugin_basename(T4BNT_AUF), array( $this, 't4bnt_plugin_actions' ) ); 37 } 38 39 public static function get_instances() { 40 if ( self::$instance ) { 38 add_filter('plugin_action_links_' . plugin_basename(T4BNT_AUF), array($this, 't4bnt_plugin_actions')); 39 } 40 41 public static function get_instances() 42 { 43 if (self::$instance) { 41 44 return self::$instance; 42 45 } … … 56 59 * @return void 57 60 */ 58 private function required_files() { 61 private function required_files() 62 { 59 63 // Handles the enqueueing of scripts and styles. 60 64 require_once T4BNT_PLUGIN_PATH . 'inc/t4bnt-enqueue.php'; … … 84 88 * @return void 85 89 */ 86 public function t4bnt_textdomain() { 87 $locale = apply_filters( 'plugin_locale', get_locale(), 't4b-news-ticker' ); 88 load_textdomain( 't4b-news-ticker', T4BNT_PLUGIN_PATH . 't4b-news-ticker/languages/t4b-news-ticker-' . $locale . '.mo' ); 90 public function t4bnt_textdomain() 91 { 92 $locale = apply_filters('plugin_locale', get_locale(), 't4b-news-ticker'); 93 load_textdomain('t4b-news-ticker', T4BNT_PLUGIN_PATH . 't4b-news-ticker/languages/t4b-news-ticker-' . $locale . '.mo'); 89 94 } 90 95 91 96 /* Add plugin action links */ 92 public function t4bnt_plugin_actions( $links ) { 93 $create_ticker_url = esc_url( menu_page_url('t4bnt-settings', false) ); 94 $create_ticker_url = wp_nonce_url( $create_ticker_url, 't4bnt_create_ticker_action' ); 95 97 public function t4bnt_plugin_actions($links) 98 { 99 $create_ticker_url = esc_url(menu_page_url('t4bnt-settings', false)); 100 $create_ticker_url = wp_nonce_url($create_ticker_url, 't4bnt_create_ticker_action'); 101 96 102 $support_url = esc_url("https://wordpress.org/support/plugin/t4b-news-ticker"); 97 98 $links[] = '<a href="' . $create_ticker_url .'">'. esc_html__( 'Settings', 't4b-news-ticker' ) .'</a>';99 $links[] = '<a href="' . $support_url .'" target="_blank">'. esc_html__( 'Support', 't4b-news-ticker' ) .'</a>';100 103 104 $links[] = '<a href="' . $create_ticker_url . '">' . esc_html__('Settings', 't4b-news-ticker') . '</a>'; 105 $links[] = '<a href="' . $support_url . '" target="_blank">' . esc_html__('Support', 't4b-news-ticker') . '</a>'; 106 101 107 return $links; 102 108 } 103 109 104 110 /** 105 * Check date on admin initiation and add to admin notice if it was over 7 days ago. 106 * @return null 107 */ 108 public function t4bnt_check_i10n_date() { 111 * Check date on admin initiation and add to admin notice if it was over 7 days ago. 112 * @return null 113 */ 114 public function t4bnt_check_i10n_date() 115 { 109 116 // Retrieve the 'review_nt' option 110 $review_nt = get_option( 't4bnt_review_nt', false);111 117 $review_nt = get_option('t4bnt_review_nt', false); 118 112 119 // Proceed only if 'review_nt' is not set 113 if ( ! $review_nt) {120 if (!$review_nt) { 114 121 // Retrieve the 'i10n_date' option and set a default value if not found 115 $i10n_date = get_option( 't4bnt_activation_time', false);116 122 $i10n_date = get_option('t4bnt_activation_time', false); 123 117 124 // Calculate the past date for the threshold (7 days in seconds: 7 * 24 * 60 * 60) 118 $past_date = strtotime( '-7 days');119 125 $past_date = strtotime('-7 days'); 126 120 127 // Validate the 'i10n_date' and compare it with the threshold 121 if ( $i10n_date && is_numeric( $i10n_date ) && $i10n_date < $past_date) {128 if ($i10n_date && is_numeric($i10n_date) && $i10n_date < $past_date) { 122 129 // If the condition is met, display the admin notice 123 add_action( 'admin_notices', array( $this, 't4bnt_display_admin_notice' ));130 add_action('admin_notices', array($this, 't4bnt_display_admin_notice')); 124 131 } else { 125 132 // Otherwise, store the current timestamp as the activation time 126 133 $current_time = time(); // Current timestamp 127 update_option( 't4bnt_activation_time', $current_time);134 update_option('t4bnt_activation_time', $current_time); 128 135 } 129 136 } 130 137 } 131 132 /** 133 * Display Admin Notice, asking for a review 134 **/ 135 public function t4bnt_display_admin_notice() { 138 139 /** 140 * Display Admin Notice, asking for a review 141 **/ 142 public function t4bnt_display_admin_notice() 143 { 136 144 // WordPress global variable 137 145 global $pagenow; 138 146 139 147 // Validate current admin page and query parameters 140 if ( is_admin() && $pagenow === 'admin.php' && isset( $_GET['page'] ) && sanitize_text_field( wp_unslash( $_GET['page'] ) ) === 't4bnt-settings') {141 148 if (is_admin() && $pagenow === 'admin.php' && isset($_GET['page']) && sanitize_text_field(wp_unslash($_GET['page'])) === 't4bnt-settings') { 149 142 150 // Generate URLs with proper escaping 143 $dont_disturb = esc_url_raw( admin_url( 'admin.php?page=t4bnt-settings&review_nt=1' ));144 $dont_disturb = wp_nonce_url( $dont_disturb, 't4bnt_disturb_action');145 151 $dont_disturb = esc_url_raw(admin_url('admin.php?page=t4bnt-settings&review_nt=1')); 152 $dont_disturb = wp_nonce_url($dont_disturb, 't4bnt_disturb_action'); 153 146 154 // Retrieve plugin data securely 147 $plugin_info = get_plugin_data( T4BNT_AUF, true, true);155 $plugin_info = get_plugin_data(T4BNT_AUF, true, true); 148 156 149 157 // Validate and sanitize plugin data 150 $plugin_name = esc_html__( 'T4B News Ticker', 't4b-news-ticker');151 $text_domain = !empty( $plugin_info['TextDomain'] ) ? sanitize_title( $plugin_info['TextDomain']) : 't4b-news-ticker';152 158 $plugin_name = esc_html__('T4B News Ticker', 't4b-news-ticker'); 159 $text_domain = !empty($plugin_info['TextDomain']) ? sanitize_title($plugin_info['TextDomain']) : 't4b-news-ticker'; 160 153 161 // Construct the review URL securely 154 162 $review_url = 'https://wordpress.org/support/plugin/' . $text_domain . '/reviews/'; 155 $review_url = wp_nonce_url( $review_url, 't4bnt_review_action');156 163 $review_url = wp_nonce_url($review_url, 't4bnt_review_action'); 164 157 165 // Output the notice with proper escaping 158 166 printf( 159 '<div id="t4bnt-review" class="t4bnt-notice t4bnt-notice-success t4bnt-is-dismissible"> 160 <span class="t4bnt-close-icon">×</span> 167 '<div id="t4bnt-review" class="notice notice-success is-dismissible"> 161 168 <p>%1$s</p> 162 169 <p>%2$s</p> … … 167 174 </div>', 168 175 esc_html__( 'It\'s been 7 days since your last update or installation of the latest version of ', 't4b-news-ticker' ) . '<b>' . esc_html( $plugin_name ) . '</b>' . esc_html__( '! We hope you\'ve had a positive experience so far.', 't4b-news-ticker' ), 169 esc_html__( 'Your feedback is important to us and can help us improve. If you find our ', 't4b-news-ticker' ) . '<b>' . esc_html( $plugin_name ) . '</b>' . esc_html__( ' plugin valuable, could you please take a moment to share your thoughts by leaving a quick review?', 't4b-news-ticker' ),176 esc_html__( 'Your feedback is important to us and can help us improve. If you enjoy our plugin, please leave a quick review!', 't4b-news-ticker' ), 170 177 esc_url( $review_url ), 171 178 esc_html__( 'Leave a Review', 't4b-news-ticker' ), … … 177 184 178 185 /** 179 * remove the notice for the user if review already done or if the user does not want to 180 **/ 181 public function t4bnt_review_nt() { 186 * remove the notice for the user if review already done or if the user does not want to 187 **/ 188 public function t4bnt_review_nt() 189 { 182 190 // Check if 'review_nt' parameter is set and not empty 183 if ( isset( $_GET['review_nt'] ) && !empty( $_GET['review_nt'] )) {191 if (isset($_GET['review_nt']) && !empty($_GET['review_nt'])) { 184 192 // Sanitize the input value to ensure it is safe to use 185 $review_nt = sanitize_text_field( wp_unslash( $_GET['review_nt'] ));186 193 $review_nt = sanitize_text_field(wp_unslash($_GET['review_nt'])); 194 187 195 // Validate the value to check if it is the expected value 188 if ( $review_nt === '1') {196 if ($review_nt === '1') { 189 197 // Add the 't4bnt_review_nt' option with a boolean value 190 add_option( 't4bnt_review_nt', true);198 add_option('t4bnt_review_nt', true); 191 199 } 192 200 } -
t4b-news-ticker/trunk/inc/t4bnt-enqueue.php
r3303710 r3396714 8 8 * - t4bnt_enqueue_script(): Enqueues the necessary CSS and JS files for the front-end. 9 9 * 10 * @package T4B News Ticker v1.4. 2 - 30 May, 202510 * @package T4B News Ticker v1.4.3 - 16 November, 2025 11 11 * @link https://www.realwebcare.com/ 12 12 */ -
t4b-news-ticker/trunk/inc/t4bnt-help.php
r3303710 r3396714 7 7 * assistance to administrators on how to use shortcode of the plugin. 8 8 * 9 * @package T4B News Ticker v1.4. 2 - 30 May, 20259 * @package T4B News Ticker v1.4.3 - 16 November, 2025 10 10 * @link https://www.realwebcare.com/ 11 11 */ 12 12 13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 14 15 if ( ! class_exists( 'T4BNT_Help' ) ) { 16 class T4BNT_Help { 13 if (!defined('ABSPATH')) 14 exit; // Exit if accessed directly 15 16 if (!class_exists('T4BNT_Help')) { 17 class T4BNT_Help 18 { 17 19 18 20 /** 19 21 * Render the help page. 20 22 */ 21 public function render_t4bnt_help_page() { ?> 23 public function render_t4bnt_help_page() 24 { ?> 22 25 <div class="t4bnt_settings_area"> 23 26 <div class="wrap t4bnt_settings"> … … 27 30 <?php $this->render_t4bnt_help_content(); ?> 28 31 <?php $this->render_t4bnt_dashboard_guide(); ?> 32 <?php $this->render_t4bnt_shortcode_all_pages_guide(); ?> 29 33 </div> 30 34 <?php $this->render_sidebar(); ?> … … 36 40 * Render YouTube Video and Documentation 37 41 */ 38 public function render_t4bnt_help_content() { 42 public function render_t4bnt_help_content() 43 { 39 44 ?> 40 45 <div class="t4bnt-help-info"> … … 43 48 printf( 44 49 esc_html__( 45 'Watch the Tutorial Video:', 46 't4b-news-ticker' 47 )); 50 'Watch the Tutorial Video:', 51 't4b-news-ticker' 52 ) 53 ); 48 54 ?> 49 55 </p> … … 53 59 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 54 60 esc_html__('To help you get started with the T4B News Ticker plugin, we\'ve prepared a detailed tutorial video. This video is %1$s5 minutes and 42 seconds%2$s long and covers everything you need to know about how the plugin works, including setup, configuration, and advanced features.', 't4b-news-ticker'), 55 '<strong>', '</strong>' 61 '<strong>', 62 '</strong>' 56 63 ); ?> 57 64 </p> 58 <p><?php esc_html_e( 'We highly recommend watching this video to make the most out of the T4B News Ticker plugin. If you have any questions after watching, feel free to reach out to our support team.', 't4b-news-ticker'); ?></p>65 <p><?php esc_html_e('We highly recommend watching this video to make the most out of the T4B News Ticker plugin. If you have any questions after watching, feel free to reach out to our support team.', 't4b-news-ticker'); ?></p> 59 66 <div class="getting-started_video"> 60 67 <p><iframe width="620" height="350" src="https://www.youtube-nocookie.com/embed/CX72IvU51SY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p> … … 67 74 * Render instructions for creating a new user front-end dashboard. 68 75 */ 69 public function render_t4bnt_dashboard_guide() { 76 public function render_t4bnt_dashboard_guide() 77 { 70 78 ?> 71 79 <div class="t4bnt-help-info"> … … 76 84 'Code Usage Instruction in the Theme', 77 85 't4b-news-ticker' 78 )); 86 ) 87 ); 79 88 ?> 80 89 </h3> … … 84 93 printf( 85 94 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 86 esc_html__('To display a news ticker shortcode in a WordPress theme file, you can use the %1$sdo_shortcode%2$s function:', 't4b-news-ticker'), 87 '<strong>', '</strong>' 88 ); 95 esc_html__('To display a news ticker shortcode in a WordPress theme file, you can use the %1$sdo_shortcode%2$s function:', 't4b-news-ticker'), 96 '<strong>', 97 '</strong>' 98 ); 89 99 ?> 90 100 </li> … … 93 103 printf( 94 104 /* translators: %s: Example of do_shortcode usage in a PHP code block */ 95 esc_html__('Example of shortcode usage in PHP: %s', 't4b-news-ticker'), 105 esc_html__('Example of shortcode usage in PHP: %s', 't4b-news-ticker'), 96 106 '<pre><code><span><?php</span> <span class="t4bnt-keyword">echo</span> <span class="t4bnt-function">do_shortcode</span>(<span class="t4bnt-string">\'[t4b-ticker]\'</span>); <span>?></span></code></pre>' 97 107 ); … … 102 112 printf( 103 113 esc_html__('You can place this code anywhere in your theme file where you want the news ticker to appear. For example, you could place it in the template file for a specific page of your site.', 't4b-news-ticker') 104 ); 105 ?> 106 </li> 107 <li> 108 <?php 109 printf( 110 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 111 esc_html__('Keep in mind that if you are making changes directly to your theme files, those changes will be overwritten if you update the theme. To avoid this, you can create a child theme and make your changes there instead.', 't4b-news-ticker'), 112 '<strong>', '</strong>' 113 ); 114 ); 115 ?> 116 </li> 117 <li> 118 <?php 119 printf( 120 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 121 esc_html__('Keep in mind that if you are making changes directly to your theme files, those changes will be overwritten if you update the theme. To avoid this, you can create a child theme and make your changes there instead.', 't4b-news-ticker'), 122 '<strong>', 123 '</strong>' 124 ); 114 125 ?> 115 126 </li> … … 120 131 121 132 /** 133 * Render guidance for adding the ticker shortcode on all pages. 134 */ 135 public function render_t4bnt_shortcode_all_pages_guide() 136 { 137 ?> 138 <div class="t4bnt-help-info"> 139 <h3 class="get-instructed"> 140 <?php 141 printf( 142 esc_html__( 143 'How to Add Ticker Shortcode on All Pages', 144 't4b-news-ticker' 145 ) 146 ); 147 ?> 148 </h3> 149 <ol class="t4bnt-help-instructions"> 150 <li> 151 <?php 152 printf( 153 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 154 esc_html__( 155 'Go to %1$sAppearance → Widgets%2$s and add a Text or Custom HTML widget to a sidebar or footer that appears on all pages.', 156 't4b-news-ticker', 157 ), 158 '<strong>', 159 '</strong>', 160 ); 161 ?> 162 </li> 163 <li> 164 <?php 165 printf( 166 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 167 esc_html__( 168 'Paste your ticker shortcode (e.g., %1$s[t4b-ticker]%2$s) inside the widget to display it site-wide.', 169 't4b-news-ticker' 170 ), 171 '<strong>', 172 '</strong>', 173 ); 174 ?> 175 </li> 176 <li> 177 <?php 178 printf( 179 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 180 esc_html__( 181 'Alternatively, you can add the shortcode directly in theme files using the %1$sdo_shortcode%2$s function.', 182 't4b-news-ticker' 183 ), 184 '<strong>', 185 '</strong>', 186 ); 187 ?> 188 </li> 189 <li> 190 <?php 191 printf( 192 /* translators: %s: Example code for do_shortcode usage */ 193 esc_html__('Example: %s', 't4b-news-ticker'), 194 '<pre><code><span><?php</span> <span class="t4bnt-keyword">echo</span> <span class="t4bnt-function">do_shortcode</span>(<span class="t4bnt-string">\'[t4b-ticker]\'</span>); <span>?></span></code></pre>' 195 ); 196 ?> 197 </li> 198 <li> 199 <?php 200 printf( 201 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 202 esc_html__( 203 'If using a page builder like %1$sElementor%2$s or %1$sGutenberg%2$s, insert the Shortcode block or widget into a global template section (e.g., header or footer).', 204 't4b-news-ticker' 205 ), 206 '<strong>', 207 '</strong>', 208 ); 209 ?> 210 </li> 211 <li> 212 <?php 213 printf( 214 /* translators: 1: Opening strong tag, 2: Closing strong tag */ 215 esc_html__( 216 'For developers, it is also possible to use hooks like %1$swp_head%2$s or %1$swp_footer%2$s to add the shortcode programmatically.', 217 't4b-news-ticker' 218 ), 219 '<strong>', 220 '</strong>', 221 ); 222 ?> 223 </li> 224 </ol> 225 </div> 226 <?php 227 } 228 229 230 /** 122 231 * Render the sidebar. 123 232 */ 124 private function render_sidebar() { 233 private function render_sidebar() 234 { 125 235 if (class_exists('T4BNT_Sidebar')) { 126 236 $t4bnt_sidebar = T4BNT_Sidebar::get_instances(); 127 237 128 if ( method_exists( $t4bnt_sidebar, 't4bnt_sidebar' )) {238 if (method_exists($t4bnt_sidebar, 't4bnt_sidebar')) { 129 239 // Render sidebar content 130 $sidebar_content = $t4bnt_sidebar->t4bnt_sidebar( true, false, true);131 132 if ( $sidebar_content !== null) {133 echo wp_kses_post( $sidebar_content);240 $sidebar_content = $t4bnt_sidebar->t4bnt_sidebar(true, false, true); 241 242 if ($sidebar_content !== null) { 243 echo wp_kses_post($sidebar_content); 134 244 } else { 135 245 // Fallback for null content … … 139 249 } 140 250 } 141 }251 } 142 252 } -
t4b-news-ticker/trunk/inc/t4bnt-sidebar.php
r3303710 r3396714 8 8 * and allows for custom CSS class inclusion for styling. 9 9 * 10 * @package T4B News Ticker v1.4. 2 - 30 May, 202510 * @package T4B News Ticker v1.4.3 - 16 November, 2025 11 11 * @link https://www.realwebcare.com/ 12 12 */ … … 110 110 <li>Click <a href="%3$s" target="_blank">here</a> to learn more...</li> 111 111 </ul> 112 <a class="btn-demo" href="%4$s" target="_blank"> ViewDemo</a>112 <a class="btn-demo" href="%4$s" target="_blank">Pro Demo</a> 113 113 </div>', 114 114 't4b-news-ticker' … … 130 130 <ul class="t4bntusage-list"> 131 131 <li>T4B News Ticker</li> 132 <li>Version: 1.4. 2</li>132 <li>Version: 1.4.3</li> 133 133 <li>Scripts: PHP + CSS + JS</li> 134 134 <li>Requires: WordPress 5.4+</li> 135 135 <li>First release: 29 December, 2014</li> 136 <li>Last Update: 30 May, 2025</li>136 <li>Last Update: 16 November, 2025</li> 137 137 <li>By: <a href="%1$s" target="_blank">Realwebcare</a></li> 138 138 <li>Facebook Page: <a href="%2$s" target="_blank">Realwebcare</a></li> 139 <li>Need Help? <a href="%3$s" target="_blank">Support</a> </li>140 <li>Like it? Please leave us a <a target="_blank" href="% 4$s">★★★★★</a> rating. We highly appreciate your support!</li>139 <li>Need Help? <a href="%3$s" target="_blank">Support</a> | <a href="%4$s" target="_blank">Dedicated Support</a></li> 140 <li>Like it? Please leave us a <a target="_blank" href="%5$s">★★★★★</a> rating. We highly appreciate your support!</li> 141 141 </ul>', 142 142 't4b-news-ticker' … … 145 145 esc_url('https://www.facebook.com/realwebcare'), 146 146 esc_url('https://wordpress.org/support/plugin/t4b-news-ticker/'), 147 esc_url('https://www.realwebcare.com/billing/submitticket.php?step=2&deptid=6'), 147 148 esc_url('https://wordpress.org/support/plugin/t4b-news-ticker/reviews/?filter=5/#new-post') 148 149 ) . '</div>'; -
t4b-news-ticker/trunk/languages/t4b-news-ticker.pot
r3000438 r3396714 4 4 "Project-Id-Version: T4B News Ticker\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 202 3-11-23 02:43+0000\n"6 "POT-Creation-Date: 2025-11-16 19:05+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 "X-Domain: t4b-news-ticker" 18 18 19 #: inc/ticker-settings.php:217 20 msgid " function:" 21 msgstr "" 22 23 #: inc/ticker-settings.php:108 19 #. %1$s: Opening HTML tag for heading, %2$s: Closing HTML tag for heading, %3$s: Opening paragraph tag, %4$s: Link to the YouTube video, %5$s: Contact Us link, %6$s: Closing paragraph tag, %7$s: Opening paragraph tag for feedback request, %8$s: Link to leave a review 20 #: settings/ticker-settings.php:451 21 #, php-format 22 msgid "" 23 "\n" 24 "\t\t\t\t\t\t\t\t%1$sWatch Our YouTube Tutorial for Easy Setup!%2$s\n" 25 "\t\t\t\t\t\t\t\t%3$sThere is a %4$s available that explains how the User " 26 "Front-End plugin works. If you have any trouble understanding, feel free to " 27 "%5$s at any time.%6$s\n" 28 "\t\t\t\t\t\t\t\t%7$sWe greatly value your feedback! Please spare a moment to " 29 "rate your recent experience with our plugin. Your input is highly " 30 "appreciated and helps us improve. Thank you for your support!%8$s" 31 msgstr "" 32 33 #: inc/init-t4bnt.php:175 34 msgid "! We hope you've had a positive experience so far." 35 msgstr "" 36 37 #: settings/ticker-settings.php:349 24 38 msgid "0.05" 25 39 msgstr "" 26 40 27 #: inc/ticker-settings.php:12041 #: settings/ticker-settings.php:367 28 42 msgid "0.10" 29 43 msgstr "" 30 44 31 #: inc/ticker-settings.php:15945 #: settings/ticker-settings.php:252 32 46 msgid "10" 33 47 msgstr "" 34 48 35 #: inc/ticker-settings.php:8949 #: settings/ticker-settings.php:329 36 50 msgid "2000" 37 51 msgstr "" 38 52 39 #: inc/ticker-admin.php:22 40 msgid "7 impressive animation effects." 41 msgstr "" 42 43 #: inc/ticker-settings.php:172 53 #: settings/ticker-settings.php:290 54 msgid "40" 55 msgstr "" 56 57 #. %1s: URL for the Pro version image. 58 #. %2s: URL for the T4B News Ticker Pro product page. 59 #. %3s: URL for the demo page of T4B News Ticker Pro. 60 #: inc/t4bnt-sidebar.php:90 61 #, php-format 62 msgid "" 63 "<div class=\"t4bntusage-feature-header\">\n" 64 " <img src=\"%1$s\" alt=\"T4BNT Pro\">\n" 65 " </div>\n" 66 " <div class=\"t4bntusage-feature-body\">\n" 67 " <h3>T4B News Ticker Pro Features</h3>\n" 68 " <div class=\"t4bnt\">Pro version has been " 69 "developed to present News Ticker more proficiently. Some of the most notable " 70 "features are:</div>\n" 71 " <a class=\"btn-demo btn-top\" href=\"%2$s\" " 72 "target=\"_blank\">Test Drive Pro</a>\n" 73 " <ul class=\"t4bntusage-list\">\n" 74 " <li>Customization Made Effortless.</li>\n" 75 " <li>7 impressive animation effects.</li>" 76 "\n" 77 " <li>Instant Creation with 12 Pre-made " 78 "Designs.</li>\n" 79 " <li>Continuous Scroll Without " 80 "Interruption.</li>\n" 81 " <li>Import/Export (Backup) news ticker." 82 "</li>\n" 83 " <li>Make a copy of a ticker instantly." 84 "</li>\n" 85 " <li>Choose ticker contents from multiple " 86 "categories.</li>\n" 87 " <li>RSS Feed and JSON Display.</li>\n" 88 " <li>Fix the ticker at the top or bottom " 89 "of the page.</li>\n" 90 " <li>RTL (Right to Left) Language Support." 91 "</li>\n" 92 " <li>Google Fonts and Font Awesome " 93 "Support.</li>\n" 94 " <li>Click <a href=\"%3$s\" " 95 "target=\"_blank\">here</a> to learn more...</li>\n" 96 " </ul>\n" 97 " <a class=\"btn-demo\" href=\"%4$s\" " 98 "target=\"_blank\">Pro Demo</a>\n" 99 " </div>" 100 msgstr "" 101 102 #. %1$s: URL for Realwebcare website, %2$s: URL for Realwebcare Facebook page, %3$s: URL for plugin support page, %4$s: URL for plugin review page 103 #: inc/t4bnt-sidebar.php:128 104 #, php-format 105 msgid "" 106 "<h3>Plugin Info</h3>\n" 107 " <ul class=\"t4bntusage-list\">\n" 108 " <li>T4B News Ticker</li>\n" 109 " <li>Version: 1.4.3</li>\n" 110 " <li>Scripts: PHP + CSS + JS</li>\n" 111 " <li>Requires: WordPress 5.4+</li>\n" 112 " <li>First release: 29 December, 2014</li>\n" 113 " <li>Last Update: 16 November, 2025</li>\n" 114 " <li>By: <a href=\"%1$s\" target=\"_blank\">" 115 "Realwebcare</a></li>\n" 116 " <li>Facebook Page: <a href=\"%2$s\" " 117 "target=\"_blank\">Realwebcare</a></li>\n" 118 " <li>Need Help? <a href=\"%3$s\" " 119 "target=\"_blank\">Support</a> | <a href=\"%4$s\" target=\"_blank\">Dedicated " 120 "Support</a></li>\n" 121 " <li>Like it? Please leave us a <a " 122 "target=\"_blank\" href=\"%5$s\">★★★★★</a> rating. We highly appreciate your " 123 "support!</li>\n" 124 " </ul>" 125 msgstr "" 126 127 #: settings/ticker-settings.php:207 128 msgid "" 129 "<h5>Caution: Deleting Plugin Data on Uninstall</h5><p>Enabling the <strong>" 130 "Delete All on Uninstall</strong> option will permanently erase all <strong>" 131 "plugin-related settings</strong> and <strong>user metadata</strong> when the " 132 "plugin is uninstalled.</p><p>This action is irreversible. Ensure you back up " 133 "important data before enabling this option. If you are unsure, we recommend " 134 "leaving this option unchecked to preserve your data.</p>" 135 msgstr "" 136 137 #: inc/t4bnt-sidebar.php:60 138 msgid "[/] Shortcode Usage Instruction" 139 msgstr "" 140 141 #: settings/ticker-settings.php:131 142 msgid "Advance Settings" 143 msgstr "" 144 145 #: inc/init-t4bnt.php:180 146 msgid "Already Left a Review" 147 msgstr "" 148 149 #. 1: Opening strong tag, 2: Closing strong tag 150 #: inc/t4bnt-help.php:180 151 #, php-format 152 msgid "" 153 "Alternatively, you can add the shortcode directly in theme files using the " 154 "%1$sdo_shortcode%2$s function." 155 msgstr "" 156 157 #: settings/ticker-settings.php:266 44 158 msgid "Ascending" 45 159 msgstr "" 46 160 47 #: inc/ticker-admin.php:6148 msgid " By"49 msgstr "" 50 51 #: inc/ticker-admin.php:2752 msgid "Choose ticker contents from multiple categories."53 msgstr "" 54 55 #: inc/t icker-admin.php:47161 #: settings/ticker-settings.php:200 162 msgid "Check this box to delete all plugin data upon uninstall." 163 msgstr "" 164 165 #: settings/t4bnt-class.settings-api.php:408 166 msgid "Choose File" 167 msgstr "" 168 169 #: inc/t4bnt-sidebar.php:71 56 170 msgid "Click to Copy Shortcode!" 57 171 msgstr "" 58 172 59 #: inc/ticker-settings.php:215 60 msgid "Code Usage Instruction in a Theme" 61 msgstr "" 62 63 #: inc/ticker-admin.php:24 64 msgid "Continuous Scroll Without Interruption." 65 msgstr "" 66 67 #: inc/ticker-admin.php:21 68 msgid "Customization Made Effortless." 69 msgstr "" 70 71 #: inc/ticker-settings.php:173 173 #: inc/t4bnt-help.php:83 174 msgid "Code Usage Instruction in the Theme" 175 msgstr "" 176 177 #: settings/ticker-settings.php:199 178 msgid "Delete All on Uninstall:" 179 msgstr "" 180 181 #: settings/ticker-settings.php:267 72 182 msgid "Descending" 73 183 msgstr "" 74 184 75 #: inc/ticker-settings.php:21776 msgid " do_shortcode"77 msgstr "" 78 79 #: inc/t icker-admin.php:41185 #: settings/ticker-settings.php:166 186 msgid "Disable on Tag/Category Page" 187 msgstr "" 188 189 #: inc/t4bnt-sidebar.php:65 80 190 msgid "Either create a new post or page, or edit an existing one." 81 191 msgstr "" 82 192 83 #: inc/ticker-settings.php:51 193 #: settings/ticker-settings.php:192 194 msgid "" 195 "Enable this option to hide the notification when the ticker is disabled or " 196 "set to display only on the homepage but is not active there." 197 msgstr "" 198 199 #: settings/ticker-settings.php:150 84 200 msgid "Enable Ticker" 85 201 msgstr "" 86 202 87 #: inc/ticker-settings.php:66203 #: settings/ticker-settings.php:175 88 204 msgid "Enter a title for the News Ticker" 89 205 msgstr "" 90 206 91 #: inc/ticker-settings.php:191207 #: settings/ticker-settings.php:300 92 208 msgid "" 93 209 "Enter custom text for your news ticker. One sentence with or without link " … … 95 211 msgstr "" 96 212 97 #: inc/ticker-settings.php:65213 #: settings/ticker-settings.php:174 98 214 msgid "Enter Ticker Title" 99 215 msgstr "" 100 216 101 #: inc/ticker-admin.php:59 102 msgid "First release: 29 December, 2014" 103 msgstr "" 104 105 #: inc/ticker-admin.php:29 106 msgid "Fix the ticker at the top or bottom of the page." 107 msgstr "" 108 109 #: inc/ticker-settings.php:35 217 #. %s: Example of do_shortcode usage in a PHP code block 218 #: inc/t4bnt-help.php:105 219 #, php-format 220 msgid "Example of shortcode usage in PHP: %s" 221 msgstr "" 222 223 #. %s: Example code for do_shortcode usage 224 #: inc/t4bnt-help.php:193 225 #, php-format 226 msgid "Example: %s" 227 msgstr "" 228 229 #. 1: Opening strong tag, 2: Closing strong tag 230 #: inc/t4bnt-help.php:215 231 #, php-format 232 msgid "" 233 "For developers, it is also possible to use hooks like %1$swp_head%2$s or " 234 "%1$swp_footer%2$s to add the shortcode programmatically." 235 msgstr "" 236 237 #: settings/ticker-settings.php:123 110 238 msgid "General Settings" 111 239 msgstr "" 112 240 113 #: inc/ticker-admin.php:64 114 msgid "GNU General Public License" 115 msgstr "" 116 117 #: inc/ticker-admin.php:40 241 #. 1: Opening strong tag, 2: Closing strong tag 242 #: inc/t4bnt-help.php:154 243 #, php-format 244 msgid "" 245 "Go to %1$sAppearance → Widgets%2$s and add a Text or Custom HTML widget to a " 246 "sidebar or footer that appears on all pages." 247 msgstr "" 248 249 #: inc/t4bnt-sidebar.php:64 118 250 msgid "" 119 251 "Go to Posts or Pages, depending on where you want to display the news ticker." 120 252 msgstr "" 121 253 122 #: inc/ticker-admin.php:31 123 msgid "Google Fonts and Font Awesome Support." 254 #: settings/ticker-settings.php:103 255 msgid "Help" 256 msgstr "" 257 258 #: settings/ticker-settings.php:191 259 msgid "Hide Disabled Ticker Notification" 260 msgstr "" 261 262 #: inc/t4bnt-help.php:142 263 msgid "How to Add Ticker Shortcode on All Pages" 124 264 msgstr "" 125 265 … … 132 272 msgstr "" 133 273 134 #: inc/ticker-admin.php:25 135 msgid "Import/Export (Backup) news ticker." 136 msgstr "" 137 138 #: inc/ticker-admin.php:23 139 msgid "Instant Creation with 12 Pre-made Designs." 140 msgstr "" 141 142 #: inc/ticker-settings.php:220 274 #. 1: Opening strong tag, 2: Closing strong tag 275 #: inc/t4bnt-help.php:202 276 #, php-format 277 msgid "" 278 "If using a page builder like %1$sElementor%2$s or %1$sGutenberg%2$s, insert " 279 "the Shortcode block or widget into a global template section (e.g., header " 280 "or footer)." 281 msgstr "" 282 283 #: inc/init-t4bnt.php:175 284 msgid "" 285 "It's been 7 days since your last update or installation of the latest " 286 "version of " 287 msgstr "" 288 289 #. 1: Opening strong tag, 2: Closing strong tag 290 #: inc/t4bnt-help.php:121 143 291 msgid "" 144 292 "Keep in mind that if you are making changes directly to your theme files, " … … 147 295 msgstr "" 148 296 149 #: inc/ticker-admin.php:60 150 msgid "Last Update: 23 November, 2023" 151 msgstr "" 152 153 #: inc/ticker-admin.php:63 154 msgid "Like it? Please leave us a" 155 msgstr "" 156 157 #: inc/ticker-admin.php:43 297 #: inc/init-t4bnt.php:178 298 msgid "Leave a Review" 299 msgstr "" 300 301 #: inc/t4bnt-sidebar.php:67 158 302 msgid "" 159 303 "Locate the spot in the post or page where you want to display the news " … … 161 305 msgstr "" 162 306 163 #: inc/ticker-admin.php:26 164 msgid "Make a copy of a ticker instantly." 165 msgstr "" 166 167 #: inc/ticker-settings.php:52 307 #: settings/ticker-settings.php:151 168 308 msgid "Mark if you want to show News Ticker." 169 309 msgstr "" 170 310 171 #: inc/ticker-settings.php:100311 #: settings/ticker-settings.php:340 172 312 msgid "Mark if you want to show the News Ticker control buttons." 173 313 msgstr "" 174 314 175 #: inc/ticker-admin.php:62 176 msgid "Need Help" 177 msgstr "" 178 179 #: inc/ticker-settings.php:67 315 #: settings/ticker-settings.php:176 180 316 msgid "News Ticker" 181 317 msgstr "" 182 318 183 #: inc/ticker-settings.php:142319 #: settings/ticker-settings.php:233 184 320 msgid "News Ticker Categories" 185 321 msgstr "" 186 322 187 #: inc/ticker-settings.php:190323 #: settings/ticker-settings.php:299 188 324 msgid "News Ticker Custom Text" 189 325 msgstr "" 190 326 191 #: inc/ticker-settings.php:130192 msgid "N ews Ticker Type"193 msgstr "" 194 195 #: inc/ticker-settings.php:157196 msgid "Number of post"197 msgstr "" 198 199 #: inc/ticker-settings.php:158327 #: settings/ticker-settings.php:278 328 msgid "No Order" 329 msgstr "" 330 331 #: settings/ticker-settings.php:250 332 msgid "Number of Post" 333 msgstr "" 334 335 #: settings/ticker-settings.php:251 200 336 msgid "Number of post to show. Default -1, means show all." 201 337 msgstr "" 202 338 203 #: inc/t icker-admin.php:51339 #: inc/t4bnt-sidebar.php:75 204 340 msgid "" 205 341 "Once you've saved or published the post or page, the news ticker shortcode " … … 208 344 msgstr "" 209 345 210 #: inc/ticker-settings.php:197346 #: settings/ticker-settings.php:183 211 347 msgid "Open in New Tab" 212 348 msgstr "" 213 349 214 #: inc/t icker-admin.php:45350 #: inc/t4bnt-sidebar.php:69 215 351 msgid "Paste the following shortcode into the editor:" 216 352 msgstr "" 217 353 218 # : inc/ticker-admin.php:54219 msgid "Plugin Info" 220 msgstr "" 221 222 #: inc/ticker-admin.php:37 223 msgid "Plugin Shortcode"224 msgstr "" 225 226 #: inc/ticker-settings.php:185354 #. 1: Opening strong tag, 2: Closing strong tag 355 #: inc/t4bnt-help.php:167 356 #, php-format 357 msgid "" 358 "Paste your ticker shortcode (e.g., %1$s[t4b-ticker]%2$s) inside the widget " 359 "to display it site-wide." 360 msgstr "" 361 362 #: settings/ticker-settings.php:281 227 363 msgid "Post Date" 228 364 msgstr "" 229 365 230 #: inc/ticker-settings.php:183366 #: settings/ticker-settings.php:279 231 367 msgid "Post ID" 232 368 msgstr "" 233 369 234 #: inc/ticker-settings.php:184370 #: settings/ticker-settings.php:280 235 371 msgid "Post Name (post slug)" 236 372 msgstr "" 237 373 238 #: inc/ticker-admin.php:18 239 msgid "Premium Features" 240 msgstr "" 241 242 #: inc/ticker-admin.php:19 243 msgid "" 244 "Premium version has been developed to present News Ticker more proficiently. " 245 "Some of the most notable features are:" 246 msgstr "" 247 248 #: inc/ticker-admin.php:64 249 msgid "Published under" 250 msgstr "" 251 252 #: inc/ticker-admin.php:63 253 msgid "rating. We highly appreciate your support!" 374 #: settings/ticker-settings.php:288 375 msgid "Post Title Max. Length" 376 msgstr "" 377 378 #: settings/ticker-settings.php:282 379 msgid "Random" 254 380 msgstr "" 255 381 256 382 #. Author of the plugin 257 #: inc/ticker-admin.php:61258 383 msgid "Realwebcare" 259 384 msgstr "" 260 385 261 #: inc/ticker-admin.php:58 262 msgid "Requires: Wordpress 5.4+" 263 msgstr "" 264 265 #: inc/ticker-settings.php:119 386 #: settings/ticker-settings.php:366 266 387 msgid "Revealing speed of the ticker." 267 388 msgstr "" 268 389 269 #: inc/ticker-admin.php:28 270 msgid "RSS Feed and JSON Display." 271 msgstr "" 272 273 #: inc/ticker-admin.php:30 274 msgid "RTL (Right to Left) Language Support." 275 msgstr "" 276 277 #: inc/ticker-admin.php:49 390 #: inc/t4bnt-sidebar.php:73 278 391 msgid "Save or publish the post or page." 279 392 msgstr "" 280 393 281 #: inc/ticker-admin.php:57 282 msgid "Scripts: PHP + CSS + JS" 283 msgstr "" 284 285 #: inc/ticker-settings.php:99 394 #: settings/ticker-settings.php:339 286 395 msgid "Scrolling Control" 287 396 msgstr "" 288 397 289 #: inc/ticker-settings.php:107398 #: settings/ticker-settings.php:348 290 399 msgid "Scrolling speed of the ticker." 291 400 msgstr "" 292 401 293 #: inc/ticker-settings.php:143402 #: settings/ticker-settings.php:234 294 403 msgid "Select a category for News Ticker to show." 295 404 msgstr "" 296 405 297 #: inc/ticker-settings.php:198 406 #: settings/ticker-settings.php:167 407 msgid "Select if you want to hide the ticker on tags and category archive page" 408 msgstr "" 409 410 #: settings/ticker-settings.php:184 298 411 msgid "Select if you want to open link in new tab." 299 412 msgstr "" 300 413 301 #: inc/ticker-settings.php:59414 #: settings/ticker-settings.php:159 302 415 msgid "Select if you want to show the News Ticker only in homepage." 303 416 msgstr "" 304 417 305 #: inc/ticker-settings.php:150418 #: settings/ticker-settings.php:242 306 419 msgid "Select News Ticker Tags" 307 420 msgstr "" 308 421 309 #: inc/ticker-settings.php:167422 #: settings/ticker-settings.php:261 310 423 msgid "Select Post Order" 311 424 msgstr "" 312 425 313 #: inc/ticker-settings.php:178426 #: settings/ticker-settings.php:273 314 427 msgid "Select Post Order By" 315 428 msgstr "" 316 429 317 #: inc/ticker-settings.php:151430 #: settings/ticker-settings.php:243 318 431 msgid "Select tag names seprated by comma." 319 432 msgstr "" 320 433 321 #: inc/ticker-settings.php:75434 #: settings/ticker-settings.php:314 322 435 msgid "Select type of animation (Default: 'scroll')." 323 436 msgstr "" 324 437 325 #: news-ticker.php:53 438 #: settings/ticker-settings.php:289 439 msgid "Set the maximum length of the post title. Use -1/0 for no limit." 440 msgstr "" 441 442 #: inc/init-t4bnt.php:104 326 443 msgid "Settings" 327 444 msgstr "" 328 445 329 #: inc/ticker-settings.php:58446 #: settings/ticker-settings.php:158 330 447 msgid "Show in Homepage Only" 331 448 msgstr "" 332 449 333 #: inc/ticker-settings.php:106 450 #: settings/ticker-settings.php:220 451 msgid "Show News Ticker By" 452 msgstr "" 453 454 #: settings/ticker-settings.php:347 334 455 msgid "Speed of Scrolling" 335 456 msgstr "" 336 457 337 #: inc/ticker-settings.php:118458 #: settings/ticker-settings.php:365 338 459 msgid "Speed of Ticker" 339 460 msgstr "" 340 461 341 #: inc/ ticker-admin.php:62462 #: inc/init-t4bnt.php:105 342 463 msgid "Support" 343 464 msgstr "" 344 465 345 #: inc/t icker-admin.php:42466 #: inc/t4bnt-sidebar.php:66 346 467 msgid "Switch to the visual editor if it's not already active." 347 468 msgstr "" 348 469 349 470 #. Name of the plugin 471 #: inc/init-t4bnt.php:158 settings/ticker-settings.php:80 472 #: settings/ticker-settings.php:93 350 473 msgid "T4B News Ticker" 474 msgstr "" 475 476 #: inc/t4bnt-help.php:28 settings/ticker-settings.php:102 477 msgid "T4B News Ticker Guide" 351 478 msgstr "" 352 479 … … 357 484 msgstr "" 358 485 359 #: inc/ticker-settings.php:74 486 #: settings/ticker-settings.php:92 settings/ticker-settings.php:403 487 msgid "T4B News Ticker Options" 488 msgstr "" 489 490 #: settings/ticker-settings.php:81 491 msgid "T4B Ticker" 492 msgstr "" 493 494 #: settings/ticker-settings.php:313 360 495 msgid "Ticker Animation Type" 361 496 msgstr "" 362 497 363 #: inc/ticker-settings.php:27 364 msgid "Ticker Settings" 365 msgstr "" 366 367 #: inc/ticker-settings.php:88 368 msgid "Time between the fades in milliseconds (Default: '2000')" 369 msgstr "" 370 371 #: inc/ticker-settings.php:87 498 #: settings/ticker-settings.php:127 499 msgid "Ticker Contents" 500 msgstr "" 501 502 #: actions/ticker-shortcode.php:235 503 msgid "Ticker news is disabled on the homepage." 504 msgstr "" 505 506 #: actions/ticker-shortcode.php:226 507 msgid "Ticker news is disabled." 508 msgstr "" 509 510 #: actions/ticker-shortcode.php:230 511 msgid "Ticker news is only displayed on the front page." 512 msgstr "" 513 514 #: settings/ticker-settings.php:328 515 msgid "" 516 "Time between the fades in milliseconds (Default: '2000', means 2 seconds)" 517 msgstr "" 518 519 #: settings/ticker-settings.php:327 372 520 msgid "Timeout" 373 521 msgstr "" 374 522 375 #: inc/t icker-admin.php:38523 #: inc/t4bnt-sidebar.php:62 376 524 msgid "" 377 525 "To display a news ticker shortcode in a WordPress post or page, you need to " … … 379 527 msgstr "" 380 528 381 #: inc/ticker-settings.php:217 529 #. 1: Opening strong tag, 2: Closing strong tag 530 #: inc/t4bnt-help.php:95 531 #, php-format 382 532 msgid "" 383 533 "To display a news ticker shortcode in a WordPress theme file, you can use " 384 "the " 385 msgstr "" 386 387 #: inc/ticker-admin.php:56 388 msgid "Version: 1.2.9" 389 msgstr "" 390 391 #: inc/ticker-admin.php:33 392 msgid "View Demo" 393 msgstr "" 394 395 #: inc/ticker-settings.php:219 534 "the %1$sdo_shortcode%2$s function:" 535 msgstr "" 536 537 #. 1: Opening strong tag, 2: Closing strong tag 538 #: inc/t4bnt-help.php:60 539 #, php-format 540 msgid "" 541 "To help you get started with the T4B News Ticker plugin, we've prepared a " 542 "detailed tutorial video. This video is %1$s5 minutes and 42 seconds%2$s long " 543 "and covers everything you need to know about how the plugin works, including " 544 "setup, configuration, and advanced features." 545 msgstr "" 546 547 #: actions/ticker-shortcode.php:170 548 msgid "Untitled" 549 msgstr "" 550 551 #: inc/t4bnt-help.php:49 552 msgid "Watch the Tutorial Video:" 553 msgstr "" 554 555 #: inc/t4bnt-help.php:65 556 msgid "" 557 "We highly recommend watching this video to make the most out of the T4B News " 558 "Ticker plugin. If you have any questions after watching, feel free to reach " 559 "out to our support team." 560 msgstr "" 561 562 #: inc/t4bnt-help.php:113 396 563 msgid "" 397 564 "You can place this code anywhere in your theme file where you want the news " … … 399 566 "specific page of your site." 400 567 msgstr "" 568 569 #: settings/ticker-settings.php:428 570 msgid "You do not have sufficient permissions to access this page." 571 msgstr "" 572 573 #: inc/init-t4bnt.php:176 574 msgid "" 575 "Your feedback is important to us and can help us improve. If you enjoy our " 576 "plugin, please leave a quick review!" 577 msgstr "" -
t4b-news-ticker/trunk/news-ticker.php
r3303710 r3396714 4 4 * Plugin URI: http://wordpress.org/plugins/t4b-news-ticker/ 5 5 * Description: T4B News Ticker is a flexible and easy to use WordPress plugin that allow you to make horizontal News Ticker. 6 * Version: 1.4. 26 * Version: 1.4.3 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.4 … … 54 54 */ 55 55 public function t4bnt_check_version() { 56 $current_version = '1.4. 2'; // Set to the version that requires updates56 $current_version = '1.4.3'; // Set to the version that requires updates 57 57 $saved_version = get_option( 't4bnt_plugin_version', '' ); // Handle missing option 58 58 59 59 // Run only for users below 1.4.0 60 if ( empty($saved_version) || version_compare($saved_version, '1.4. 2', '<') ) {60 if ( empty($saved_version) || version_compare($saved_version, '1.4.3', '<') ) { 61 61 // Perform required option updates (only needed once) 62 62 $old_version_options = get_option( 't4bnt_general' ); -
t4b-news-ticker/trunk/readme.txt
r3303712 r3396714 24 24 25 25 ### Flexible Content Sources 26 What sets T4B News Ticker apart is its flexibility in content sources. You can display tickers based on specific post categories, relevant tags, or even craft custom text messages with associated links. Simply compose your custom content using the default WordPress post editor.26 What sets T4B News Ticker apart is its flexibility in content sources. You can display tickers based on specific post categories, relevant tags, or even craft custom text messages with associated links. Compose your custom content using the default WordPress post editor. 27 27 28 28 ### Complete Control Over Appearance 29 Take fullcontrol over the ticker's appearance and behavior. Adjust the scrolling speed to match your preferences and fine-tune the typography to ensure the ticker seamlessly blends with your website's design. Easily integrate the ticker into your posts, pages, or theme files using the provided shortcode.29 Take complete control over the ticker's appearance and behavior. Adjust the scrolling speed to match your preferences and fine-tune the typography to ensure the ticker seamlessly blends with your website's design. Easily integrate the ticker into your posts, pages, or theme files using the provided shortcode. 30 30 31 31 <blockquote> … … 80 80 == Upgrade Notice == 81 81 82 = 1.4.3 = 83 This is a routine update to ensure full compatibility with WordPress 6.8.3 and enhance the plugin backend appearance. 84 85 - Added guidance for easily adding the ticker shortcode to all pages. 86 - Minor CSS improvements for a more polished backend experience. 87 88 No changes affect the frontend functionality. Updating is recommended to benefit from the latest improvements. 89 82 90 = 1.4.2 = 83 91 This update improves ticker initialization in all themes, including block/FSE ones like Twenty Twenty-Four. Please update to ensure proper functionality and reliable animation across different WordPress setups. … … 95 103 This update includes a fix for the "Show in Homepage only" option, ensuring the ticker displays correctly on the homepage. It also resolves an issue where the ticker was not showing on tag and category archive pages. Please update to ensure proper functionality. 96 104 97 = 1.3.2 =98 This version updates the plugin code to align with WordPress coding standards, improving maintainability and compatibility. It also includes a fix for a minor CSS issue. Update now for a cleaner and more robust codebase.99 100 105 101 106 == Changelog == 107 108 = 1.4.3 (16 NOvember 2025) = 109 * `Improved:` Backend CSS for a cleaner and more professional look. 110 * `Added:` Guidance on how to add the ticker shortcode to all pages. 111 * `Tested:` Full compatibility with WordPress 6.8.3. 112 * `Routine:` General maintenance and minor enhancements. 102 113 103 114 = 1.4.2 (30 May 2025) = -
t4b-news-ticker/trunk/settings/t4bnt-class.settings-api.php
r3303710 r3396714 12 12 * @example example/oop-example.php How to use the class 13 13 * 14 * @package T4B News Ticker v1.4. 2 - 30 May, 202514 * @package T4B News Ticker v1.4.3 - 16 November, 2025 15 15 * @link https://www.realwebcare.com/ 16 16 */ -
t4b-news-ticker/trunk/settings/ticker-settings.php
r3303710 r3396714 7 7 * It also includes functionality for displaying a help page, adding menu items, and retrieving pages. 8 8 * 9 * @package T4B News Ticker v1.4. 2 - 30 May, 20259 * @package T4B News Ticker v1.4.3 - 16 November, 2025 10 10 * @link https://www.realwebcare.com/ 11 11 */
Note: See TracChangeset
for help on using the changeset viewer.