📄 Viewing: matrix_model.php

<?php



/* Template Name: Matrix Models */



get_header();



otw_pfl_scripts_styles(); /* include the necessary srctips and styles */

?>



<?php $style_width = '';

  if( get_option( 'otw_pfl_content_width' ) ) {

      $style_width = 'style="width:'.get_option('otw_pfl_content_width').'px;"';

  }

?>

<header class="entry-header">

												<h1 class="entry-title">Our Models</h1>

		</header>

        



<div class="new_title_h"><h1>New Model</h1></div>

<div class="otw-row otw-sc-portfolio" <?php echo $style_width; ?>>

              <div class="otw-twentyfour otw-columns">



              <?php 
			  
			  $taxo = get_object_taxonomies( 'otw-portfolio' );

                foreach ( $taxo as $tax_name ) {

                    $categories = get_categories('taxonomy='.$tax_name);

                    $i = 0; $len = count( $categories );

                    foreach ($categories as $category) {

                        if ($i == 0) { ?><ul class="otw-portfolio-filter"><?php }

                        if ($i > 0) { $sep = '<span class="separator">/</span>'; }

                	        echo '<li class="'.$category->category_nicename.'"><a href="'.get_term_link($category->slug, 'otw-portfolio-category').'">'.$sep.$category->cat_name.'</a></li>';

                        if ($i == $len - 1) { echo '</ul>'; }

                        $i++;

                    }

                }

              ?>



                  <ul class="otw-portfolio block-grid three-up mobile">

                  <?php 
				  wp_reset_query();
				  if (is_page()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
				  
				  query_posts('otw-portfolio-category=new-model&orderby=title&order=ASC&post_type=otw-portfolio&paged='.$paged); } ?>

                  <?php if (have_posts()): while (have_posts()) : the_post(); ?>

                      <li data-type="<?php foreach(get_the_terms($post->ID, 'otw-portfolio-category') as $term) echo $term->slug.' ' ?>" data-id="id-<?php echo($post->post_name) ?>">

                          <article id="post-<?php the_ID(); ?>" <?php post_class('otw-portfolio-item'); ?>>

                            	<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="otw-portfolio-item-link">

                            		<div class="image">

                                		<?php if ( has_post_thumbnail()) { ?>

                                		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>

                                		<?php } else { ?>

                                            <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>

                                        <?php } ?>

                            		</div>

                            		<div class="title">

                            			<h3><?php the_title(); ?></h3>

                            		</div>

                            		<div class="text entry-content">

                            			<?php the_excerpt(); ?>

                            		</div>

                            	<span class="shadow-overlay hide-for-small"></span></a>

                          </article>

                      </li>



                  <?php endwhile; ?>

                  </ul>



<?php else: ?>





<?php endif; ?>



    <?php otw_pagination_pfl(); ?>



            </div>

          </div>	


    <div class="new_title_h"><h1>Models Available</h1></div>

<div class="otw-row otw-sc-portfolio" <?php echo $style_width; ?>>

              <div class="otw-twentyfour otw-columns">



              <?php 
			  wp_reset_postdata();
			  $taxo = get_object_taxonomies( 'otw-portfolio' );

                foreach ( $taxo as $tax_name ) {

                    $categories = get_categories('taxonomy='.$tax_name);

                    $i = 0; $len = count( $categories );

                    foreach ($categories as $category) {

                        if ($i == 0) { ?><ul class="otw-portfolio-filter"><?php }

                        if ($i > 0) { $sep = '<span class="separator">/</span>'; }

                	        echo '<li class="'.$category->category_nicename.'"><a href="'.get_term_link($category->slug, 'otw-portfolio-category').'">'.$sep.$category->cat_name.'</a></li>';

                        if ($i == $len - 1) { echo '</ul>'; }

                        $i++;

                    }

                }

              ?>



                  <ul class="otw-portfolio block-grid three-up mobile">

                  <?php 
				  wp_reset_query();
				  if (is_page()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
				  
				  query_posts('otw-portfolio-category=models-available&orderby=title&order=ASC&post_type=otw-portfolio&paged='.$paged); } ?>

                  <?php if (have_posts()): while (have_posts()) : the_post(); ?>

                      <li data-type="<?php foreach(get_the_terms($post->ID, 'otw-portfolio-category') as $term) echo $term->slug.' ' ?>" data-id="id-<?php echo($post->post_name) ?>">

                          <article id="post-<?php the_ID(); ?>" <?php post_class('otw-portfolio-item'); ?>>

                            	<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="otw-portfolio-item-link">

                            		<div class="image">

                                		<?php if ( has_post_thumbnail()) { ?>

                                		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>

                                		<?php } else { ?>

                                            <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>

                                        <?php } ?>

                            		</div>

                            		<div class="title">

                            			<h3><?php the_title(); ?></h3>

                            		</div>

                            		<div class="text entry-content">

                            			<?php the_excerpt(); ?>

                            		</div>

                            	<span class="shadow-overlay hide-for-small"></span></a>

                          </article>

                      </li>



                  <?php endwhile; ?>

                  </ul>



<?php else: ?>





<?php endif; ?>



    <?php otw_pagination_pfl(); ?>



            </div>

          </div>



     <div class="new_title_h"><h1>Model Contact For Booking</h1></div>

<div class="otw-row otw-sc-portfolio" <?php echo $style_width; ?>>

              <div class="otw-twentyfour otw-columns">



              <?php 
			  wp_reset_postdata() ;
			  $taxo = get_object_taxonomies( 'otw-portfolio' );

                foreach ( $taxo as $tax_name ) {

                    $categories = get_categories('taxonomy='.$tax_name);

                    $i = 0; $len = count( $categories );

                    foreach ($categories as $category) {

                        if ($i == 0) { ?><ul class="otw-portfolio-filter"><?php }

                        if ($i > 0) { $sep = '<span class="separator">/</span>'; }

                	        echo '<li class="'.$category->category_nicename.'"><a href="'.get_term_link($category->slug, 'otw-portfolio-category').'">'.$sep.$category->cat_name.'</a></li>';

                        if ($i == $len - 1) { echo '</ul>'; }

                        $i++;

                    }

                }

              ?>



                  <ul class="otw-portfolio block-grid three-up mobile">

                  <?php 
				  wp_reset_query();
				  if (is_page()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
				  
				  query_posts('otw-portfolio-category=model-contact-for-booking&orderby=title&order=ASC&post_type=otw-portfolio&paged='.$paged); } ?>

                  <?php if (have_posts()): while (have_posts()) : the_post(); ?>

                      <li data-type="<?php foreach(get_the_terms($post->ID, 'otw-portfolio-category') as $term) echo $term->slug.' ' ?>" data-id="id-<?php echo($post->post_name) ?>">

                          <article id="post-<?php the_ID(); ?>" <?php post_class('otw-portfolio-item'); ?>>

                            	<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="otw-portfolio-item-link">

                            		<div class="image">

                                		<?php if ( has_post_thumbnail()) { ?>

                                		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>

                                		<?php } else { ?>

                                            <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>

                                        <?php } ?>

                            		</div>

                            		<div class="title">

                            			<h3><?php the_title(); ?></h3>

                            		</div>

                            		<div class="text entry-content">

                            			<?php the_excerpt(); ?>

                            		</div>

                            	<span class="shadow-overlay hide-for-small"></span></a>

                          </article>

                      </li>



                  <?php endwhile; ?>

                  </ul>



<?php else: ?>





<?php endif; ?>



    <?php otw_pagination_pfl(); ?>



            </div>

          </div>			  

<?php get_footer(); ?>

🌑 DarkStealth — WP Plugin Edition

Directory: /home/httpd/html/matrixmodels.com/public_html_hacked/wp-content/themes/matrix-model