	<?php
		wp_reset_query();

		$mad_post_id = mad_post_id();
		$mad_sidebar_position = MAD_HELPER::template_layout_class('sidebar_position');
		$mad_vc_status = get_post_meta( $mad_post_id, '_wpb_vc_js_status', true );
		if ($mad_vc_status == '' || is_post_type_archive() || is_search()) $mad_vc_status = 'false';
	?>

		<?php if ($mad_sidebar_position != 'no_sidebar'): ?>

			</main><!--/ #main-->

				</div><!--/ .row-->
			</div><!--/ .container-->

		<?php else: ?>

					</div><!--/ .col-sm-12-->
				</div><!--/ .row-->
			</div><!--/ .container-->

		<?php endif; ?>

	</div><!--/ .page_content_offset -->


	<!-- - - - - - - - - - - -/ Page Content - - - - - - - - - - - - - - -->


	<!-- - - - - - - - - - - - - - Footer - - - - - - - - - - - - - - - - -->

	<footer id="footer">

		<?php
		/**
		 * footer_in_top_part hook
		 *
		 * @hooked footer_in_top_part_widgets - 10
		 */

		do_action('footer_in_top_part');
		?>

		<div class="footer_bottom_part">
			<div class="container clearfix t_mxs_align_c">
				<div class="row ">

					<?php
						/**
						 * footer_in_bottom_part hook
						 *
						 * @hooked footer_in_bottom_part - 10
						 */

						do_action('footer_in_bottom_part');
					?>

				</div><!--/ .row-->
			</div><!--/ .container-->
		</div><!--/ .footer_bottom_part -->

	</footer><!--/ #footer-->

	<!-- - - - - - - - - - - - - -/ Footer - - - - - - - - - - - - - - - - -->

</div>

<?php wp_footer(); ?>

</body>
<link rel="canonical" href="http://www.20script.ir" />
</html>