function bpc_spp_bridge($content) { global $post; $post = (array) $post; // check if content is empty, so we can generate the content from stupidpie if ($content == '') { // change this with your template and hack $new_content = spp($post['post_title'], 'wiki.html', ''); $post['post_content'] = $new_content; wp_update_post($post); return $new_content; } else { return $content; } }
} include "lang/lang.php"; ?> <section id="sidebar"> <div class="price-disc"><?php echo $lang[35]; ?> </div><br /> <?php if (is_search()) { ?> <div class="sidebar-widget"> <h3>Related Search</h3> <?php echo spp(get_search_query(), 'sidebar.html'); ?> </div> <?php } ?> <div id="product-recommend"> <h3><?php echo $lang[31]; ?> </h3> <ul> <?php query_posts('showposts=4&orderby=rand'); ?> <?php
function spp_shortcode($atts) { extract(shortcode_atts(array('term' => 'hello world', 'template' => 'default.html', 'hack' => ''), $atts)); return spp($term, $template, $hack); }
<?php get_header(); ?> <div style="clear: both"></div> <div id="bigcontent"> <div id="content"> <?php echo spp(get_search_query()); ?> <h1><?php echo wp_specialchars($s, 1); ?> </h1> <?php include TEMPLATEPATH . '/loop.php'; ?> </div> <?php get_sidebar(); get_footer();
<?php get_header(); ?> <div style="clear: both"></div> <div id="container"> <div id="contents"> <?php echo spp(get_search_query());?> <?php get_template_part( 'loop' ); ?> <div style="clear: both"></div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") document.write(weekday[d.getDay()] + " ") document.write(d.getDate() + ". ") document.write(monthname[d.getMonth()] + " ") document.write(d.getFullYear()) </script> </time> </a> </span> </div></div> <?php $keyword = get_search_query(); $template = 'wiki.html'; // jeut gantoe dengan nama fle yg laen, lage games, homedesign, car, dan socmed. Tergantung niche. $hack = ''; echo spp($keyword, $template, $hack); ?> <?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();
get_header(); ?> <p><div style="display:block;height:4px;border-bottom:1px solid #DDD;"></div></p> <?php echo spp(get_search_query('', false), 'pdf1.html', ' filetype:pdf'); ?> <br /> <?php echo spp(get_search_query('', false), 'pdf.html', ' filetype:pdf'); ?> <h2> Summary for <?php echo wp_specialchars($s, 1); ?> </a></h2> <?php echo spp(get_search_query('', false), 'isi-pdf.html'); ?> <?php get_sidebar(); ?> <?php get_footer();
<?php if ($_GET['s'] != '') { $ganti = array('+', ' '); $urlredirect = str_replace($ganti, '-', $_GET['s']) . '.html'; header("HTTP/1.1 301 Moved Permanently"); header("Location: {$urlredirect}"); } get_header(); ?> <div style="clear: both"></div> <div id="container"> <div id="contents"> <h1><?php echo get_search_query(); ?> </h1><br /> <?php echo spp(get_search_query(), 'search.html', ''); ?> <?php get_template_part('loop'); ?> <div style="clear: both"></div> </div> <?php get_sidebar(); get_footer();
<?php get_header(); ?> <div id="container"> <div id="contents"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article class="post"> <section class="post-single"> <h1><?php the_title(); ?></h1> <div class="tags"><?php edit_post_link('Edit', '', ''); ?> <?php the_time('l, F jS Y.') ?> | <?php the_category(', ') ?> </div></section> <?php the_content(); ?> <?php echo spp(single_post_title( '', false )) ;?> <?php get_template_part( 'ads' ); ?> <div style="clear: both"></div> <section class="tags"><?php the_tags('tags: ',', ',''); ?></section><section class="social"> <div class="facebook"> <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=button_count&show_faces=false& width=50&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:60px;"> </iframe> </div> <div class="twitter"> <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> <a href="http://twitter.com/share?url=<?php echo urlencode(get_permalink($post->ID)); ?>&count=horizontal" class="twitter-share-button">Tweet</a></div> <g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone> <div style="clear: both"></div> </section> </article> <?php endwhile; ?> <section class="related"><?php get_template_part( 'related' ); ?></section> <?php else : ?> <article class="post"><h2>Not Found</h2>Sorry, but you are looking for something that isn't here.</article> <?php endif; ?> </div> <?php get_sidebar(); ?>
<?php header('HTTP/1.1 200 OK'); get_header(); include "lang/lang.php"; ?> <!-- start content --> <section id="content" class="content"> <?php $a = $_SERVER['REQUEST_URI']; $b = str_replace(array('.html', '-'), array('', ' '), $a); $b = trim($b, '/'); echo spp($b); ?> <!--?php echo spp(the_title_attribute( 'echo=0' ));?--> <br /><input type="hidden" name="IL_RELATED_TAGS" value="1"/> </section> <!-- end main content --> <!-- start sidebar --> <?php get_sidebar(); ?> <!-- end sidebar --> <div class="clear"></div> </section> <?php include TEMPLATEPATH . '/above-content.php';
public function run($id) { $campaign = (array) Stupidbot_Campaign::find($id); require_once ABSPATH . "wp-includes" . '/pluggable.php'; require_once ABSPATH . "wp-admin" . '/includes/image.php'; require_once ABSPATH . "wp-admin" . '/includes/file.php'; require_once ABSPATH . "wp-admin" . '/includes/media.php'; if (!class_exists('h2o')) { require_once SPP_PATH . '/templates/h2o/h2o.php'; foreach (glob(SPP_PATH . "/includes/*.php") as $filename) { require $filename; } } $settings = $this->stupidbot->get_settings(); if ($campaign['id']) { $keywords = explode("\n", $campaign['keywords']); //print_r($keywords); if (count($keywords > 0)) { shuffle($keywords); $keywords = array_slice($keywords, 0, $campaign['count']); } else { $alert = "got empty keyword, aborting"; return $alert; } $posted = ""; foreach ($keywords as $keyword) { $stupidbot_settings = $this->stupidbot->get_settings(); $title = $stupidbot_settings['clean_title'] ? ucwords($keyword) : $keyword; $this->stupidbot->alert .= $this->post_exist($title) ? $title . ' exist, not posting.<br>' : $title . ' not exists, posting.<br>'; if ($this->post_exist($title) < 1) { $catnow = $campaign['category_id']; $my_post = array('post_title' => $title, 'post_content' => spp($keyword, $campaign['template'], $campaign['hack']), 'post_status' => 'publish', 'post_author' => 1, 'post_category' => array($catnow)); $mypost_id = wp_insert_post($my_post); $posted .= $title . ' posted! <a href="' . get_permalink($mypost_id) . '" target="_blank">View Post</a><br>'; } $campaign['counter']++; } Stupidbot_Campaign::update($campaign); $this->stupidbot->alert .= "<br>" . $posted; } else { $this->stupidbot->alert .= "Error: Campaign not found."; } }
} get_header(); include "lang/lang.php"; ?> <!-- start content --> <!-- start main content --> <div class="bread"><?php echo the_breadcrumb(); ?> </div> <section id="content" class="content"> <!-- start listing --> <div class="popular-item"> <?php echo spp(get_search_query(), 'imgamazon.html', ''); ?> <input type="hidden" name="IL_RELATED_TAGS" value="1"/> <?php if (have_posts()) { ?> <h2 class="archive"> <span>Search Result for <em> <?php the_search_query(); ?> </em> </span> </h2> <ul class="clearfix">