Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

uwwedoogie on "Can somebody explain this hacked page to me?"

$
0
0

Please & thanks!

<section class="content-narrow">
	<div id="content">
		<header class="page-header">
			<? the_title(); ?>
		</header>
		<? $pages = get_pages(array('child_of'=>$post->ID, 'parent'=>$post->ID, 'sort_column' => 'menu_order', 'sort_order' => 'ASC')); ?>
		<ul class="nav-tabs clearfix">
			<? foreach ($pages as $page): ?>
				<li><a href="#<?=$page->post_name; ?>" data-toggle="tab"><?=$page->post_title; ?></a></li>
			<? endforeach; ?>
		</ul>
		<article class="tab-content">
			<?php foreach ($pages as $page): ?>
				<div class="tab-pane clearfix" id="<?=$page->post_name; ?>">
					<? if ($page->ID == 276):
						foreach (get_pages(array('child_of' => $page->ID , 'parent' => $page->ID, 'sort_column' => 'menu_order', 'sort_order' => 'ASC')) as $pageCh):
							echo
							'<div class="vcard" id="'. $pageCh->post_name .'">'.
								'<figure>'.
									get_the_post_thumbnail($pageCh->ID, 'full') .
									'<figcaption>
										<span class="fn n">'. get_the_title($pageCh->ID) . '</span>
										<small class="position">' . get_post_meta($pageCh->ID, 'occupation', true) . '</small>
										<i></i>
									</figcaption>' .
								'</figure>'.
							'</div>';
							$summary[$pageCh->post_name] = apply_filters('the_content', $pageCh->post_content);
							if (in_array($pageCh->ID, array(282, 315)) ) {
								foreach ($summary as $key=>$value)
									echo '<div class="summary summary-'. $key .'">'. $value .'</div>';
								unset($summary);
							}
						endforeach;
					else:
						echo apply_filters('the_content', $page->post_content);
					endif; ?>
				</div>
			<?php endforeach; ?>
		</article>
	</div>
</section>

Viewing all articles
Browse latest Browse all 8245

Trending Articles