Plugin Directory

Changeset 1367321


Ignore:
Timestamp:
03/09/2016 07:13:53 AM (10 years ago)
Author:
ank91
Message:

updated trunk 1.7.5

Location:
ank-google-map/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ank-google-map/trunk/ank-google-map.php

    r1306786 r1367321  
    11<?php
    2 /**
    3  * Main php file for 'Ank_Google_Map' plugin
    4  * Adding namespace on top, no content allowed before namespace declaration
    5  */
    6 namespace Ank91\Plugins\Ank_Google_Map;
    7 
    8 ?><?php
    92/*
    103Plugin Name: Ank Google Map
    114Plugin URI: https://github.com/ank91/ank-google-map
    125Description: Simple, light weight, and non-bloated WordPress Google Map Plugin. Written in pure javascript, no jQuery at all, responsive, configurable, no ads and 100% Free of cost.
    13 Version: 1.7.4
     6Version: 1.7.5
    147Author: Ankur Kumar
    158Author URI: http://ank91.github.io/
     
    2215if (!defined('ABSPATH')) die;
    2316
    24 define('AGM_PLUGIN_VERSION', '1.7.4');
     17define('AGM_PLUGIN_VERSION', '1.7.5');
    2518define('AGM_BASE_FILE', __FILE__);
    2619
    27 /**
    28  * Registering class auto-loader
    29  * @requires php v5.3.0
    30  */
    31 spl_autoload_register(__NAMESPACE__ . '\ank_google_map_autoloader');
    32 
    33 /**
    34  * Auto-loader for our plugin classes
    35  * @param $class_name
    36  * @throws \Exception
    37  */
    38 function ank_google_map_autoloader($class_name)
    39 {
    40     //make sure this loader work only for this plugin's related classes
    41     if (false !== strpos($class_name, __NAMESPACE__)) {
    42         $cls = strtolower(str_replace(__NAMESPACE__ . '\Ank_Google_Map_', '', $class_name));
    43         $cls_file = __DIR__ . "/inc/class-" . $cls . ".php";
    44         if (is_readable($cls_file)) {
    45             require_once($cls_file);
    46         } else {
    47             throw new \Exception('Class file - ' . esc_html($cls_file) . ' not found');
    48         }
    49 
    50     }
    51 }
    5220
    5321if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) {
    54     new Ank_Google_Map_Admin();
     22    require __DIR__ . '/inc/class-admin.php';
     23    new Ank91\Plugins\Ank_Google_Map\Ank_Google_Map_Admin();
    5524
    5625} else {
    57     new Ank_Google_Map_FrontEnd();
     26    require __DIR__ . '/inc/class-frontend.php';
     27    new Ank91\Plugins\Ank_Google_Map\Ank_Google_Map_FrontEnd();
    5828}
  • ank-google-map/trunk/inc/class-admin.php

    r1306786 r1367321  
    118118    function add_submenu_page()
    119119    {
    120         $page_hook_suffix = add_submenu_page('options-general.php', 'Ank Google Map', 'Ank Google Map', 'manage_options', self::PLUGIN_SLUG, array($this, 'load_option_page'));
     120        $page_hook_suffix = add_submenu_page('options-general.php', 'Ank Google Map', 'Google Map', 'manage_options', self::PLUGIN_SLUG, array($this, 'load_option_page'));
    121121        /*
    122122        * Add the color picker js  + css file to option page
     
    185185        $file_path = plugin_dir_path(AGM_BASE_FILE) . 'views/options_page.php';
    186186
    187         if (file_exists($file_path)) {
     187        if (is_readable($file_path)) {
    188188            require $file_path;
    189189        } else {
  • ank-google-map/trunk/index.php

    r1306786 r1367321  
    11<?php
    22// Silence is golden.
    3 header( 'HTTP/1.0 403 Forbidden' );
  • ank-google-map/trunk/readme.txt

    r1306786 r1367321  
    22Tags: google map, responsive, light weight, ank, free, easy map
    33Requires at least: 3.8.0
    4 Tested up to: 4.4.0
    5 Stable tag: 1.7.4
     4Tested up to: 4.4.2
     5Stable tag: 1.7.5
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • ank-google-map/trunk/views/.htaccess

    r1306786 r1367321  
    1 # Prevent direct access of php files in this folder
     1# Prevent direct access to php files in this folder
    22<FilesMatch "\.(?i:php)$">
    33  <IfModule !mod_authz_core.c>
  • ank-google-map/trunk/views/options_page.php

    r1306786 r1367321  
    238238    <!--dev info ends-->
    239239    <?php if (WP_DEBUG == true) {
    240         echo '<hr><p><h5>Showing Debugging Info:</h5>';
     240        echo '<hr><p><h5>Showing Debugging Info:</h5><pre>';
    241241        var_dump($options);
    242         echo '</p><hr>';
     242        echo '</pre></p><hr>';
    243243    } ?>
    244244</div><!-- end wrap-->
    245 <script type="text/javascript">
    246     window.jQuery || console.error('Could not find jQuery. Ank Google Map option page needs jQuery to work.')
    247 </script>
Note: See TracChangeset for help on using the changeset viewer.