این فایل footer
<div id="footer">
<div class="alignleft">Copyright © <?php the_time('Y'); ?>. All Rights Reserved. Designed by <a href="http://www.5shadesreseller.com">Cheap Reseller Hosting</a>.</div>
<div class="alignright">
<a href="http://www.5shadestemplates.com">Web Templates</a>
<a href="http://www.dreamanity.com">Dream Interpretation Guide</a>
<a href="http://www.yeast-infection-treatment-reviews.com">Yeast Infection</a>
</div>
</div>
<?php
$code = get_option('swt_custom_analytics_code'); echo stripslashes($code);
?>
<?php wp_footer();?>
</body>
</html>
این هم فایل functions.php
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div class="side-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
include(TEMPLATEPATH.'/includes/themeoptions.php');
include(TEMPLATEPATH.'/includes/images.php');
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary-menu' => __( 'Primary Menu' ),
'secondary-menu' => __( 'Secondary Menu' ),
) );
function my_wp_nav_menu_args( $args = '' )
{
$args['container'] = false;
return $args;
} // function
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'Qrfvtarq ol <n uers="uggc://jjj.5funqrferfryyre.pbz">Purnc Erfryyre Ubfgvat</n>.</qvi>
<qvi pynff="nyvtaevtug">
<n uers="uggc://jjj.5funqrfgrzcyngrf.pbz">Jro Grzcyngrf</n>&aofc;
<n uers="uggc://jjj.qernznavgl.pbz">Qernz Vagrecergngvba Thvqr</n>&aofc;
<n uers="uggc://jjj.lrnfg-vasrpgvba-gerngzrag-erivrjf.pbz">Lrnfg Vasrpgvba</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf fcbafberq, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));
/*this function allows for the auto-creation of post excerpts*/
function truncate_post($amount,$quote_after=false) {
$truncate = get_the_content();
$truncate = apply_filters('the_content', $truncate);
$truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
$truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
$truncate = strip_tags($truncate);
$truncate = substr($truncate, 0, strrpos(substr($truncate, 0, $amount), ' '));
echo $truncate;
echo "...";
if ($quote_after) echo('');
}
eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));
function src_simple_recent_comments($src_count = 8, $src_length=35, $pre_HTML='', $post_HTML='') {
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,
SUBSTRING(comment_content,1,$src_length) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT $src_count";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
foreach ($comments as $comment) {
$output .= "\n\t<li><span>" . $comment->comment_author . ':</span> <a href="' . get_permalink($comment->ID) . '#comment-' . $comment->comment_ID . '" title="on ' . get_the_title($comment->ID) . '">' . strip_tags($comment->com_excerpt) . '...</a></li>';
}
$output .= $post_HTML;
echo $output;
}
function mdv_recent_posts($no_posts = 8, $before = '<li>', $after = "</li>\n", $hide_pass_post = true, $skip_posts = 0) {
global $wpdb;
$time_difference = get_settings('gmt_offset');
$now = gmdate("Y-m-d H:i:s",time());
$request = "SELECT ID, post_title, DATE_FORMAT(post_date_gmt, '%d %M %Y') as my_date FROM $wpdb->posts WHERE post_status = 'publish' ";
if($hide_pass_post) $request .= "AND post_password ='' ";
$request .= "AND post_type='post' ";
$request .= "ORDER BY post_date DESC LIMIT $skip_posts, $no_posts";
$posts = $wpdb->get_results($request);
$output = '';
if($posts) {
foreach ($posts as $post) {
$permalink = get_permalink($post->ID);
//$output .= $before .'<span>' .$post->my_date. '</span> - <a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title). '</a>';
$output .= $before .'<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . get_the_title($post->ID). '</a>';
$output .= $after;
}
} else {
$output .= $before . "None found" . $after;
}
echo $output;
}
?>