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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once 'global.php'; require_once CRAYON_HIGHLIGHTER_PHP; if (CRAYON_TAG_EDITOR) { require_once CRAYON_TAG_EDITOR_PHP; } if (CRAYON_THEME_EDITOR) { require_once CRAYON_THEME_EDITOR_PHP; } require_once 'crayon_settings_wp.class.php'; crayon_set_info(array('Version' => '_2.7.2_beta', 'Date' => '25th April, 2015', 'AuthorName' => 'Aram Kocharyan', 'PluginURI' => 'https://github.com/aramk/crayon-syntax-highlighter')); /* The plugin class that manages all other classes and integrates Crayon with WP */ class CrayonWP { // Properties and Constants =============================================== // Associative array, keys are post IDs as strings and values are number of crayons parsed as ints private static $post_queue = array(); // Ditto for comments private static $comment_queue = array(); private static $post_captures = array(); private static $comment_captures = array(); // Whether we are displaying an excerpt private static $is_excerpt = FALSE; // Whether we have added styles and scripts private static $enqueued = FALSE; // Whether we have already printed the wp head
along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once 'global.php'; require_once CRAYON_HIGHLIGHTER_PHP; if (CRAYON_TAG_EDITOR) { require_once CRAYON_TAG_EDITOR_PHP; } if (CRAYON_THEME_EDITOR) { require_once CRAYON_THEME_EDITOR_PHP; } require_once 'crayon_settings_wp.class.php'; if (defined('ABSPATH')) { // Used to get plugin version info require_once ABSPATH . 'wp-admin/includes/plugin.php'; crayon_set_info(get_plugin_data(__FILE__)); } /* The plugin class that manages all other classes and integrates Crayon with WP */ class CrayonWP { // Properties and Constants =============================================== // Associative array, keys are post IDs as strings and values are number of crayons parsed as ints private static $post_queue = array(); // Ditto for comments private static $comment_queue = array(); private static $post_captures = array(); private static $comment_captures = array(); // Whether we are displaying an excerpt private static $is_excerpt = FALSE; // Whether we have added styles and scripts private static $enqueued = FALSE;