Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php extract(get_option('mt_set'), EXTR_OVERWRITE);
- $msarray = unserialize(get_post_meta($post->ID, 'meta_settings', true));
- if($msarray['pg_clay']=="true") {
- $mt_sortlay02 = $msarray['mt_sortlay51'];
- $mt_bp_scbox1 = $msarray['pg_scbox1'];
- $mt_bp_scbox2 = $msarray['pg_scbox2'];
- $mt_bp_scbox3 = $msarray['pg_scbox3'];
- }?>
- <?php get_header();
- $modules = explode(",", $mt_sortlay02);
- foreach ($modules as $module) {
- switch ( $module ) {
- case 'pos_0': // Message
- include (TEMPLATEPATH . '/modules/mod_msg.php');
- break;
- case 'pos_1': // Posted
- include (TEMPLATEPATH . '/modules/mod_pstd.php');
- break;
- case 'pos_2': // Accordian
- include (TEMPLATEPATH . '/modules/mod_acc.php');
- break;
- case 'pos_3': // Page ?>
- <div class="v22"></div>
- <div class="post_conwrap">
- <div class="post fl">
- <?php while (have_posts()) : the_post(); ?>
- <div class="postcon">
- <div><h3 class="heading"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to','mtlang');?> <?php the_title_attribute(); ?>"><?php the_title();?></a></h3></div>
- <div class="clear"></div>
- <div class="v11"></div>
- <div class="postcontent"><?php the_content();?></div>
- </div><!-- /postcon -->
- <div class="clear"></div>
- <?php if ($mt_pa_showcomment=="true") {?>
- <!-- comments -->
- <div id="postcomm">
- <?php comments_template(); ?>
- </div>
- <!-- /comments -->
- <?php } // end if ?>
- <div class="v44"></div>
- <?php endwhile; ?>
- </div><!-- /post -->
- <?php get_sidebar(); ?>
- </div><!-- /post_conwrap -->
- <div class="clear"></div>
- <?php break;
- case 'pos_4': // Shortcode Box 1
- echo "<div class='v11'></div>".do_shortcode(stripslashes($mt_bp_scbox1))."<div class='v11'></div>";
- break;
- case 'pos_5': // Shortcode Box 2
- echo "<div class='v11'></div>".do_shortcode(stripslashes($mt_bp_scbox2))."<div class='v11'></div>";
- break;
- case 'pos_6': // Shortcode Box 3
- echo "<div class='v11'></div>".do_shortcode(stripslashes($mt_bp_scbox3))."<div class='v11'></div>";
- break;
- } // end switch-case
- } // end foreach
- get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement