示例#1
0
/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <*****@*****.**>
 * @author Andrea Grillo   <*****@*****.**>
 */
function yit_sliders_loader()
{
    if (!defined('YIT') || !defined('YIT_CORE_PLUGIN')) {
        require_once 'plugin-fw/yit-plugin.php';
    }
    if (yit_check_plugin_support()) {
        require_once 'yit-slider.php';
    }
}
示例#2
0
文件: init.php 项目: jabue/wordpress
/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <*****@*****.**>
 * @author Andrea Grillo   <*****@*****.**>
 */
function yit_feature_tabs_loader() {
    if ( ! defined( 'YIT' ) || ! defined( 'YIT_CORE_PLUGIN' ) ) {
        require_once( 'plugin-fw/yit-plugin.php' );
    }

    if( yit_check_plugin_support() ) {
        require_once 'yit-feature-tabs.php';
    }
}
示例#3
0
文件: init.php 项目: jabue/wordpress
/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <*****@*****.**>
 * @author Andrea Grillo   <*****@*****.**>
 */
function yit_contactform_loader()
{
    if (!defined('YIT') || !defined('YIT_CORE_PLUGIN')) {
        require_once 'plugin-fw/yit-plugin.php';
    }
    if (yit_check_plugin_support()) {
        require_once 'yit-contact-form.php';
    }
}
示例#4
0
/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <*****@*****.**>
 * @author Andrea Grillo   <*****@*****.**>
 */
function yit_sitemap_loader()
{
    if (file_exists('plugin-fw/yit-plugin.php') && (!defined('YIT') || !defined('YIT_CORE_PLUGIN'))) {
        require_once 'plugin-fw/yit-plugin.php';
    }
    if (yit_check_plugin_support()) {
        require_once 'yit-sitemap.php';
    }
}
示例#5
0
文件: init.php 项目: jabue/wordpress
/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <*****@*****.**>
 * @author Andrea Grillo   <*****@*****.**>
 */
function yit_portfolio_loader() {
    if ( ! defined( 'YIT' ) || ! defined( 'YIT_CORE_PLUGIN' ) ) {
        require_once( 'plugin-fw/yit-plugin.php' );
    }

    if( yit_check_plugin_support() ) {
        require_once 'yit-portfolio.php';
    }
}
示例#6
0
/**
 * Load the core of the plugin, added to "after_theme_setup" so you can load the core only if it isn't loaded by plugin
 *
 * @return void
 * @since  1.0
 * @author Antonino Scarfì <*****@*****.**>
 * @author Andrea Grillo   <*****@*****.**>
 */
function yit_shortcodes_loader()
{
    if (file_exists('plugin-fw/yit-plugin.php') && (!defined('YIT') || !defined('YIT_CORE_PLUGIN'))) {
        require_once 'plugin-fw/yit-plugin.php';
    }
    if (defined('YIT_FREE') && YIT_FREE) {
        deactivate_plugins(plugin_basename(__FILE__));
        return;
    }
    if (yit_check_plugin_support()) {
        require_once 'yit-shortcodes.php';
    }
}