コード例 #1
0
ファイル: author.php プロジェクト: jjpango/JJTeam
		</div>
		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        if (ot_get_option('ktz_content_layout') == 'layout_blog') {
            get_template_part('content', 'mini');
        } else {
            get_template_part('content', get_post_format());
        }
    }
    ?>
		<nav id="nav-index">
			<?php 
    ktz_navigation();
    ?>
		</nav>
		<?php 
} else {
    ktz_post_notfound();
}
?>
		</section>
		</div>
	<?php 
get_sidebar();
?>
	</div>
	</section>
<?php 
get_footer();
コード例 #2
0
ファイル: _agc_ktz.php プロジェクト: jjpango/JJTeam
function ktz_get_AGC()
{
    if (ot_get_option('ktz_agc_activated') == 'yes') {
        $s = $_GET['s'];
        if (isset($_REQUEST['s'])) {
            $termstring = urldecode($_REQUEST['s']);
        } else {
            $termstring = '';
        }
        $termstring = $s;
        if ($s != '') {
            $googleresults = perform_google_web_search($termstring);
            if (is_array($googleresults)) {
                foreach ($googleresults as $result) {
                    $link = urldecode(CleanFileNameBan(strip_tags($result['Oriurl'])));
                    print '<div class="entry-search">';
                    print '<h3 class="entry-title"><a href="' . get_search_link(CleanFileNameBan(hilangkan_spesial_karakter($result['title']))) . '">' . CleanFileNameBan(hilangkan_spesial_karakter($result['title'])) . '</a></h3>';
                    print '<p>' . CleanFileNameBan(hilangkan_spesial_karakter($result['abstract'])) . '</p>';
                    print '<hr class="hr-dotted" />';
                    print '</div>';
                }
            }
        }
    } else {
        ktz_post_notfound();
    }
}