Cockpit ---- admin Panel
At the beginning I want to sell it , not for the price but for the pleasure to sell
we are all here for that not ???
Some condition have change my decision
so here they are version compatible 3.04 to 3.5./*
1) Copy the file below to a text editor like notepad ....etc
name it
update-tpl.php
and save it
2) put into /
wp-content/themes/classipress/
path to this file is
http:// your-site.com/
wp-content/themes/classipress/update-tpl.php
3)Go in to you
wordpress admin
4)Go to page and create a new one called eg: update
so you have now a page
http://www.yoursite.com/update/
5)in the same page in
"attibute" select
inside the dropdown menu "Last Update"
save the page and make it private only for admin
and then lauch it
What will you see ........???
PHP Code:
<?php
/*
Template Name: Last Update
*/
/*
Last Updated post and page From Classipress
Team:ClassiPress
website :http://appthemes.com/
Contributor:mr_green
website :http://www.vazy.biz
*/
/********************************************************************************/
/* Page template for admin inside Wordpress that let you see all and when Ad */
/* has been updated by user after they have approved and published by admin(you)*/
/********************************************************************************/
?>
<?php get_header(); ?>
<?php
$today = current_time('mysql', 1);
$howMany = 25;
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title, post_content, post_modified_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_modified_gmt < '$today' ORDER BY post_modified_gmt DESC LIMIT $howMany")):
?>
<div style="margin:0 auto;padding:0 10px;text-align:left;">
<h1><?php _e("Recent Updates"); ?></h1>
<ul>
<?php
foreach ($recentposts as $post) {
if ($post->post_title == '') $post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "<h2><a href='".get_permalink($post->ID)."'>";
the_title();
echo '</a></h2>';
if(get_post_meta($post->ID, 'images', true)) echo cp_get_image_thumbs_legacy($post->ID, get_option('medium_size_w'), get_option('medium_size_h'), $post->post_title); else cp_get_image_url_single($post->ID, 'medium', $post->post_title,-1);
echo '<h3>' . $post->post_modified_gmt . '</h3>';
edit_post_link( __('Edit'), ' >> ', '');
echo '<p>' . $post->post_content . '</p>';
echo '<hr noshade color="#CCCCCC" size="5"/>';
}
?>
</ul>
</div>
<?php endif; ?>
<?php get_footer(); ?>
you can change
to the desired
number of ......