'' ),$atts,'splits')); return "
".do_shortcode($content).do_shortcode('[clear]')."
"; } public function one_half ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'one_half')); return "
".do_shortcode(wpautop($content, true))."
"; } public function one_third ($atts, $content){ extract(shortcode_atts(array( 'right' => false, 'left' => false ),$atts,'one_third')); return "
".do_shortcode(wpautop($content, true))."
"; } public function two_thirds ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'two_thirds')); return "
".do_shortcode(wpautop($content, true))."
"; } public function one_fourth ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'one_fourth')); return "
".do_shortcode(wpautop($content, true))."
"; } public function two_fourths ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'two_fourths')); return "
".do_shortcode(wpautop($content, true))."
"; } public function three_fourths ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'three_fourths')); return "
".do_shortcode(wpautop($content, true))."
"; } public function one_fifth ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'one_fifth')); return "
".do_shortcode(wpautop($content, true))."
"; } public function two_fifths ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'two_fifths')); return "
".do_shortcode(wpautop($content, true))."
"; } public function three_fifths ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'three_fifths')); return "
".do_shortcode(wpautop($content, true))."
"; } public function four_fifths ($atts, $content){ extract(shortcode_atts(array( 'right' =>false, 'left' => false ),$atts,'three_fifths')); return "
".do_shortcode(wpautop($content, true))."
"; } /* Clear */ public function clear ($atts, $content){ extract(shortcode_atts(array( ),$atts,'clear')); return "
"; } /* More */ public function more ($atts, $content){ extract(shortcode_atts(array( 'title'=>"Learn More..." ),$atts, 'more')); return "
{$title}
"; } public function spoiler ($atts, $content){ $atts = shortcode_atts(array( 'title'=>"Spoilers..." ),$atts, 'spoiler'); return $this->more($atts,$content); } public function spoil ($atts, $content){ $atts = shortcode_atts(array( 'title'=>"Spoilers..." ),$atts, 'spoil'); return $this->spoiler($atts,$content); } /* Tabs */ public function tabs ($atts, $content){ extract(shortcode_atts(array( 'class' => '' ),$atts,'tabs')); return "
".do_shortcode($content)."
"; } public function tab ($atts, $content){ extract(shortcode_atts(array( 'title'=>"", 'ttl' => "" ),$atts, 'tab')); return "
".do_shortcode(wpautop($content, true))."
"; } /* Slider */ public function slider ($atts, $content){ extract(shortcode_atts(array( 'first'=>false, "height" => "", "h"=>"" ),$atts, 'slider')); $h = $height ? $height : ($h ? $h : ""); $h = $this->get_size($h); return "
".do_shortcode($content)."
"; } public function slide ($atts, $content){ extract(shortcode_atts(array( 'href'=>false, 'id' => false, 'link' => false, 'slug' => false, 'src' => false, 'anchor' => false ),$atts, 'slide')); $href = $this->get_url( $href ? $href : ($id ? $id : ($link ? $link : ($slug ? $slug : "#") ) ) ); if($anchor) $anchor = "#".$anchor; $src = $this->get_image($src); return "
".do_shortcode($content)."
"; } /* Hover */ public function hover ($atts, $content){ extract(shortcode_atts(array( 'class' => '' ),$atts,'hover')); return "
".do_shortcode(wpautop($content, true))."
"; } public function on ($atts, $content){ extract(shortcode_atts(array( ),$atts,'on')); return "
".do_shortcode(wpautop($content, true))."
"; } public function off ($atts, $content){ extract(shortcode_atts(array( ),$atts,'off')); return "
".do_shortcode(wpautop($content, true))."
"; } /* Person */ public function person ($atts, $content){ extract(shortcode_atts(array( 'src'=> plugins_url('/images/def_person.png', ___FILE___), 'name' => "", 'jobtitle' => "", 'email' => "", 'phone' => "" ),$atts, 'person')); $src = $this->get_image($src); return "
". ( $name ? "{$name}
" : ""). ( $jobtitle ? "{$jobtitle}
" : ""). ( $email ? "Contact by Email
" : ""). ( $phone ? "{$phone}
" : ""). "
"; } /* Background */ public function background ($atts, $content){ extract(shortcode_atts(array( 'src'=>"", 'height' => "", 'width' => "", 'class' => "", 'bgcolor' => "transparent", 'color' => "inherit", 'repeat' => "no-repeat", 'position' => "top left", 'padding' => "0px 0px 0px 0px" ),$atts, 'background')); $src = $this->get_image($src); $height = $this->get_size($height); $width = $this->get_size($width); return "
".do_shortcode(wpautop($content, true))."
"; } /* Flash Card */ public function flashcard ($atts, $content){ extract(shortcode_atts(array( 'height' => '0', 'width' => '0', 'class' => '' ), $atts, 'flashcard')); $height = $this->get_size($height); $width = $this->get_size($width); return "
".do_shortcode(wpautop($content, true))."
"; } public function front ($atts, $content){ extract(shortcode_atts(array( 'click' => 'all' ),$atts,'front')); return "
".do_shortcode(wpautop($content, true))."
"; } public function back ($atts, $content){ extract(shortcode_atts(array( 'click' => 'all' ),$atts,'back')); return "
".do_shortcode(wpautop($content, true))."
"; } /* Link Map */ public function linkmap ($atts, $content){ extract(shortcode_atts(array( 'height' => '', 'width' => '', 'class' => '', 'src' => '', 'hover_src' => '', 'flashcard' => '', 'bgcolor' => 'transparent', ), $atts, 'linkmap')); $height = $this->get_size($height); $width = $this->get_size($width); $flashcard = $flashcard != ''; $src = $this->get_image($src); $hover_src = $this->get_image($hover_src); return "".do_shortcode($content).""; } public function maplink ($atts, $content){ extract(shortcode_atts(array( 'height' => '0', 'width' => '0', 'class' => '', 'top' => '0', 'left' => '0', 'href'=>false, 'id' => false, 'link' => false, 'slug' => false, 'anchor' => false, 'fc' => '' ), $atts, 'map_link')); $href = $this->get_url( $href ? $href : ($id ? $id : ($link ? $link : ($slug ? $slug : "#") ) ) ); if($anchor) $anchor = "#".$anchor; $height = $this->get_size($height); $width = $this->get_size($width); return "".do_shortcode(wpautop($content, true)).""; } public function link ($atts, $content){ extract(shortcode_atts(array( 'href' => false, 'id' => false, 'link' => false, 'slug' => false, 'anchor' => false, 'class' => "" ),$atts, 'link')); if(!$content){ if( is_numeric( $href ? $href : ($id ? $id : ($link ? $link : ($slug ? $slug : "#") ) ) ) ) $content ="[title id='".($href ? $href : ($id ? $id : ($link ? $link : ($slug ? $slug : "#") ) ))."']"; } $href = $this->get_url( $href ? $href : ($id ? $id : ($link ? $link : ($slug ? $slug : "#") ) ) ); if($anchor) $anchor = "#".$anchor; return "".do_shortcode($content).""; } public function title ($atts, $content){ extract(shortcode_atts(array( 'id'=>"", 'slug'=>"" ),$atts, 'link')); if(!$id && $slug) $id = $wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE post_name = '{$slug}'"); if($id) $title = get_the_title($id); else $title = get_the_title(); return $title; } public function button ($atts,$content){ extract(shortcode_atts(array( 'title' => 'Submit', 'class' => "" ),$atts, 'button')); return "
{$title}
"; } public function buttons ($atts,$content){ extract(shortcode_atts(array( 'align' => "right" ),$atts, 'buttons')); return "
".do_shortcode($content)."
"; } public function email_form ($atts, $content){ extract(shortcode_atts(array( 'height' => '620px', 'width' => '100%', 'title' => 'Get Connected', 'above_form' => "Please enter your contact information and we will connect with you to answer any and all of your questions.", 'email' => 'Email Address', 'name' => 'First and Last Name', 'company' => 'Company Name', 'phone' => 'Phone Number', 'content' => 'Comments', 'get_emails' => 'Yes, I would like to receive the newsletters.', 'button' => 'Get Connected', 'type' => 'email', 'error' => "There was an error connecting you.", 'success' => "You are now connected." ),$atts, 'email_form')); $height = $this->get_size($height); $width = $this->get_size($width); $form = "
". "

{$title}

". "

{$above_form}

". "". "". "". "". "". "". "
". "[buttons align='right'][button title='{$button}' class='submit'][/buttons]". "
"; return do_shortcode($form); } public function fake_footer($atts, $content){ extract(shortcode_atts(array( ),$atts, 'buttons')); return do_shortcode(""); } public function anchor($atts, $content){ extract(shortcode_atts(array( 'name' => false ),$atts, 'anchor')); if(!$name) return ""; return ""; } }