| @@ -1,10 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +defined('ABSPATH') || die('Restricted Access'); | |
| 4 | + | |
| 5 | +// Front-end breadcrumb for Joomla | |
| 3 | 6 | function acym_addBreadcrumb(string $title, string $link = ''): void |
| 4 | 7 | { |
| 5 | 8 | } |
| 6 | 9 | |
| 10 | +// Page title modification for Joomla | |
| 7 | 11 | function acym_setPageTitle(string $title): void |
| 8 | 12 | { |
| 9 | 13 | } |
| 10 | 14 | |
| @@ -9,16 +13,12 @@ | ||
| 9 | 13 | } |
| 10 | 14 | |
| 11 | 15 | function acym_isLeftMenuNecessary(): bool |
| 12 | 16 | { |
| 17 | + // Already one in WP | |
| 13 | 18 | return false; |
| 14 | 19 | } |
| 15 | 20 | |
| 16 | -function acym_getLeftMenu(string $name): string | |
| 17 | -{ | |
| 18 | - return ''; | |
| 19 | -} | |
| 20 | - | |
| 21 | 21 | function acym_isPluginActive(string $plugin, string $family = 'system'): bool |
| 22 | 22 | { |
| 23 | 23 | return true; |
| 24 | 24 | } |
| @@ -59,5 +59,10 @@ | ||
| 59 | 59 | return true === wp_unschedule_event($timestamp, $options['name']); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | return true; |
| 63 | +} | |
| 64 | + | |
| 65 | +function acym_rand(int $min, int $max): int | |
| 66 | +{ | |
| 67 | + return wp_rand($min, $max); | |
| 63 | 68 | } |