File manager - Edit - /home/adiance/public_html/beta/wp-content/plugins/wp-google-map-plugin/modules/map/views/manage.php
Back
<?php /** * Manage Maps * @package Maps */ $form = new WPGMP_Template(); echo $form->show_header(); if ( class_exists( 'WP_List_Table_Helper' ) and ! class_exists( 'Wpgmp_Maps_Table' ) ) { /** * Display maps manager. */ class Wpgmp_Maps_Table extends WP_List_Table_Helper { /** * Intialize manage category table. * @param array $tableinfo Table's properties. */ public function __construct($tableinfo) { parent::__construct( $tableinfo ); } /** * Output for Shortcode column. * @param array $item Map Row. */ public function column_shortcodes($item) { echo '[put_wpgm id='.$item->map_id.']'; } /** * Clone of the map. * @param integer $item Map ID. */ public function copy() { $map_id = intval( $_GET['map_id'] ); $modelFactory = new WPGMP_Model(); $map_obj = $modelFactory->create_object( 'map' ); $map = $map_obj->copy( $map_id ); $this->prepare_items(); $this->listing(); } } global $wpdb; $columns = array( 'map_title' => 'Title', 'map_width' => 'Map Width', 'map_height' => 'Map Height', 'map_zoom_level' => 'Map Zoom Level', 'map_type' => 'Map Type', 'shortcodes' => 'Shortcodes', ); $sortable = array( 'map_title','map_width','map_height','map_zoom_level','map_type' ); $tableinfo = array( 'table' => $wpdb->prefix.'create_map', 'textdomain' => 'wpgmp_google_map', 'singular_label' => 'map', 'plural_label' => 'maps', 'admin_listing_page_name' => 'wpgmp_manage_map', 'admin_add_page_name' => 'wpgmp_form_map', 'primary_col' => 'map_id', 'columns' => $columns, 'sortable' => $sortable, 'per_page' => 20, 'actions' => array( 'edit','delete','copy' ), 'bulk_actions' => array( 'delete' => esc_html__( 'Delete', 'wpgmp-google-map' ) ), 'col_showing_links' => 'map_title', 'searchExclude' => array( 'shortcodes' ), 'translation' => array( 'manage_heading' => esc_html__( 'Manage Maps', 'wpgmp_google_map' ), 'add_button' => esc_html__( 'Add Map', 'wpgmp_google_map' ), 'delete_msg' => esc_html__( 'Maps deleted successfully', 'wpgmp_google_map' ), 'insert_msg' => esc_html__( 'Map added successfully', 'wpgmp_google_map' ), 'update_msg' => esc_html__( 'Map updated successfully', 'wpgmp_google_map' ), ) ); $obj = new Wpgmp_Maps_Table( $tableinfo ); }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings