| @@ -1,34 +1,29 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: wp-insert |
| 4 | -Plugin URI: http://www.wp-insert.smartlogix.co.in/ | |
| 5 | -Description: The ultimate wordpress plugin | |
| 6 | -Version: 1.7.1 | |
| 4 | +Plugin URI: http://www.smartlogix.co.in/ | |
| 5 | +Description: Manage Ads,Feeds,Tracking etc | |
| 6 | +Version: 1.0 | |
| 7 | 7 | Author: Namith Jawahar |
| 8 | 8 | Author URI: http://www.smartlogix.co.in/ |
| 9 | -WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin | |
| 9 | + | |
| 10 | +Use wp-insert to insert every kind of code you will ever need to insert into your blog. | |
| 10 | 11 | */ |
| 11 | 12 | |
| 12 | -/* Copyright 2009 NAMITH JAWAHAR (website : http://www.smartlogix.co.in) | |
| 13 | +add_action('admin_menu', 'smart_add_menu'); | |
| 13 | 14 | |
| 14 | - This program is free software; you can redistribute it and/or modify | |
| 15 | - it under the terms of the GNU General Public License as published by | |
| 16 | - the Free Software Foundation; either version 2 of the License, or | |
| 17 | - (at your option) any later version. | |
| 15 | +// action function for above hook | |
| 16 | +function smart_add_menu() { | |
| 17 | + add_menu_page('Wp-Insert', 'Wp-Insert', 8, __FILE__); | |
| 18 | + add_submenu_page(__FILE__, 'wp-insert', 'Manage Ads', 8, __FILE__, 'smart_add_adspage'); | |
| 19 | + add_submenu_page(__FILE__, 'wp-insert', 'Manage Feeds', 8, 'Manage Feeds', 'smart_add_feedspage'); | |
| 20 | + add_submenu_page(__FILE__, 'wp-insert', 'Tracking Codes', 8, 'Tracking Codes', 'smart_add_analytics'); | |
| 21 | + //add_submenu_page(__FILE__, 'wp-insert', 'SEO Optimization', 8, 'SEO', 'smart_add_SEOpages'); | |
| 22 | + //add_submenu_page(__FILE__, 'wp-insert', 'Social Bookmarking', 8, 'Social Bookmarking', 'smart_add_socialpages'); | |
| 23 | +} | |
| 18 | 24 | |
| 19 | - This program is distributed in the hope that it will be useful, | |
| 20 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 21 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22 | - GNU General Public License for more details. | |
| 23 | - | |
| 24 | - You should have received a copy of the GNU General Public License | |
| 25 | - along with this program; if not, write to the Free Software | |
| 26 | - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
| 27 | -*/ | |
| 28 | -require_once (dirname(__FILE__) . '/includes/essentials.php'); | |
| 29 | - | |
| 30 | 25 | require_once (dirname(__FILE__) . '/support/support.php'); |
| 26 | +require_once (dirname(__FILE__) . '/ads/insert-ads.php'); | |
| 31 | 27 | require_once (dirname(__FILE__) . '/feeds/insert-feeds.php'); |
| 32 | 28 | require_once (dirname(__FILE__) . '/tracking/insert-analytics.php'); |
| 33 | -require_once (dirname(__FILE__) . '/wysiwyg/insert-wysiwyg.php'); | |
| 34 | -?> | |
| 29 | +?> | |