| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Insert HTML Snippet |
| 4 |
Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-html-snippet/ |
| 5 |
Description: Add HTML code to your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random HTML code such as ad codes, javascript, video embedding, etc. and use the same in your posts, pages or widgets.It also includes flexible snippet placement options: Automatic and Manual Shortcode. |
| 6 |
Version: 1.4 |
| 7 |
Author: xyzscripts.com |
| 8 |
Author URI: http://xyzscripts.com/ |
| 9 |
Text Domain: insert-html-snippet |
| 10 |
License: GPLv2 or later |
| 11 |
*/ |
| 12 |
|
| 13 |
/* |
| 14 |
This program is free software; you can redistribute it and/or |
| 15 |
modify it under the terms of the GNU General Public License |
| 16 |
as published by the Free Software Foundation; either version 2 |
| 17 |
of the License, or (at your option) any later version. |
| 18 |
|
| 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 27 |
*/ |
| 28 |
|
| 29 |
if ( ! defined( 'ABSPATH' ) ) |
| 30 |
exit; |
| 31 |
|
| 32 |
|
| 33 |
// error_reporting(E_ALL); |
| 34 |
|
| 35 |
define('XYZ_INSERT_HTML_PLUGIN_FILE',__FILE__); |
| 36 |
|
| 37 |
require( dirname( __FILE__ ) . '/xyz-functions.php' ); |
| 38 |
|
| 39 |
require( dirname( __FILE__ ) . '/add_shortcode_tynimce.php' ); |
| 40 |
|
| 41 |
require( dirname( __FILE__ ) . '/admin/install.php' ); |
| 42 |
|
| 43 |
require( dirname( __FILE__ ) . '/admin/menu.php' ); |
| 44 |
|
| 45 |
require( dirname( __FILE__ ) . '/shortcode-handler.php' ); |
| 46 |
|
| 47 |
require( dirname( __FILE__ ) . '/ajax-handler.php' ); |
| 48 |
|
| 49 |
require( dirname( __FILE__ ) . '/admin/uninstall.php' ); |
| 50 |
|
| 51 |
require( dirname( __FILE__ ) . '/widget.php' ); |
| 52 |
|
| 53 |
require( dirname( __FILE__ ) . '/direct_call.php' ); |
| 54 |
|
| 55 |
require( dirname( __FILE__ ) . '/admin/admin-notices.php' ); |
| 56 |
|
| 57 |
if(get_option('xyz_credit_link')=="ihs"){ |
| 58 |
|
| 59 |
add_action('wp_footer', 'xyz_ihs_credit'); |
| 60 |
|
| 61 |
} |
| 62 |
function xyz_ihs_credit() { |
| 63 |
$content = '<div style="width:100%;text-align:center; font-size:11px; clear:both"><a target="_blank" title="Insert HTML Snippet Wordpress Plugin" href="http://xyzscripts.com/wordpress-plugins/insert-html-snippet/">HTML Snippets</a> Powered By : <a target="_blank" title="PHP Scripts & Wordpress Plugins" href="http://www.xyzscripts.com" >XYZScripts.com</a></div>'; |
| 64 |
echo $content; |
| 65 |
} |
| 66 |
|
| 67 |
?> |
| 68 |
|