forked from ahmedkaludi/schema-and-structured-data-for-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructured-data-for-wp.php
50 lines (45 loc) · 1.67 KB
/
structured-data-for-wp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
Plugin Name: Schema and Structured Data for WP
Description: Schema & Structured Data adds Google Rich Snippets markup according to Schema.org guidelines to structure your site for SEO. (AMP Compatible)
Version: 1.0.1
Text Domain: schema-and-structured-data-for-wp
Author: Mohammed Kaludi, Ahmed Kaludi
Author URI: http://structured-data-for-wp.com/
Donate link: https://www.paypal.me/Kaludi/25
License: GPL2
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
define('SASWP_VERSION', '1.0.2');
define('SASWP_DIR_NAME', dirname( __FILE__ ));
if ( ! defined( 'SASWP_VERSION' ) ) {
define( 'SASWP_VERSION', '1.0.2' );
}
// the name of the settings page for the license input to be displayed
if(! defined('SASWP_ITEM_FOLDER_NAME')){
$folderName = basename(__DIR__);
define( 'SASWP_ITEM_FOLDER_NAME', $folderName );
}
define('SASWP_PLUGIN_URL', plugin_dir_url( __FILE__ ));
// including the output file
require_once SASWP_DIR_NAME .'/output/function.php';
require_once SASWP_DIR_NAME .'/output/output.php';
// Non amp checker
if ( ! function_exists('saswp_non_amp') ){
function saswp_non_amp(){
$non_amp = true;
if(function_exists('ampforwp_is_amp_endpoint') && ampforwp_is_amp_endpoint() ) {
$non_amp = false;
}
return $non_amp;
}
}
// Schema App end here
require_once SASWP_DIR_NAME.'/admin_section/structure_admin.php';
require_once SASWP_DIR_NAME.'/admin_section/settings.php';
require_once SASWP_DIR_NAME.'/admin_section/common-function.php';
require_once SASWP_DIR_NAME.'/admin_section/fields-generator.php';
require_once SASWP_DIR_NAME.'/admin_section/newsletter.php';
//Loading Metaboxes
require SASWP_DIR_NAME.'/metaboxes/help.php';