";
var $isTagUsed = false;
function mwm_aal(){
$this->options = get_option('mwm_aal_options');
add_action('wp_print_styles', array(&$this, 'load_styles'));
add_filter('the_content', array(&$this,'find_content_links'));
add_filter('the_excerpt', array(&$this,'remove_excerpt_display'));
add_shortcode($this->tag, array(&$this,'output_content_links'));
add_shortcode($this->htmltag, array(&$this,'output_content_links'));
}
function load_styles() {
if ($this->options['activateCSS']){
wp_enqueue_style('MWM-AAL-FRONT-CSS', MWMAAL_URLPATH.'css/mwm-aal.css', false, '1.0.0', 'screen');
}
}
function find_content_links($content){
$this->find_content_name_links($content);
$content= $this->add_anchors_to_content($content);
if($this->options['autoDisplayInContent'] and !$this->isTagUsed){
if ((is_home() and $this->options['is_home']) or
(is_single() and $this->options['is_single']) or
(is_page() and $this->options['is_page']) or
(is_category() and $this->options['is_category']) or
(is_tag() and $this->options['is_tag']) or
(is_date() and $this->options['is_date']) or
(is_author() and $this->options['is_author']) or
(is_search() and $this->options['is_search'])) {
$content = $this->auto_output_content_links($content);
}
}
return $content;
}
function find_content_name_links($content){
preg_match_all('#