Plugin Directory

Changeset 1508426


Ignore:
Timestamp:
10/04/2016 11:26:38 PM (9 years ago)
Author:
Rudloff
Message:

Import from https://github.com/StrasWeb/events-manager-osm.git

Location:
events-manager-osm
Files:
49 added
3 edited

Legend:

Unmodified
Added
Removed
  • events-manager-osm/trunk/.gitignore

    r1365283 r1508426  
    1 vendor/
     1node_modules/
     2coverage/
     3clover.xml
  • events-manager-osm/trunk/composer.json

    r1365283 r1508426  
    11{
    2     "name": "strasweb/events-manager-osm",
    3     "type": "wordpress-plugin",
    4     "description": "Use OpenStreetMap in WordPress Events Manager",
    5     "license": "GPL-2.0"
     2  "name": "strasweb/events-manager-osm",
     3  "type": "wordpress-plugin",
     4  "description": "Use OpenStreetMap in WordPress Events Manager",
     5  "license": "GPL-2.0",
     6  "require-dev": {
     7    "symfony/var-dumper": "~3.1.0",
     8    "squizlabs/php_codesniffer": "~2.6.2",
     9    "phpunit/phpunit": "~5.5.2",
     10    "10up/wp_mock": "~0.1.0"
     11  },
     12  "autoload": {
     13    "psr-4": {
     14      "EventsManagerOsm\\": "classes/"
     15    }
     16  }
    617}
  • events-manager-osm/trunk/events-manager-osm.php

    r1028371 r1508426  
    11<?php
    22/**
    3  * Use OpenStreetMap in WordPress Events Manager
    4  * 
     3 * Use OpenStreetMap in WordPress Events Manager.
     4 *
    55 * PHP Version 5.4
    6  * 
     6 *
    77 * @category Plugin
    8  * @package  EventsManagerOSM
     8 *
    99 * @author   StrasWeb <contact@strasweb.fr>
    1010 * @license  GPL http://www.gnu.org/licenses/gpl.html
     11 *
    1112 * @link     https://github.com/StrasWeb/events-manager-osm
    1213 */
     
    1617Description: Use OpenStreetMap in WordPress Events Manager
    1718Author: StrasWeb
    18 Version: 0.2
     19Version: 0.2.1
    1920Author URI: https://strasweb.fr/
    2021*/
    2122
    22 /**
    23  * Load the JavaScript
    24  *
    25  * @return void
    26  * */
    27 function loadOSMJS()
    28 {
    29     wp_enqueue_script(
    30         'events-manager-osm',
    31         plugin_dir_url(__FILE__).'/events-manager-osm.js',
    32         array('jquery')
    33     );
    34 }
     23require_once __DIR__.'/vendor/autoload.php';
    3524
    36 add_action('wp_head', 'loadOSMJS');
    37 
    38 ?>
     25add_action('wp_enqueue_scripts', ['EventsManagerOsm\ScriptLoader', 'init']);
Note: See TracChangeset for help on using the changeset viewer.