<?php
/**
 * The template for displaying all pages
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site may use a
 * different template.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since 1.0
 * @version 1.0
 */

get_header('innerpage'); ?>

<div>  
<div id="content">
<div id="header">
	<div class="container-fluid">
   <!-- <div id="header_right" class="float-right">
    <div class="dropdown profile">
<a href="#" class="ic" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">MG</a>
<div class="dropdown-menu dropdown-menu-right p-3" id="profile_info">
	<p><strong>Manish Gurukula</strong> <br>Administrator <br>sadmin1</p>
	<a href="#" class="btn  btn-secondary">Sign Out</a>
</div>
</div>
    </div> -->
	</div>
</div>
<div id="sidebar">
	<div class="sidebar-header">
		<a href="<?php echo get_option("siteurl"); ?>"><img src="https://qadevelopers.orbipay.com/wp-content/themes/twentyseventeen/assets/images/Orbipay_Logo_182@2x.png" width="180px" alt="logo"><span class="sub_title"> Developers</span></a>
	</div>

	<?php if ( is_page([1736,1898,1893])) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'OrbiPayHostedForms-menu' ) ); ?></nav>
   <a href="#" id="more_nav_items">+ More</a>
	<?php  } ?>
	<?php if ( is_page('291')) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'OrbiPayGettingStarted-menu' ) ); ?></nav>
   <a href="#" id="more_nav_items">+ More</a>
	<?php  } ?>
 <?php if ( is_page('515')) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'learn-more-menu' ) ); ?></nav>
   <a href="#" id="more_nav_items">+ More</a>
	<?php  } ?>
 <?php if ( is_page('860')) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'Subscriptions-Getting-Started' ) ); ?></nav>
   <a href="#" id="more_nav_items">+ More</a>
	<?php  } ?>
 <?php if ( is_page('878')) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'Subscriptions-Documentation' ) ); ?></nav>
   <a href="#" id="more_nav_items">+ More</a>
	<?php  } ?>
 <?php if ( is_page('1116')) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'PaaS-Getting-Started' ) ); ?></nav>
    <a href="#" id="more_nav_items">+ More</a>
	<?php  } ?>
  <?php if ( is_page('1418')) { ?>
		<nav><?php wp_nav_menu( array( 'theme_location' => 'Cosmos_User_Guide' ) ); ?></nav>
   <a href="#" id="more_nav_items">+ More</a>
   
	<?php  } ?>
 
 </div>
				 
<div id="content_wrap" class="page_content">
<?php if ( is_page('1265')) { ?>
  <div id="server_in" class="sandbox">
    <div class="buttons_holder">
  <a href="##" class="sandbox_btn">Sanbox</a>
  <a href="##" class="production_btn">Production</a>
      <span class="clearfix"></span>
    </div>
   <h1 class="entry-title">Dashboard</h1>
    <span class="clearfix"></span>
  </div>
<?php } ?>  
  
	<div id="innerpageIntro">
	<?php while ( have_posts() ) : the_post();
	get_template_part( 'template-parts/page/content', 'page' );
	// If comments are open or we have at least one comment, load up the comment template.
	if ( comments_open() || get_comments_number() ) :
	comments_template();
	endif;
	endwhile; // End of the loop.?>
	</div>
				
<?php if ( is_page('1898')) { ?>
	<?php $custom_query = new WP_Query('cat=44&posts_per_page=-1000&meta_key=hostedforms_sort&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-hosted-forms', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>	
<?php  } 
  
  elseif ( is_page('1893')) { ?>
	<?php $custom_query = new WP_Query('cat=43&posts_per_page=-1000&meta_key=hostedforms_sort&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-hosted-forms', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>	
<?php  } 
  
  
  
  elseif ( is_page('1736')) { ?>
	<?php $custom_query = new WP_Query('cat=37&posts_per_page=-1000&meta_key=hostedforms_sort&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-hosted-forms', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>	
<?php  } 
	
  

  
elseif( is_page('291')) { ?>				
	<?php $custom_query = new WP_Query('cat=19&posts_per_page=-1000&meta_key=Sort-payment-API&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-payment-API', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>			
 <?php }
  elseif( is_page('1220')) { ?>				
	<?php $custom_query = new WP_Query('cat=32&posts_per_page=-1000&meta_key=test1&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-payment-API', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>			
 <?php }
	
	elseif( is_page('519')) { ?>				
	<?php $custom_query = new WP_Query('cat=20&posts_per_page=-1000&order=ASC');
	while($custom_query->have_posts()) : $custom_query->the_post(); ?>
	<?php the_content(); ?> 
	<?php echo $the_post->post_content; ?>
	<?php endwhile; ?>
	<?php wp_reset_postdata(); ?>				
<?php  } 
  elseif( is_page('515')) { ?>				
	<?php $custom_query = new WP_Query('cat=21&posts_per_page=-1000&order=ASC');
	while($custom_query->have_posts()) : $custom_query->the_post(); ?>
	<?php the_content(); ?> 
	<?php echo $the_post->post_content; ?>
	<?php endwhile; ?>
	<?php wp_reset_postdata(); ?>				
<?php  }
	
elseif( is_page('1116')) { ?>				
	<?php $custom_query = new WP_Query('cat=31&posts_per_page=-1000&meta_key=Sort-paas-getting_started&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-payment-API', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>			
 <?php }
  
  elseif( is_page('1418')) { ?>				
	<?php $custom_query = new WP_Query('cat=36&posts_per_page=-1000&meta_key=sort_cosmos_user_guide&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-payment-API', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>			
 <?php }
	
elseif( is_page('860')) { ?>				
	<?php $custom_query = new WP_Query('cat=26&posts_per_page=-1000&meta_key=Sort-sbp-getting_started&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-payment-API', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>			
 <?php }
	
elseif( is_page('878')) { ?>				
	<?php $custom_query = new WP_Query('cat=28&posts_per_page=-1000&meta_key=Sort-sbp-documentation&orderby=meta_value_num&order=ASC');
                         
	while($custom_query->have_posts()) : $custom_query->the_post(); 
   //echo get_post_meta(get_the_ID(), 'Sort-payment-API', TRUE); 
	 the_content(); 
	 echo $the_post->post_content; 
	 endwhile; 
	 wp_reset_postdata(); 	?>			
 <?php }
	
  ?>
				 
	</div>
  </div>	
</div><!-- .wrap -->
<script>
	$("#more_nav_items").click(function(){		
		$("#more_nav_items").text(($("#more_nav_items").text() == '+ More')  ? '- Less' : '+ More').fadeIn();
		$("#sidebar nav").toggleClass("in");
	});
  
  /*== Min Height to the main content section ===*/
$(document).ready(function() {
var pageWidth = $(window).width();
if (pageWidth > 700) {

	$(window).resize(function() {
		$('#sidebar').css('height', $( window ).height()-0+'px');
	});
	$(window).trigger('resize');

};
});	
/*== Min Height to the main content section ===*/
</script>
<div id="inner_footer"><?php get_footer('content'); ?></div>


<?php get_footer(); ?>
