Files
wp-strava/wp-strava.php
T

46 lines
1.8 KiB
PHP
Raw Normal View History

2011-08-23 09:34:28 -05:00
<?php
2018-01-26 13:34:37 -06:00
/**
2015-05-11 22:28:33 -05:00
* Plugin Name: WP Strava
2017-05-26 11:10:39 -05:00
* Plugin URI: https://wordpress.org/plugins/wp-strava/
* Description: Show your strava.com activity on your WordPress site. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license.
2018-03-23 11:13:08 -05:00
* Version: 1.5.0-rc2
* Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott
2015-05-11 22:28:33 -05:00
* License: GPL2
2017-05-26 10:53:24 -05:00
* Text Domain: wp-strava
* Domain Path: /lang
2015-05-11 22:28:33 -05:00
*/
2017-05-26 10:53:24 -05:00
/* Copyright 2017 Carlos Santa Cruz (email : cmanon at gmail dot com)
2011-08-23 09:34:28 -05:00
This program is free software; you can redistribute it and/or modify
2017-05-26 10:53:24 -05:00
it under the terms of the GNU General Public License, version 2, as
2011-08-23 09:34:28 -05:00
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
2017-05-26 10:53:24 -05:00
define( 'WPSTRAVA_PLUGIN_DIR', trailingslashit( dirname( __FILE__ ) ) );
2013-02-03 20:38:55 -06:00
define( 'WPSTRAVA_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
2017-05-26 10:53:24 -05:00
define( 'WPSTRAVA_PLUGIN_NAME', plugin_basename( __FILE__ ) );
if ( ! defined( 'WPSTRAVA_DEBUG' ) ) {
define( 'WPSTRAVA_DEBUG', false );
}
2011-08-23 09:34:28 -05:00
2013-02-03 20:38:55 -06:00
// Load the multilingual support.
2017-05-26 10:53:24 -05:00
function wp_strava_load_plugin_textdomain() {
load_plugin_textdomain( 'wp-strava', false, WPSTRAVA_PLUGIN_DIR . 'lang/' );
2011-08-23 09:34:28 -05:00
}
2017-05-26 10:53:24 -05:00
add_action( 'plugins_loaded', 'wp_strava_load_plugin_textdomain' );
2011-08-23 09:34:28 -05:00
require_once WPSTRAVA_PLUGIN_DIR . 'vendor/autoload.php';
require_once WPSTRAVA_PLUGIN_DIR . 'lib/WPStrava.php';
$wpstrava = WPStrava::get_instance();