Changeset 3453573
- Timestamp:
- 02/04/2026 07:38:24 AM (2 weeks ago)
- Location:
- investi/trunk
- Files:
-
- 3 edited
-
includes/widgets.php (modified) (10 diffs)
-
investi.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
investi/trunk/includes/widgets.php
r3420912 r3453573 102 102 103 103 function investi_announcements_summary_v2_func( $atts ) { 104 $color = $atts['color'] ?? '';; 104 $color = $atts['color'] ?? '';; 105 105 $dateFormat = $atts['date-format'] ?? ''; 106 106 if(empty($dateFormat)){ 107 107 $dateFormat = "dd MMM yyyy"; 108 108 } 109 $locale = $atts['locale'] ?? ''; 110 if(!empty($locale)){ 111 $locale = 'data-investi-locale="' . htmlspecialchars($locale, ENT_QUOTES, 'UTF-8') . '"'; 112 } 109 113 $numAnnouncements = $atts['num-announcements'] ?? ''; 110 114 111 115 $filterRegex = $atts['filter-regex'] ?? ''; 112 116 $header = investi_announcement_header($atts); 113 117 $searchBox = investi_is_flag('searchbox', $atts ) ? 'data-investi-searchbox' : ''; 114 118 return " 115 119 116 120 <style> 117 121 118 122 .investi-announcement-headline a:hover { 119 123 color: $color; 120 124 } 121 125 122 126 </style> 123 127 124 128 $header 125 129 126 130 <div class=\"investi-announcements-summary-v2\" 127 131 data-investi-num-announcements=\"$numAnnouncements\" 128 132 data-investi-date-format=\"$dateFormat\" 133 $locale 129 134 data-investi-filter-regex=\"$filterRegex\" 130 135 data-investi-no-data-message=\"No announcements\" … … 193 198 function investi_announcements_tab_func( $atts ) { 194 199 $color = $atts['color'] ?? ''; 195 $lightColor = $atts['light-color'] ?? ''; 196 $startYear = $atts['start-year'] ?? ''; 200 $lightColor = $atts['light-color'] ?? ''; 201 $startYear = $atts['start-year'] ?? ''; 197 202 198 203 $dateFormat = $atts['date-format'] ?? ''; … … 200 205 $dateFormat = "dd MMM yyyy"; 201 206 } 202 207 208 $locale = $atts['locale'] ?? ''; 209 if(!empty($locale)){ 210 $locale = 'data-investi-locale="' . htmlspecialchars($locale, ENT_QUOTES, 'UTF-8') . '"'; 211 } 212 203 213 if(empty($color)){ 204 214 $color = "#505050"; … … 213 223 $maximumNumYears = $atts['maximum-num-years'] ?? ''; 214 224 $searchBox = investi_is_flag('searchbox', $atts ) ? 'data-investi-searchbox' : ''; 215 225 216 226 $includeSelectForAdditionalYears = get_investi_attr('include-select-for-additional-years', $atts); 217 227 … … 259 269 <div class=\"investi-announcements-tab\" 260 270 data-investi-date-format=\"$dateFormat\" 271 $locale 261 272 data-investi-filter-regex=\"$filterRegex\" 262 273 data-investi-maximum-num-years=\"$maximumNumYears\" … … 374 385 375 386 function investi_interactive_announcements_func( $atts ) { 376 387 377 388 $dateFormat = $atts['date-format'] ?? '';; 378 389 if(empty($dateFormat)){ 379 390 $dateFormat = "dd MMM yyyy"; 380 391 } 392 $locale = $atts['locale'] ?? ''; 393 if(!empty($locale)){ 394 $locale = 'data-investi-locale="' . htmlspecialchars($locale, ENT_QUOTES, 'UTF-8') . '"'; 395 } 381 396 $announcementsPerPage = $atts['announcements-per-page'] ?? ''; 382 397 $headerTitle = $atts['announcement-header-title'] ?? ' '; 383 398 $commentsWording = $atts['comments-wording'] ?? ''; 384 399 385 400 $filterRegex = $atts['filter-regex'] ?? ''; 386 401 387 402 $searchBox = investi_is_flag('searchbox', $atts ) ? 'data-investi-searchbox' : ''; 388 403 $noComments = investi_is_flag('no-comments', $atts ) ? 'data-investi-no-comments' : ''; 389 404 390 405 return " 391 392 406 407 393 408 <div class=\"investi-interactive-announcements\" 394 409 data-investi-announcements-per-page=\"$announcementsPerPage\" … … 397 412 data-investi-filter-regex=\"$filterRegex\" 398 413 data-investi-announcement-date-format=\"$dateFormat\" 414 $locale 399 415 $searchBox 400 416 $noComments … … 418 434 419 435 function investi_announcements_thumbnail_internal( $atts, $widgetName) { 420 421 436 437 422 438 $dateFormat = $atts['date-format'] ?? ''; 423 439 if(empty($dateFormat)){ 424 440 $dateFormat = "dd MMM yyyy"; 425 441 } 442 $locale = $atts['locale'] ?? ''; 443 if(!empty($locale)){ 444 $locale = 'data-investi-locale="' . htmlspecialchars($locale, ENT_QUOTES, 'UTF-8') . '"'; 445 } 426 446 $announcementsPerPage = $atts['announcements-per-page'] ?? ''; 427 447 $headerTitle = $atts['announcement-header-title'] ?? ' '; 428 448 $commentsWording = $atts['comments-wording'] ?? ''; 429 449 430 450 $filterRegex = $atts['filter-regex'] ?? ''; 431 451 432 452 // echo 'foo'.$atts['image-width']; 433 453 … … 441 461 $imageHeight = 'data-investi-thumbnail-image-height='.$imageHeight; 442 462 } 443 463 444 464 $numAnnouncements = $atts['num-announcements'] ?? ''; 445 465 if(!empty($numAnnouncements)){ … … 448 468 449 469 return " 450 451 470 471 452 472 <div class=\"$widgetName\" 453 473 454 474 data-investi-filter-regex=\"$filterRegex\" 455 475 data-investi-announcement-date-format=\"$dateFormat\" 476 $locale 456 477 $imageWidth 457 478 $imageHeight -
investi/trunk/investi.php
r3420912 r3453573 7 7 * Plugin URI: https://web.investi.com.au/wordpress-plugin 8 8 * Description: Share Price Charts and Widgets. Our comprehensive and timely data quickly summarises your current and historical share price performance,displaying charts and widgets to enhance engagement with your investor audience. 9 * Version: 1.0.2 29 * Version: 1.0.23 10 10 * Author: Investi Services Pty Ltd 11 11 * Author URI: https://web.investi.com.au -
investi/trunk/readme.txt
r3420912 r3453573 6 6 Requires PHP: 7.2 7 7 Tested up to: 6.8 8 Stable tag: 1.0.2 29 Version: 1.0.2 28 Stable tag: 1.0.23 9 Version: 1.0.23 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 49 49 == Changelog == 50 51 = 1.0.23 = 52 * add 'locale' attribute support to announcement widgets 50 53 51 54 = 1.0.22 =
Note: See TracChangeset
for help on using the changeset viewer.