diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/shortcodes.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/shortcodes.php Wed Nov 06 03:21:17 2013 +0000
@@ -0,0 +1,326 @@
+' . do_shortcode($content) . '';
+}
+add_shortcode('h1', 'heading1');
+
+function clear( $atts, $content = null ) {
+ return '
';
+}
+add_shortcode('clear', 'clear');
+
+function heading2( $atts, $content = null ) {
+ return '' . do_shortcode($content) . '
';
+}
+add_shortcode('h2', 'heading2');
+
+function heading3( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+}
+add_shortcode('h3', 'heading3');
+
+function heading4( $atts, $content = null ) {
+ return '' . do_shortcode($content) . '
';
+}
+add_shortcode('h4', 'heading4');
+
+function alignment( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'alignment' => 'center'
+ ), $atts ) );
+ return ''. do_shortcode($content) .'
';
+
+}
+add_shortcode('alignment', 'alignment');
+
+
+function seperator( $atts, $content = null ) {
+ return '';
+}
+add_shortcode('seperator', 'seperator');
+
+function para( $atts, $content = null ) {
+ return '' . do_shortcode($content) . '
';
+}
+add_shortcode('p', 'para');
+
+//layout shortcodes
+function one_half( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+}
+add_shortcode('one_half', 'one_half');
+
+
+function one_half_last( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+ }
+add_shortcode('one_half_last', 'one_half_last');
+
+
+function one_third ( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+}
+add_shortcode('one_third', 'one_third');
+
+
+function one_third_last( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+}
+add_shortcode('one_third_last', 'one_third_last');
+
+function one_fourth ( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+
+}
+add_shortcode('one_fourth', 'one_fourth');
+
+
+function one_fourth_last( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+ }
+add_shortcode('one_fourth_last', 'one_fourth_last');
+
+function two_third ( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+}
+add_shortcode('two_third', 'two_third');
+
+
+function two_third_last( $atts, $content = null ) {
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+ return $return;
+}
+add_shortcode('two_third_last', 'two_third_last');
+
+function three_fourth ( $atts, $content = null ) {
+ return '' . do_shortcode($content) . '
';
+}
+add_shortcode('three_fourth', 'three_fourth');
+
+
+function three_fourth_last( $atts, $content = null ) {
+ return '' . do_shortcode($content) . '
';
+}
+add_shortcode('three_fourth_last', 'three_fourth_last');
+
+
+//buttons
+
+function button( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'url' => '#',
+ 'color' => 'black',
+ 'type' => 'small'
+ ), $atts ) );
+
+
+ return '';
+}
+
+add_shortcode('button', 'button');
+
+
+function highlight( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'color' => ''
+ ), $atts ) );
+ $return = ' ';
+ $return .= do_shortcode($content);
+ $return .= ' ';
+ return $return;
+}
+
+add_shortcode('hl', 'highlight');
+
+function highlight_main( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'color' => ''
+ ), $atts ) );
+
+ return ' ' . do_shortcode($content) .' ';
+}
+
+add_shortcode('main-hl', 'highlight_main');
+
+
+
+function youtube_video( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'id' => '',
+ 'width' => '560',
+ 'height' => '315'
+ ), $atts ) );
+
+ return '';
+}
+
+add_shortcode('youtube', 'youtube_video');
+
+
+function vimeo_video( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'id' => '',
+ 'width' => '560',
+ 'height' => '315'
+ ), $atts ) );
+
+ return '';
+}
+
+add_shortcode('vimeo', 'vimeo_video');
+
+
+function image( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'type' => '',
+ 'src' => '',
+ 'title' => '',
+ 'alt' => '',
+ ), $atts ) );
+
+ return '
';
+}
+
+add_shortcode('image', 'image');
+
+function custom_image( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'src' => '',
+ 'alt' => '',
+ 'width' => '',
+ 'height' => ''
+ ), $atts ) );
+
+ return '
';
+
+}
+
+add_shortcode('custom_image', 'custom_image');
+
+function quotee( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'author' => ''
+ ), $atts ) );
+ if (!empty($author)){ $author='by '.$author;}
+
+ return '
+
.'/images/quote.png)
+
' . do_shortcode($content) .'
+
';
+}
+
+add_shortcode('quote', 'quotee');
+
+function team( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'title' => 'meet the team',
+ 'height' => '300'
+ ), $atts ) );
+ $option_tree='';
+ if ( function_exists( 'get_option_tree') ) {
+ $option_tree = get_option('option_tree');
+
+ if (get_option_tree( 'our_team')) {
+ $teamm = get_option_tree( 'our_team', $option_tree, false, true, -1 );
+ $img_num = 1;
+ $output='';
+ if(!empty($teamm)){
+ $output.='';
+ $output.= '
';
+ $output.= '
'.$title.'

';
+ $output.= '
'.$title.'

';
+ $output.= '
';
+ $output.='
';
+ foreach( $teamm as $member ) {
+
+ $output.='- ';
+ if($member['link'] != '') {
+ $output.='
'.$member['title'].' ';
+ }
+ else {
+ $output.='
'.$member['title'].'';
+ }
+
+ }
+ $output.='
';
+ }
+ }
+
+ return $output;
+ }
+
+}
+add_shortcode('team', 'team');
+
+function short_twitter( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'title' => 'Share this on Twitter!',
+ 'status' => 'Look at this great post -'
+ ), $atts ) );
+ return ''.$title.'
';
+}
+add_shortcode('tweet', 'short_twitter');
+
+function short_digg( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'title' => 'Share this on Digg!'
+ ), $atts ) );
+ return ''.$title.'
';
+}
+add_shortcode('diggthis', 'short_digg');
+
+function listt( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'width' => '450'
+ ), $atts ) );
+ $return = '';
+ $return .= do_shortcode($content);
+ $return .= '
';
+
+ return $return;
+}
+add_shortcode('list', 'listt');
+
+function list_li( $atts, $content = null ) {
+ extract( shortcode_atts( array(
+ 'url' => '#'
+ ), $atts ) );
+ $return = '';
+ $return .= do_shortcode($content) ;
+ $return .= '';
+
+ return $return;
+}
+add_shortcode('list_li', 'list_li');
+
+?>
\ No newline at end of file