Moin leute,
ich habe ein selbstgemachtes Layout von Artisteer in wordpress eingefügt!
Nun möchte ich gerne das "Datum" 16.10.2011 veröffentlich z.B. RAUSHABEN! (Löschen)
Wie geht das?
SuFu: Ich habe das Gansze sufu und alle foren abgesucht!
Man sagt, ich soll index.php oder single.php etc nah <? blablub date time >? suchen und es LÖSCHEN!!
Es geht aber nicht, da mein index.php und single.php mit ca 2-3 funktionen drin ist. also nicht mal 2 zeilen ...
es muss wo anders sein
function.php ist viel fon date und time:
if (!function_exists('get_the_date')) {
function get_the_date($format = 'F jS, Y') {
return get_the_time(__($format, THEME_NS));
}
Das muss gelöscht werden, aber wenn ich es tue, dann funktioniert die seite nicht mehr :(
hier der index.php code:
<?php
get_header();
if (have_posts())
{
while (have_posts())
{
art_post();
}
art_page_navi();
} else {
art_not_found_msg();
}
get_footer();
Alles anzeigen
[COLOR=DarkRed]Hier paar sachen über date und time im ganze function code:[/COLOR]
if (!function_exists('get_the_date')) {
function get_the_date($format = 'F jS, Y') {
return get_the_time(__($format, THEME_NS));
}
}
function art_comment($comment, $args, $depth)
{
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>">
<?php art_post_box('', art_parse_template("comment", array(
'get_avatar' => get_avatar($comment, $size='48'),
'comment_author_link' => art_get_comment_author_link(),
'status' => $comment->comment_approved == '0' ? '<em>' . __('Your comment is awaiting moderation.', THEME_NS) . '</em><br />' : '',
'get_comment_link' => htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ,
'get_comment_date' => sprintf(__('%1$s at %2$s', THEME_NS), get_comment_date(), get_comment_time()),
'edit_comment_link' => art_get_edit_comment_link(),
'comment_text' => art_get_comment_text(),
'comment_reply_link' => art_get_comment_reply_link($args, $depth)))); ?>
</div>
<?php
}
function art_get_post_metadata($name) {
global $post;
$list = art_option('metadata.'.$name);
$title = ($name == 'header' && art_option('metadata.title'));
if (!$title && $list == "") return;
$list_array = explode(",", $list);
$result = array();
for($i = 0; $i < count($list_array); $i++){
$icon = $list_array[$i];
switch($icon){
case 'date':
if(is_page()) break;
$result[] = art_get_post_icon($icon) . get_the_date();
break;
case 'author':
if(is_page()) break;
ob_start();
the_author_posts_link();
$result[] = art_get_post_icon($icon) . __('Author', THEME_NS) .' '. ob_get_clean();
break;
case 'category':
if(is_page()) break;
$result[] = art_get_post_icon($icon) .sprintf(__('Posted in %s', THEME_NS), get_the_category_list(', '));
break;
case 'tag':
if(is_page() || !get_the_tags()) break;
ob_start();
the_tags(__('Tags:', THEME_NS) . ' ', ', ', ' ');
$result[] = art_get_post_icon($icon) . ob_get_clean();
break;
case 'comments':
if(is_page() || is_single()) break;
ob_start();
comments_popup_link(__('No Comments »', THEME_NS), __('1 Comment »', THEME_NS), __('% Comments »', THEME_NS), '', __('Comments Closed', THEME_NS) );
$result[] = art_get_post_icon($icon) . ob_get_clean();
break;
case 'edit':
if (!current_user_can('edit_post', $post->ID)) break;
ob_start();
edit_post_link(__('Edit', THEME_NS), '');
$result[] = art_get_post_icon($icon) . ob_get_clean();
break;
}
}
$post_title = art_get_post_title();
if ( ($title && strlen($post_title) > 0) || count($result) > 0 )
return art_parse_template("post_metadata".$name, array(
'post_title' => $post_title,
'post'.$name.'icons' => implode(art_option('metadata.separator'), $result)));
return '';
}
function art_get_footer_text() {
$footer_content = art_option('footer.content');
$footer_content = str_replace('%YEAR%', date('Y'), $footer_content);
$footer_content = str_replace('\r\n', "\r\n", $footer_content);
return $footer_content;
}
Alles anzeigen
die haben alles nur was mit date zu tun ( gesucht mit SuFu Strg+F)
Danke hoffe ihr könnt mir helfen :(