diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/IN-MOTION-package-u1/in-motion/home.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/home.php Wed Nov 06 03:21:17 2013 +0000 @@ -0,0 +1,663 @@ + + 'page', + 'order' => 'ASC', + 'orderby' => 'menu_order', + 'posts_per_page' => '-1' + ); +$main_query = new WP_Query($args); +$page_number=0; +/*if( have_posts() ) : */ + while ($main_query->have_posts()) : $main_query->the_post(); + + global $post; + + $post_name = $post->post_name; + + $title = $post->post_title; + + $post_id = get_the_ID(); + + $content = get_the_content(); + + $show_page_in_menu = get_post_meta($post_id , 'show_page_in_menu' , true); + + $pageTemplate= get_post_meta($post_id , 'page_template' , true); + + $shortDesc = get_post_meta($post_id , 'short_desc' , true); + + $page_number++; + $first_class=''; + if($page_number == 1) { + $first_class=' firstPage'; + } + + if ($show_page_in_menu == 'Yes') + { + + if ($pageTemplate == 'Home') + { + ?> + +
+
'; + } + ?> + + +
+ + + +
+
+ '; + echo ''; + if (($slide['title'] != '')||($slide['description'] != '')) { + echo '
'; + echo '
'.$slide['title'].'
'; + echo '
'.$slide['description'].'
'; + echo '
'; + } + echo '
'; + $img_num++; + } + echo '
'; + } }}} + + ?> + + + + '; + echo '

'.$home_page_quote_title.'

'; + echo '

'.$home_page_quote_content.'

'; + echo ''; + } + } + ?> + + +
+
'; + } }}} + + ?> + + +
+
+ + +
+
'; + } + ?> + + '; + echo '

'.$title.'

'; + if (!empty($shortDesc)) { + echo '}

'.$shortDesc.'

'; + } + echo ''; + + ?> +
+
+
+ '; + + echo '
'; + echo '
'; + echo '
'; + + + $args = array('post_type'=> 'portfolio', 'posts_per_page' => -1, 'order'=> 'DESC', 'orderby' => 'post_date' ); + $posts = get_posts($args); + $idd=0; + if($posts) { + + echo '
+ + +
+
+ Your email has been delivered. We will contact you ASAP.

'; + $send_unsuccess = 'Error submitting the form'; + $required_message = 'This is a required field.'; + $invalid_email_message = 'Sorry! You have entered an invalid E-mail.'; + $button_text = 'Send!'; + + if ( function_exists( 'get_option_tree') ){ + if( get_option_tree( 'input_one_title') ) { + $input_one_title = get_option_tree( 'input_one_title' ); + + } + if( get_option_tree( 'input_two_title') ) { + $input_two_title = get_option_tree( 'input_two_title' ); + + } + if( get_option_tree( 'textarea_title') ) { + $textarea_title = get_option_tree( 'textarea_title' ); + + } + if( get_option_tree( 'input_one_prevalue') ) { + $input_one_prevalue = get_option_tree( 'input_one_prevalue' ); + + } + if( get_option_tree( 'input_two_prevalue') ) { + $input_two_prevalue = get_option_tree( 'input_two_prevalue' ); + + } + if( get_option_tree( 'textarea_prevalue') ) { + $textarea_prevalue = get_option_tree( 'textarea_prevalue' ); + + } + if( get_option_tree( 'required_message_indicator') ) { + $required_message_indicator = get_option_tree( 'required_message_indicator' ); + + } + if( get_option_tree( 'send_success') ) { + $send_success = get_option_tree( 'send_success' ); + + } + if( get_option_tree( 'send_unsuccess') ) { + $send_unsuccess = get_option_tree( 'send_unsuccess' ); + + } + if( get_option_tree( 'required_message') ) { + $required_message = get_option_tree( 'required_message' ); + + } + if( get_option_tree( 'invalid_email_message') ) { + $invalid_email_message = get_option_tree( 'invalid_email_message' ); + + } + if( get_option_tree( 'button_text') ) { + $button_text = get_option_tree( 'button_text' ); + + } + } + ?> +
+
'; + } + ?> + + '; + echo '

'.$title.'

'; + if (!empty($shortDesc)) { + echo '}

'.$shortDesc.'

'; + } + echo ''; ?> +
+ +
+ +

+ + +

Your email was sent. Huzzah!

+ + +

+ + + + + +
+
+ + + +

+ +
+ + +
+ + + +

+ +
+ +
+ + + +

+ +
+ + + +

*

+
+
+ + +
+ +

+

+ + + E:

+ + +

+

+ +

+
+ +
+ + +
+
'; + } + ?> + + '; + echo '

'.$title.'

'; + if (!empty($shortDesc)) { + echo '}

'.$shortDesc.'

'; + } + echo ''; + + $args = array('post_type'=> 'post', 'posts_per_page' => -1, 'order'=> 'DESC', 'orderby' => 'post_date' ); + $posts = get_posts($args); + $idd=0; + if($posts) { + $itemCount = 0; + echo '
'; + foreach($posts as $post) + { + $termlist=""; + setup_postdata($post); + $idd++; + $publish=true; + $postType = get_post_meta($post->ID, 'post_type_selected' , true); + if($postType == 'News'){$publish=false;} + + $terms = get_the_category($post->ID); + $term_list = ''; + + if( is_array($terms) ) { + foreach( $terms as $term ) { + // if($term->cat_name == 'News'){$publish=false;} + $term_list .= $term->cat_name; + $term_list .= ' '; + } + } + if($publish==true) + { + $itemCount++; + if(($itemCount % 2) == 0) { + $itemClass=' last'; + } + else { + $itemClass=''; + } + + echo '
'; + echo ''; + echo '
'; + get_permalink(); + + ?> + +

+ '; + echo '
'; + $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); + ?> + +
'; + } + } + echo '
'; + } + ?> +
+
+ + +
+
'; + } + ?> + + '; + echo '

'.$title.'

'; + if (!empty($shortDesc)) { + echo '}

'.$shortDesc.'

'; + } + echo '
'; + + $args = array('post_type'=> 'post', 'posts_per_page' => -1, 'order'=> 'DESC', 'orderby' => 'post_date' ); + $posts = get_posts($args); + $idd=0; + if($posts) { + $itemCount = 0; + $itemClass=''; + echo "
"; + foreach($posts as $post) + { + $termlist=""; + setup_postdata($post); + $idd++; + $publish=false; + $postType = get_post_meta($post->ID, 'post_type_selected' , true); + if($postType == 'News'){$publish=true;} + + $terms = get_the_category($post->ID); + $term_list = ''; + + if( is_array($terms) ) { + foreach( $terms as $term ) { + // if($term->cat_name == 'News'){$publish=true;} + $term_list .= $term->cat_name; + $term_list .= ' '; + } + } + if($publish==true) + { + $itemCount++; + //if ($itemClass== ' last') { echo '
';} + if(($itemCount % 3) == 0) { + $itemClass=' last'; + } + else { + $itemClass=''; + } + echo '
'; + echo '
'; + echo '

'. get_the_time('d').' '. get_the_time('M').'

'; + echo '
'; + echo '
'; + echo '

'.get_the_title().'

'; + $content = get_post($post->ID)->post_content; + /*f (strlen($content) > 103) + { + $content = substr($content,0,100).'...'; + } + */ + echo '

'.$content.'

'; + echo '
'; + + } + } + echo '
'; + } + ?> +
+ + '; + if($page_number == 1) { + topHeaderDisplay(); + echo '
'; + } + menu($page_number); + echo '
'; + echo '

'.$title.'

'; + if (!empty($shortDesc)) { + echo '}

'.$shortDesc.'

'; + } + echo '
'; + the_content(); + echo ''; + } + ?> + + +