Blocks
2 years ago
Contracts
5 years ago
Database
2 years ago
Integrations
2 years ago
Libraries
5 years ago
Models
2 years ago
Seeds
4 years ago
Services
2 years ago
Support
2 years ago
config
2 years ago
Activator.php
5 years ago
Attachment.php
4 years ago
Controller.php
5 years ago
Core.php
5 years ago
Deactivator.php
3 years ago
Factory.php
5 years ago
Files.php
5 years ago
Playlist.php
2 years ago
Plugin.php
5 years ago
Requirements.php
4 years ago
support.php
4 years ago
support.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | if (!function_exists('presto_player')) : |
| 4 | function presto_player($id) |
| 5 | { |
| 6 | return do_shortcode('[presto_player id=' . $id . ']'); |
| 7 | } |
| 8 | endif; |
| 9 | |
| 10 | |
| 11 | /** |
| 12 | * Just in case Ray is not installed |
| 13 | * but forgot to remove it. |
| 14 | */ |
| 15 | if(!function_exists('ray')) { |
| 16 | class Presto_Ray_Dummy_Class { |
| 17 | function __call($funName, $arguments) { |
| 18 | return new Presto_Ray_Dummy_Class(); |
| 19 | } |
| 20 | |
| 21 | static function ray(...$args) { |
| 22 | return new Presto_Ray_Dummy_Class(); |
| 23 | } |
| 24 | |
| 25 | function __get($propertyName) { |
| 26 | return null; |
| 27 | } |
| 28 | |
| 29 | function __set($property, $value) { |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | function ray(...$args) { |
| 34 | return Presto_Ray_Dummy_Class::ray(...$args); |
| 35 | } |
| 36 | } |
| 37 |