/** * Set environment defaults based on presence of key functions/classes. */ public function __construct() { $this->use_code_shortcode = class_exists('SyntaxHighlighter'); $this->preserve_shortcodes = function_exists('get_shortcode_regex'); $this->preserve_latex = function_exists('latex_markup'); $this->strip_paras = function_exists('wpautop'); parent::__construct(); }
/** * Set environment defaults based on presence of key functions/classes. */ public function __construct() { $this->use_code_shortcode = class_exists('SyntaxHighlighter'); /** * Allow processing shortcode contents. * * @module markdown * * @since 4.4.0 * * @param boolean $preserve_shortcodes Defaults to $this->preserve_shortcodes. */ $this->preserve_shortcodes = apply_filters('jetpack_markdown_preserve_shortcodes', $this->preserve_shortcodes) && function_exists('get_shortcode_regex'); $this->preserve_latex = function_exists('latex_markup'); $this->strip_paras = function_exists('wpautop'); parent::__construct(); }
public function __construct() { // doImage is 10, add image url just before $this->span_gamut['doImageURL'] = 9; // doLink is 20, add base url just before $this->span_gamut['doBaseURL'] = 19; // Add API links $this->span_gamut['doAPI'] = 90; // Add note spans last $this->span_gamut['doNotes'] = 100; // Parse Kohana view inclusions at the very end $this->document_gamut['doIncludeViews'] = 99; // Show table of contents for userguide pages $this->document_gamut['doTOC'] = 100; // Call parent constructor. parent::__construct(); }
public function __construct(dmHelper $helper, array $options = array()) { $this->helper = $helper; parent::__construct(); $this->initialize($options); }
function __construct() { $this->early_gamut += array('doShell' => 5, 'doURL' => 6); $this->span_gamut += array('doGlyphs' => 70, 'doSpan' => 71); parent::__construct(); }
public function __construct() { $this->span_gamut += array("doApiLinks" => 35); parent::__construct(); }
function __construct($default_classes = array()) { $default_classes = $default_classes; $this->block_gamut += array("doFencedFigures" => 7); parent::__construct(); }
public function __construct($callbacks = array()) { parent::__construct(); $this->_callbacks = $callbacks; }