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') + { + ?> + +
'.$home_page_quote_content.'
'; + echo ''; + } + } + ?> + + +'.$shortDesc.'
'; + } + echo ''; + + ?> +; ?>/images/lines-hover-circle-portfolio.png)
';
+ $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' );
+
+ }
+ }
+ ?>
+ '.$shortDesc.'
'; + } + echo ''; ?> + + +Your email was sent. Huzzah!
+ + + + + + + + + +'.$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 ''. get_the_time('d').' '. get_the_time('M').'
'; + echo ''.$shortDesc.'
'; + } + echo ''. get_the_time('d').' '. get_the_time('M').'
'; + echo ''.$content.'
'; + echo ''.$shortDesc.'
'; + } + echo '