/** * Hook the sub menu items */ public function hook_submenu_items() { $pages = array(); $pages['upload'] = array('label' => __('Upload photo(s)', 'apg'), 'capability' => 'publish_posts', 'action' => 'apg_upload', 'callback' => array($this, 'show_page')); $pages['settings'] = array('label' => __('Settings', 'apg'), 'capability' => 'manage_options', 'action' => 'apg_settings', 'callback' => array($this, 'show_page')); if (Helper::is_premium() === false) { $pages['addons'] = array('label' => '<span style="color:#d15b28 !important;font-weight: 600;">' . __('Get Premium', 'apg') . '</span>', 'capability' => 'manage_options', 'action' => 'apg_addons', 'callback' => array($this, 'show_page')); } array_merge($pages, apply_filters('apg_submenu_items', array())); /** * Loop through the pages and add them as a submenu item */ foreach ($pages as $key => $item) { add_submenu_page('edit.php?post_type=apg_photo_albums', $item['label'], $item['label'], $item['capability'], $item['action'], $item['callback']); } }
_e('Get it now', 'apg'); ?> »</a></p> </div> <?php } else { do_action('apg_premium_lightbox'); } ?> <h3><?php _e('Filmstrip', 'apg'); ?> </h3> <?php if (\APG\Core\Helper::is_premium() === false) { ?> <div class="card"> <img src="<?php echo plugins_url('assets/backend/images/filmstrip.png', APG_ROOT_PATH); ?> " align="left" height="185" style="margin-right: 10px;" /> <h2><?php _e('Enable the filmstrip', 'apg'); ?> </h2> <p><?php _e('This is one of the premium features for Awesome Photo Gallery. In order to activate this functionality with premium support and updates, you need to order and download it at our webshop.', 'apg'); ?>