/** * Load add marker page template * * @since 1.0.0 */ public function template_add() { if (current_user_can(static::REQUIRED_CAPABILITY)) { $groups = LeafletLayers_Model_Admin::get_groups(); $pepito = wp_create_nonce('add_marker'); echo static::render_template('markers/add.php', array('page_title' => __('Add a marker', LeafletLayers::PLUGIN_ID), 'pepito' => $pepito, 'markers_groups' => $groups, 'domain' => LeafletLayers::PLUGIN_ID)); } else { wp_die(__('Access denied.')); } }
private function table_data() { return LeafletLayers_Model_Admin::get_groups(); }