css
2 weeks ago
images
2 weeks ago
js
2 weeks ago
partials
2 weeks ago
class-shortcodes-ultimate-admin-about.php
2 weeks ago
class-shortcodes-ultimate-admin-pro-features.php
2 weeks ago
class-shortcodes-ultimate-admin-settings.php
2 weeks ago
class-shortcodes-ultimate-admin-top-level.php
2 weeks ago
class-shortcodes-ultimate-admin.php
2 weeks ago
class-shortcodes-ultimate-notice-rate.php
2 weeks ago
class-shortcodes-ultimate-notice-unsafe-features.php
2 weeks ago
class-shortcodes-ultimate-notice.php
2 weeks ago
class-shortcodes-ultimate-widget.php
2 weeks ago
class-shortcodes-ultimate-admin-about.php
73 lines
| 1 | <?php |
| 2 | |
| 3 | final class Shortcodes_Ultimate_Admin_About extends Shortcodes_Ultimate_Admin { |
| 4 | |
| 5 | public function add_menu_pages() { |
| 6 | |
| 7 | /** |
| 8 | * Submenu: About |
| 9 | * admin.php?page=shortcodes-ultimate |
| 10 | */ |
| 11 | $this->add_submenu_page( |
| 12 | rtrim( $this->plugin_prefix, '-_' ), |
| 13 | __( 'About', 'shortcodes-ultimate' ), |
| 14 | __( 'About', 'shortcodes-ultimate' ), |
| 15 | $this->get_capability(), |
| 16 | rtrim( $this->plugin_prefix, '-_' ), |
| 17 | array( $this, 'the_menu_page' ) |
| 18 | ); |
| 19 | |
| 20 | } |
| 21 | |
| 22 | public function the_menu_page() { |
| 23 | $this->the_template( 'admin/partials/pages/about' ); |
| 24 | } |
| 25 | |
| 26 | public function enqueue_scripts() { |
| 27 | |
| 28 | if ( ! $this->is_component_page() ) { |
| 29 | return; |
| 30 | } |
| 31 | |
| 32 | wp_enqueue_script( |
| 33 | 'vimeo', |
| 34 | 'https://player.vimeo.com/api/player.js', |
| 35 | array(), |
| 36 | '2.15.0', |
| 37 | true |
| 38 | ); |
| 39 | |
| 40 | wp_enqueue_script( |
| 41 | 'shortcodes-ultimate-admin-about', |
| 42 | plugins_url( 'js/about/index.js', __FILE__ ), |
| 43 | array( 'vimeo' ), |
| 44 | filemtime( plugin_dir_path( __FILE__ ) . 'js/about/index.js' ), |
| 45 | true |
| 46 | ); |
| 47 | |
| 48 | wp_enqueue_style( |
| 49 | 'shortcodes-ultimate-admin', |
| 50 | plugins_url( 'css/admin.css', __FILE__ ), |
| 51 | false, |
| 52 | filemtime( plugin_dir_path( __FILE__ ) . 'css/admin.css' ) |
| 53 | ); |
| 54 | |
| 55 | } |
| 56 | |
| 57 | public function plugin_action_links( $links ) { |
| 58 | |
| 59 | array_unshift( |
| 60 | $links, |
| 61 | sprintf( |
| 62 | '<a href="%s">%s</a>', |
| 63 | esc_attr( $this->get_component_url() ), |
| 64 | esc_html( __( 'About', 'shortcodes-ultimate' ) ) |
| 65 | ) |
| 66 | ); |
| 67 | |
| 68 | return $links; |
| 69 | |
| 70 | } |
| 71 | |
| 72 | } |
| 73 |