<?php /* Plugin Name: Content Bootstrap Author: Takayuki Miyauchi Plugin URI: https://github.com/miya0001/content-bootstrap Description: Apply twitter bootstrap css under the content area only. Author: Takayuki Miyauchi Version: 1.0.2 Author URI: https://github.com/miya0001/ Domain Path: /languages Text Domain: content-bootstrap */ $content_bootstrap = new Content_Bootstrap(); $content_bootstrap->register(); class Content_Bootstrap { private $ver; public function register() { add_action('init', array($this, 'init')); } public function init() { $plugin_info = get_file_data(__FILE__, array('version' => 'Version', 'text_domain' => 'Text Domain', 'domain_path' => 'Domain Path')); $this->ver = $plugin_info['version']; require_once dirname(__FILE__) . '/includes/bootstrap.php'; $bootstrap_version = self::get_bootstrap_version(); if ('bootstrap3' === $bootstrap_version) { require_once dirname(__FILE__) . '/bootstrap/bootstrap3.php'; $bootstrap3 = new Bootstrap3($this->ver, plugins_url('', __FILE__));
protected function get_bootstrap_dir() { $dir = apply_filters('content_bootstrap_dir', $this->plugins_url . '/bootstrap/' . Content_Bootstrap::get_bootstrap_version()); return untrailingslashit($dir); }