private function _p2p_load_framework()
 {
     if (is_dir(RTBIZ_PATH . 'vendor')) {
         require_once RTBIZ_PATH . 'vendor/scribu/scb-framework/load.php';
     }
     scb_init(array($this, '_p2p_load'));
 }
Beispiel #2
0
 public static function load()
 {
     self::$dir_path = dirname(dirname(__FILE__));
     self::$basename = plugin_basename(self::$dir_path . '/postmatic.php');
     self::$url_path = plugins_url('', dirname(__FILE__));
     load_plugin_textdomain('Postmatic', '', path_join(dirname(self::$basename), 'lang'));
     scb_init();
     add_action('plugins_loaded', array(__CLASS__, 'action_plugins_loaded'));
 }
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// load scb
require dirname(__FILE__) . '/scb/load.php';
//= debug
//require dirname(__FILE__) . '/scb-debug.php';
//require dirname(__FILE__) . '/FirePHP.class.php';
//require dirname(__FILE__) . '/fb.php';
function _ac_init()
{
    $textdomain = 'admin-customization';
    load_plugin_textdomain($textdomain, false, dirname(plugin_basename(__FILE__)) . '/lang');
    $dir = dirname(__FILE__);
    $options = new scbOptions('admin-customization', __FILE__, array('favicon' => false, 'login_logo' => false, 'admin_logo' => false, 'admin_footer_left' => false, 'admin_footer_right' => false, 'admin_logo_font_size' => 16, 'widgets' => array(), 'disabled_widgets' => '', 'general_settings' => '', 'style_settings' => array()));
    require_once $dir . '/core.php';
    // initialize the core
    AC_Core::init($options);
    // add admin page
    if (is_admin()) {
        require_once $dir . '/admin/admin.php';
        scbAdminPage::register('AC_Settings', __FILE__, $options);
    }
}
scb_init('_ac_init');
Version: 2.85
Author: Lester 'GaMerZ' Chan
Author URI: http://lesterchan.net
Text Domain: wp-useronline
*/
@(include dirname(__FILE__) . '/scb/load.php');
function _useronline_init()
{
    load_plugin_textdomain('wp-useronline', '', dirname(plugin_basename(__FILE__)) . '/lang');
    require_once dirname(__FILE__) . '/core.php';
    require_once dirname(__FILE__) . '/template-tags.php';
    require_once dirname(__FILE__) . '/deprecated.php';
    require_once dirname(__FILE__) . '/widget.php';
    new scbTable('useronline', __FILE__, "\n\t\ttimestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\tuser_type varchar( 20 ) NOT NULL default 'guest',\n\t\tuser_id bigint( 20 ) NOT NULL default 0,\n\t\tuser_name varchar( 250 ) NOT NULL default '',\n\t\tuser_ip varchar( 39 ) NOT NULL default '',\n\t\tuser_agent text NOT NULL,\n\t\tpage_title text NOT NULL,\n\t\tpage_url varchar( 255 ) NOT NULL default '',\n\t\treferral varchar( 255 ) NOT NULL default '',\n\t\tUNIQUE KEY useronline_id ( timestamp, user_type, user_ip )\n\t", 'delete_first');
    $most = new scbOptions('useronline_most', __FILE__, array('count' => 1, 'date' => current_time('timestamp')));
    $options = new scbOptions('useronline', __FILE__, array('timeout' => 300, 'url' => trailingslashit(get_bloginfo('url')) . 'useronline', 'names' => false, 'naming' => array('user' => __('1 User', 'wp-useronline'), 'users' => __('%COUNT% Users', 'wp-useronline'), 'member' => __('1 Member', 'wp-useronline'), 'members' => __('%COUNT% Members', 'wp-useronline'), 'guest' => __('1 Guest', 'wp-useronline'), 'guests' => __('%COUNT% Guests', 'wp-useronline'), 'bot' => __('1 Bot', 'wp-useronline'), 'bots' => __('%COUNT% Bots', 'wp-useronline')), 'templates' => array('useronline' => '<a href="%PAGE_URL%"><strong>%USERS%</strong> ' . __('Online', 'wp-useronline') . '</a>', 'browsingsite' => array('separators' => array('members' => __(',', 'wp-useronline') . ' ', 'guests' => __(',', 'wp-useronline') . ' ', 'bots' => __(',', 'wp-useronline') . ' '), 'text' => _x('Users', 'Template Element', 'wp-useronline') . ': <strong>%MEMBER_NAMES%%GUESTS_SEPARATOR%%GUESTS%%BOTS_SEPARATOR%%BOTS%</strong>'), 'browsingpage' => array('separators' => array('members' => __(',', 'wp-useronline') . ' ', 'guests' => __(',', 'wp-useronline') . ' ', 'bots' => __(',', 'wp-useronline') . ' '), 'text' => '<strong>%USERS%</strong> ' . __('Browsing This Page.', 'wp-useronline') . '<br />' . _x('Users', 'Template Element', 'wp-useronline') . ': <strong>%MEMBER_NAMES%%GUESTS_SEPARATOR%%GUESTS%%BOTS_SEPARATOR%%BOTS%</strong>'))));
    UserOnline_Core::init($options, $most);
    scbWidget::init('UserOnline_Widget', __FILE__, 'useronline');
    if (is_admin()) {
        require_once dirname(__FILE__) . '/admin.php';
        scbAdminPage::register('UserOnline_Admin_Integration', __FILE__);
        scbAdminPage::register('UserOnline_Options', __FILE__, UserOnline_Core::$options);
    }
    if (function_exists('stats_page')) {
        require_once dirname(__FILE__) . '/wp-stats.php';
    }
    #	scbUtil::do_uninstall( __FILE__ );
    #	scbUtil::do_activation( __FILE__ );
}
scb_init('_useronline_init');
 public static function init()
 {
     $my = self::getInstance();
     scb_init(array($my, '_hw_pagenavi_plugin_init'));
 }
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define('P2P_PLUGIN_VERSION', '1.1.4');
define('P2P_TEXTDOMAIN', 'posts-to-posts');
require dirname(__FILE__) . '/scb/load.php';
function _p2p_init()
{
    $base = dirname(__FILE__);
    load_plugin_textdomain(P2P_TEXTDOMAIN, '', basename($base) . '/lang');
    _p2p_load_files("{$base}/core", array('storage', 'query', 'query-post', 'query-user', 'url-query', 'util', 'side', 'type-factory', 'type', 'directed-type', 'api', 'widget'));
    P2P_Widget::init();
    if (is_admin()) {
        _p2p_load_files("{$base}/admin", array('utils', 'box-factory', 'box', 'fields', 'column-factory', 'column'));
    }
    register_uninstall_hook(__FILE__, array('P2P_Storage', 'uninstall'));
}
scb_init('_p2p_init');
function _p2p_load_files($dir, $files)
{
    foreach ($files as $file) {
        require_once "{$dir}/{$file}.php";
    }
}
 * Load P2P.
 *
 * @since 1.3.4
 */
function _badgeos_p2p_load()
{
    if (function_exists('p2p_register_connection_type')) {
        return;
    }
    define('P2P_PLUGIN_VERSION', '1.6.3-alpha');
    define('P2P_TEXTDOMAIN', 'badgeos');
    require_once dirname(__FILE__) . '/p2p-core/init.php';
    register_uninstall_hook(__FILE__, array('P2P_Storage', 'uninstall'));
    if (is_admin()) {
        _badgeos_p2p_load_admin();
    }
}
scb_init('_badgeos_p2p_load');
/**
 * Load P2P admin functionality.
 *
 * @since 1.3.4
 */
function _badgeos_p2p_load_admin()
{
    P2P_Autoload::register('P2P_', dirname(__FILE__) . '/p2p-admin');
    new P2P_Box_Factory();
    new P2P_Column_Factory();
    new P2P_Dropdown_Factory();
    new P2P_Tools_Page();
}
Beispiel #8
0
{
    if (is_admin()) {
        require_once dirname(__FILE__) . '/admin/functions.php';
        // TODO: pass 'class-dashboard.php' file to 'appthemes_register_feature()' when all themes will use Features API.
        require_once dirname(__FILE__) . '/admin/class-dashboard.php';
        require_once dirname(__FILE__) . '/admin/class-tooltips.php';
        require_once dirname(__FILE__) . '/admin/class-tabs-page.php';
        require_once dirname(__FILE__) . '/admin/class-settings.php';
        require_once dirname(__FILE__) . '/admin/class-system-info.php';
        require_once dirname(__FILE__) . '/admin/class-meta-box.php';
        require_once dirname(__FILE__) . '/admin/class-attachments-metabox.php';
        require_once dirname(__FILE__) . '/admin/class-media-manager-metabox.php';
        require_once dirname(__FILE__) . '/admin/class-upgrader.php';
    }
}
scb_init('_appthemes_after_scb_loaded');
add_action('after_setup_theme', '_appthemes_load_features', 999);
add_action('wp_enqueue_scripts', '_appthemes_register_scripts');
add_action('admin_enqueue_scripts', '_appthemes_register_scripts');
add_action('admin_enqueue_scripts', '_appthemes_admin_enqueue_scripts', 11);
// Register framework features to be enqueued in the plugin or theme using Features API.
if (function_exists('appthemes_register_feature')) {
    appthemes_register_feature('app-wrapping', dirname(__FILE__) . '/includes/wrapping.php');
    appthemes_register_feature('app-geo', dirname(__FILE__) . '/includes/geo.php');
    appthemes_register_feature('app-login', dirname(__FILE__) . '/includes/views-login.php');
    appthemes_register_feature('app-stats', dirname(__FILE__) . '/includes/stats.php');
    appthemes_register_feature('app-open-graph', dirname(__FILE__) . '/includes/open-graph.php');
    appthemes_register_feature('app-search-index', dirname(__FILE__) . '/includes/search-index.php');
    appthemes_register_feature('app-comment-counts', dirname(__FILE__) . '/includes/comment-counts.php');
    appthemes_register_feature('app-term-counts', dirname(__FILE__) . '/includes/term-counts.php');
    appthemes_register_feature('app-slider', dirname(__FILE__) . '/includes/slider/slider.php');
Beispiel #9
0
/**
 * Include the scbFramework.
 */
require AUDIOTHEME_DIR . 'includes/vendor/scb/load.php';
/**
 * Attach hook to load the Posts to Posts core.
 *
 * This doesn't actually occur during the init hook despite the name.
 *
 * @since 1.0.0
 */
function audiotheme_p2p_init()
{
    add_action('plugins_loaded', 'audiotheme_p2p_load_core', 20);
}
scb_init('audiotheme_p2p_init');
/**
 * Load Posts 2 Posts core.
 *
 * Requires the scbFramework.
 *
 * Posts 2 Posts requires two custom database tables to store post
 * relationships and relationship metadata. If an alternative version of the
 * library doesn't exist, the tables are created on admin_init.
 *
 * @since 1.0.0
 */
function audiotheme_p2p_load_core()
{
    if (function_exists('p2p_register_connection_type')) {
        return;
Beispiel #10
0
<?php

define('APP_FRAMEWORK_DIR', dirname(__FILE__));
// scbFramework
require dirname(__FILE__) . '/scb/load.php';
scb_init();
require dirname(__FILE__) . '/kernel/functions.php';
appthemes_load_textdomain();
require dirname(__FILE__) . '/kernel/deprecated.php';
require dirname(__FILE__) . '/kernel/hooks.php';
require dirname(__FILE__) . '/kernel/view-types.php';
require dirname(__FILE__) . '/kernel/view-edit-profile.php';
function _appthemes_load_features()
{
    if (current_theme_supports('app-wrapping')) {
        require dirname(__FILE__) . '/includes/wrapping.php';
    }
    if (current_theme_supports('app-geo')) {
        require dirname(__FILE__) . '/includes/geo.php';
    }
    if (current_theme_supports('app-login')) {
        require dirname(__FILE__) . '/includes/views-login.php';
        list($templates) = get_theme_support('app-login');
        new APP_Login($templates['login']);
        new APP_Registration($templates['register']);
        new APP_Password_Recovery($templates['recover']);
        new APP_Password_Reset($templates['reset']);
    }
    if (current_theme_supports('app-feed')) {
        add_filter('request', 'appthemes_modify_feed_content');
    }
<?php

/*
Plugin Name: Query Multiple Taxonomies
Version: 1.6.2
Description: Filter posts through multiple custom taxonomies using a widget.
Author: scribu
Author URI: http://scribu.net
Plugin URI: http://scribu.net/wordpress/query-multiple-taxonomies
Text Domain: query-multiple-taxonomies
Domain Path: /lang
*/
require dirname(__FILE__) . '/scb/load.php';
function _qmt_init()
{
    load_plugin_textdomain('query-multiple-taxonomies', '', basename(dirname(__FILE__)) . '/lang');
    require_once dirname(__FILE__) . '/core.php';
    require_once dirname(__FILE__) . '/walkers.php';
    require_once dirname(__FILE__) . '/widget.php';
    Taxonomy_Drill_Down_Widget::init(__FILE__);
}
scb_init('_qmt_init');
<?php

/*
Plugin Name: Error Log Monitor
Plugin URI: http://w-shadow.com/blog/2012/07/17/error-log-monitor-plugin/
Description: Adds a Dashboard widget that displays the last X lines from your PHP error log, and can also send you email notifications about newly logged errors.
Version: 1.0
Author: Janis Elsts
Author URI: http://w-shadow.com/
*/
require dirname(__FILE__) . '/scb/load.php';
require dirname(__FILE__) . '/Elm/PhpErrorLog.php';
require dirname(__FILE__) . '/Elm/DashboardWidget.php';
require dirname(__FILE__) . '/Elm/Plugin.php';
scb_init('error_log_monitor_init');
function error_log_monitor_init()
{
    new Elm_Plugin(__FILE__);
}
Beispiel #13
0
<?php

/*
Plugin Name: WP Horoscope
Version: 1.0.0
Description: WP Horoscope giúp hiển thị thông tin trong ngày của các cung hoàng đạo.
Author: Vô Minh
Plugin URI: http://laptrinh.senviet.org
*/
include_once dirname(__FILE__) . '/scb/load.php';
function _wphoroscope_init()
{
    include_once dirname(__FILE__) . '/shortcode.php';
    include_once dirname(__FILE__) . '/wpHoroscope_Widget.php';
    scbWidget::init('wpHoroscope_Widget');
    if (is_active_widget(false, false, "wp-horoscope-widget")) {
        wp_enqueue_style("wphoroscope-style", plugins_url("/css/wp-horoscope.css", __FILE__));
    }
}
$GLOBALS['_scb_data'] = array(60, __FILE__, array('scbUtil', 'scbOptions', 'scbForms', 'scbWidget'));
scb_init('_wphoroscope_init');
 function __construct()
 {
     scb_init(array($this, 'options_init'));
 }
Beispiel #15
0
Text Domain: posts-to-posts
Domain Path: /lang
*/
define('P2P_PLUGIN_VERSION', '1.4.3');
define('P2P_TEXTDOMAIN', 'posts-to-posts');
require dirname(__FILE__) . '/scb/load.php';
function _p2p_load()
{
    $base = dirname(__FILE__);
    load_plugin_textdomain(P2P_TEXTDOMAIN, '', basename($base) . '/lang');
    _p2p_load_files("{$base}/core", array('storage', 'query', 'query-post', 'query-user', 'url-query', 'util', 'item', 'list', 'side', 'type-factory', 'type', 'directed-type', 'indeterminate-type', 'api', 'extra'));
    P2P_Widget::init();
    P2P_Shortcodes::init();
    if (is_admin()) {
        _p2p_load_files("{$base}/admin", array('mustache', 'factory', 'box-factory', 'box', 'fields', 'column-factory', 'column', 'tools'));
    }
    register_uninstall_hook(__FILE__, array('P2P_Storage', 'uninstall'));
}
scb_init('_p2p_load');
function _p2p_init()
{
    // Safe hook for calling p2p_register_connection_type()
    do_action('p2p_init');
}
add_action('wp_loaded', '_p2p_init');
function _p2p_load_files($dir, $files)
{
    foreach ($files as $file) {
        require_once "{$dir}/{$file}.php";
    }
}
Beispiel #16
0
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_League_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Club_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_GameDay_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Match_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Season_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Team_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Location_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Tasks/NewGameDay.php';
    $options = array();
    new KKL_League_Admin_Page(__FILE__, $options);
    new KKL_Club_Admin_Page(__FILE__, $options);
    new KKL_GameDay_Admin_Page(__FILE__, $options);
    new KKL_Match_Admin_Page(__FILE__, $options);
    new KKL_Season_Admin_Page(__FILE__, $options);
    new KKL_Team_Admin_Page(__FILE__, $options);
    new KKL_Location_Admin_Page(__FILE__, $options);
}
scb_init('scb_framework_init');
$kkl = new KKL();
$kkl->init();
add_action('kkl_update_game_days', array('KKL_Tasks_NewGameDay', 'execute'));
if (!wp_next_scheduled('kkl_update_game_days')) {
    wp_schedule_event(time(), 'hourly', 'kkl_update_game_days');
}
add_action('plugins_loaded', 'kkl_load_textdomain');
function kkl_load_textdomain()
{
    load_plugin_textdomain('kkl-ligatool', false, dirname(plugin_basename(__FILE__)) . '/lang/');
}
add_filter('set-screen-option', array('KKLBackend', 'set_screen_options'), 10, 3);
<?php

/*
Plugin Name: Advanced Cloner
Plugin URI:  http://wordpress.org/extend/plugins/health-check/
Description: Checks the health of your WordPress install
Version:     0.1-alpha
Author:      The Health Check Team
Author URI:  http://wordpress.org/extend/plugins/health-check/
Text Domain: health-check
Domain Path: /lang
*/
define('AC_FILE', __FILE__);
define('AC_DIR', __DIR__);
require_once AC_DIR . '/inc/framework/load.php';
function advanced_clonser_init()
{
    require_once AC_DIR . '/vendor/autoload.php';
    new \AdvancedCloner\AdvancedCloner();
}
scb_init('advanced_clonser_init');
define('ALOHA_VERSION', '0.20.16');
define('FEE_MAIN_FILE', __FILE__);
// Load scbFramework
require dirname(__FILE__) . '/lib/scb/load.php';
function _fee_init()
{
    load_plugin_textdomain('front-end-editor', '', basename(dirname(__FILE__)) . '/lang');
    $dir = dirname(__FILE__) . '/php';
    require_once $dir . '/template-tags.php';
    require_once $dir . '/core.php';
    foreach (array('base', 'post', 'widget', 'other') as $name) {
        require_once "{$dir}/fields/{$name}.php";
    }
    $options = new scbOptions('front-end-editor', __FILE__, array('disabled' => array('bloginfo'), 'rich' => true, 'group_post' => false, 'taxonomy_ui' => 'termselect'));
    FEE_Core::init($options);
    FEE_Field_Option::init(__FILE__);
    FEE_Field_Image::init(__FILE__);
    if (is_admin()) {
        require_once dirname(__FILE__) . '/admin/admin.php';
        scbAdminPage::register('FEE_Admin', __FILE__, $options);
    }
    add_action('front_end_editor_fields', 'fee_register_defaults', 0);
}
scb_init('_fee_init');
function fee_register_defaults()
{
    $fields = array('the_title' => array('title' => __('Title', 'front-end-editor'), 'class' => 'FEE_Field_Post_Title', 'type' => 'input', 'argc' => 2), 'the_content' => array('title' => __('Content', 'front-end-editor'), 'class' => 'FEE_Field_Post_Content', 'type' => 'rich'), 'the_excerpt' => array('title' => __('Excerpt', 'front-end-editor'), 'class' => 'FEE_Field_Post_Excerpt', 'type' => 'textarea'), 'post_meta' => array('title' => __('Custom fields', 'front-end-editor'), 'class' => 'FEE_Field_Post_Meta', 'argc' => 5), 'post_thumbnail_html' => array('title' => __('Thumbnail', 'front-end-editor'), 'class' => 'FEE_Field_Post_Thumbnail', 'type' => 'thumbnail', 'argc' => 4), 'the_category' => array('title' => __('Categories', 'front-end-editor'), 'class' => 'FEE_Field_Category', 'argc' => 3), 'the_tags' => array('title' => __('Tags', 'front-end-editor'), 'class' => 'FEE_Field_Tags', 'argc' => 4), 'the_terms' => array('title' => __('Terms', 'front-end-editor'), 'class' => 'FEE_Field_Terms', 'argc' => 5), 'widget_title' => array('title' => __('Text widget title', 'front-end-editor'), 'class' => 'FEE_Field_Widget_Text', 'type' => 'input', 'argc' => 3), 'widget_text' => array('title' => __('Text widget content', 'front-end-editor'), 'class' => 'FEE_Field_Widget_Text', 'type' => 'rich', 'argc' => 2), 'dynamic_sidebar_params' => array('title' => __('Other widgets', 'front-end-editor'), 'class' => 'FEE_Field_Widget', 'type' => 'widget'), 'comment_text' => array('title' => __('Comment text', 'front-end-editor'), 'class' => 'FEE_Field_Comment', 'type' => 'textarea'), 'single_cat_title' => array('title' => __('Category title', 'front-end-editor'), 'class' => 'FEE_Field_Single_Title'), 'single_tag_title' => array('title' => __('Tag title', 'front-end-editor'), 'class' => 'FEE_Field_Single_Title'), 'single_term_title' => array('title' => __('Term title', 'front-end-editor'), 'class' => 'FEE_Field_Single_Title'), 'term_description' => array('title' => __('Term description', 'front-end-editor'), 'class' => 'FEE_Field_Term_Field', 'type' => 'rich', 'argc' => 3), 'get_the_author_description' => array('title' => __('Author description', 'front-end-editor'), 'class' => 'FEE_Field_Author_Desc', 'type' => 'textarea', 'argc' => 2), 'bloginfo' => array('title' => __('Site title and description', 'front-end-editor'), 'class' => 'FEE_Field_Bloginfo', 'argc' => 2), 'editable_option' => array('title' => __('Site options', 'front-end-editor'), 'class' => 'FEE_Field_Option', 'argc' => 3), 'editable_image' => array('title' => __('Theme images', 'front-end-editor'), 'class' => 'FEE_Field_Image', 'type' => 'image', 'argc' => 2));
    foreach ($fields as $filter => $args) {
        fee_register_field($filter, $args);
    }
}
Beispiel #19
0
                    return true;
                }
            }
            return false;
        }
        static function has_wptouch()
        {
            if (function_exists('bnc_wptouch_is_mobile') || defined('WPTOUCH_VERSION')) {
                return true;
            }
            return false;
        }
        static function is_mobilepress()
        {
            if (function_exists('mopr_get_option') && WP_CONTENT_DIR . mopr_get_option('mobile_theme_root', 1) == get_theme_root()) {
                return true;
            }
            return false;
        }
        static function has_mobilepress()
        {
            if (class_exists('Mobilepress_core')) {
                return true;
            }
            return false;
        }
    }
}
add_action('wp', create_function('', 'if ( ! is_feed() ) { BJLL::singleton(); }'), 10, 0);
scb_init(array('BJLL', 'options_init'));
<?php

/*
Plugin Name: Smart Archives Reloaded
Version: 2.0.5
Description: An elegant and easy way to present your posts, grouped by year and month.
Author: scribu
Author URI: http://scribu.net
Plugin URI: http://scribu.net/wordpress/smart-archives-reloaded
Text Domain: smart-archives-reloaded
Domain Path: /lang
*/
require dirname(__FILE__) . '/scb/load.php';
define('SAR_VERSION', '2.0');
function _sar_init()
{
    load_plugin_textdomain('smart-archives-reloaded', '', dirname(plugin_basename(__FILE__)) . '/lang');
    require_once dirname(__FILE__) . '/core.php';
    require_once dirname(__FILE__) . '/generator.php';
    $options = new scbOptions('smart-archives', __FILE__, array('format' => 'both', 'list_format' => '%post_link%', 'date_format' => get_option('date_format'), 'anchors' => false, 'month_format' => 'short', 'posts_per_month' => -1, 'include_cat' => array(), 'exclude_cat' => array()));
    SAR_Core::init($options);
    if (is_admin()) {
        require_once dirname(__FILE__) . '/admin/admin.php';
        scbAdminPage::register('SAR_Settings', __FILE__, $options);
    }
}
scb_init('_sar_init');
Beispiel #21
0
<?php

/*
Plugin Name: WP-PageNavi
Plugin URI: http://lesterchan.net/portfolio/programming/php/
Description: Adds a more advanced paging navigation to your WordPress blog
Version: 2.89.1
Author: Lester 'GaMerZ' Chan
Author URI: http://lesterchan.net
Text Domain: wp-pagenavi
Domain Path: /lang
*/
require_once dirname(__FILE__) . '/scb/load.php';
function _pagenavi_init()
{
    load_plugin_textdomain('wp-pagenavi', '', dirname(plugin_basename(__FILE__)) . '/lang');
    require_once dirname(__FILE__) . '/core.php';
    $options = new scbOptions('pagenavi_options', __FILE__, array('pages_text' => __('Page %CURRENT_PAGE% of %TOTAL_PAGES%', 'wp-pagenavi'), 'current_text' => '%PAGE_NUMBER%', 'page_text' => '%PAGE_NUMBER%', 'first_text' => __('&laquo; First', 'wp-pagenavi'), 'last_text' => __('Last &raquo;', 'wp-pagenavi'), 'prev_text' => __('&laquo;', 'wp-pagenavi'), 'next_text' => __('&raquo;', 'wp-pagenavi'), 'dotleft_text' => __('...', 'wp-pagenavi'), 'dotright_text' => __('...', 'wp-pagenavi'), 'num_pages' => 5, 'num_larger_page_numbers' => 3, 'larger_page_numbers_multiple' => 10, 'always_show' => false, 'use_pagenavi_css' => true, 'style' => 1));
    PageNavi_Core::init($options);
    if (is_admin()) {
        require_once dirname(__FILE__) . '/admin.php';
        new PageNavi_Options_Page(__FILE__, $options);
    }
}
scb_init('_pagenavi_init');
         * Check for Disqus actions
         */
        if (isset($_GET['cf_action']) && !empty($_GET['cf_action'])) {
            return false;
        }
        /**
         * Check if we're displaying feed
         */
        if (is_feed()) {
            return false;
        }
        return true;
    }
    // The observer function
    function googlefonts_start_buffering()
    {
        if (self::gwfo_can_ob()) {
            ob_start(array($this, 'googlefonts_end_buffering'));
        }
    }
    // The observer flush
    function googlefonts_ob_end_flush()
    {
        if (self::gwfo_can_ob()) {
            ob_end_flush();
        }
    }
}
add_action('wp', array('GWFO', 'singleton'), 10, 0);
scb_init(array('GWFO', 'options_init'));