Permalink
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (62 sloc) 1.89 KB
<?php
/*
Plugin Name: SEO Auto Linker
Plugin URI: http://pmg.co/seo-auto-linker
Description: Allows you to automatically link terms with in your post, page or custom post type content.
Version: 0.9.1
Author: Christopher Davis
Author URI: http://christopherdavis.me
Text Domain: seoal
Domain Path: /lang
Copyright 2012 Christopher Davis, Performance Media Group <seo@pmg.co>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
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
*/
define('SEOAL_PATH', plugin_dir_path(__FILE__));
define('SEOAL_URL', plugin_dir_url(__FILE__));
require_once(SEOAL_PATH . 'inc/base.php');
require_once(SEOAL_PATH . 'inc/post-type.php');
if(is_admin())
{
require_once(SEOAL_PATH . 'inc/admin.php');
}
else
{
require_once(SEOAL_PATH . 'inc/front.php');
}
add_action('init', 'seoal_load_textdomain');
/*
* Loads the plugin's text domain for translation
*
* @uses load_plugin_textdomain
* @since 0.7
*/
function seoal_load_textdomain()
{
load_plugin_textdomain(
'seoal',
false,
dirname(plugin_basename(__FILE__)) . '/lang/'
);
}
add_action('plugins_loaded', 'seoal_loaded');
/**
* Provides an always safe action into which to hook for plugins that extend
* SEO Auto Linker.
*
* @since 0.8.2
* @uses do_action
* @return null
*/
function seoal_loaded()
{
do_action('seoal_loaded');
}