| @@ -1,34 +1,31 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Plugin Name: Wp-Insert | |
| 4 | - * Plugin URI: https://wpinsert.smartlogix.co.in/ | |
| 5 | - * Description: WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress | |
| 6 | - * Requires at least: 6.3 | |
| 7 | - * Requires PHP: 7.4 | |
| 8 | - * Version: 2.6.0 | |
| 9 | - * Author: namithjawahar | |
| 10 | - * Author URI: http://www.smartlogix.co.in/ | |
| 11 | - * License: GPLv2 or later | |
| 12 | - * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
| 13 | - * Text Domain: wp-insert | |
| 14 | - * | |
| 15 | - * @package wp-insert | |
| 16 | - */ | |
| 17 | - | |
| 18 | -/*Definitions*/ | |
| 19 | -if ( ! defined( 'WP_INSERT_URL' ) ) { | |
| 20 | - define( 'WP_INSERT_URL', plugin_dir_url( __FILE__ ) ); | |
| 21 | -} | |
| 22 | -if ( ! defined( 'WP_INSERT_DIR' ) ) { | |
| 23 | - define( 'WP_INSERT_DIR', plugin_dir_path( __FILE__ ) ); | |
| 24 | -} | |
| 25 | -if ( ! defined( 'WP_INSERT_VERSION' ) ) { | |
| 26 | - define( 'WP_INSERT_VERSION', '2.6.0' ); | |
| 27 | -} | |
| 28 | -if ( ! defined( 'WP_INSERT_DEBUG' ) ) { | |
| 29 | - define( 'WP_INSERT_DEBUG', false ); | |
| 30 | -} | |
| 31 | -/*Includes*/ | |
| 32 | - | |
| 33 | -require_once __DIR__ . '/includes/modules/core/modules.php'; | |
| 34 | -require_once __DIR__ . '/includes/modules/general/modules.php'; | |
| 1 | +<?php | |
| 2 | +/* | |
| 3 | +Plugin Name: wp-insert | |
| 4 | +Plugin URI: http://www.smartlogix.co.in/ | |
| 5 | +Description: Insert your ad code anywhere around your content. | |
| 6 | +Version: 1.1 | |
| 7 | +Author: Namith Jawahar | |
| 8 | +Author URI: http://www.smartlogix.co.in/ | |
| 9 | + | |
| 10 | +WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin | |
| 11 | +*/ | |
| 12 | + | |
| 13 | +add_action('admin_menu', 'smart_add_menu'); | |
| 14 | + | |
| 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', 'WYSIWYG Editor', 8, 'WYSIWYG Editor', 'smart_add_wysiwyg_pages'); | |
| 22 | + //add_submenu_page(__FILE__, 'wp-insert', 'Social Bookmarking', 8, 'Social Bookmarking', 'smart_add_socialpages'); | |
| 23 | + //add_submenu_page(__FILE__, 'wp-insert', 'SEO Optimization', 8, 'SEO', 'smart_add_SEOpages'); | |
| 24 | +} | |
| 25 | + | |
| 26 | +require_once (dirname(__FILE__) . '/support/support.php'); | |
| 27 | +require_once (dirname(__FILE__) . '/ads/insert-ads.php'); | |
| 28 | +require_once (dirname(__FILE__) . '/feeds/insert-feeds.php'); | |
| 29 | +require_once (dirname(__FILE__) . '/tracking/insert-analytics.php'); | |
| 30 | +require_once (dirname(__FILE__) . '/wysiwyg/insert-wysiwyg.php'); | |
| 31 | +?> | |