This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ---------------------------- | |
simple reset: | |
http://www.maxdesign.com.au/articles/css-reset/ | |
---------------------------- */ | |
html, body, ul, ol, li, form, fieldset, legend | |
{ | |
margin: 0; | |
padding: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^(.*)alte-domain.de [NC] | |
RewriteRule ^(.*)$ http://neue-domain.de/$1 [R=301,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Die Kategorie "<?php single_cat_title(''); ?>"</h2> | |
<div class="kategorie-info"> | |
<p>Hier sind alle Beiträge aufgelistet, die in die Kategorie <strong><?php single_cat_title(''); ?></strong> einsortiert wurden. Die Beschreibung dieser Kategorie lautet:</p> | |
<?php echo category_description($cat); ?> | |
<p>Du hast die Möglichkeit den <a href="<?php echo get_category_link($cat); ?>feed/" class="fett">RSS-Feed</a> speziell nur für diese Kategorie zu abonnieren.</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('admin_footer','posts_status_color'); | |
function posts_status_color() { | |
echo "<style> | |
.status-draft{background: #fc9 !important;} | |
.status-pending{background: #6cc !important;} | |
.status-publish{/* am besten keine Angabe um wechselnden Farbangaben zu lassen */} | |
.status-future{background: #cf0 !important;} | |
.status-private{background: #ffc;} | |
</style>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Unterstützung für Vorschaubilder sollte schon aktiv sein | |
add_theme_support('post-thumbnails'); | |
// die gewünschten neuen Bilderformate | |
add_image_size('vorschaubild', 125, 125, true); | |
add_image_size('produktbild', 500, 350); | |
// macht die neuen Formate im Backend sichtbar und auswählbar | |
add_filter('image_size_names_choose', 'custom_image_sizes_choose'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Von <a href="<?php the_author_meta('user_url'); ?>" class="artikel-autor" rel="author"><?php the_author_meta('display_name'); ?></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Excerpts auf Seiten | |
add_post_type_support('page', 'excerpt'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//oEmbed-Breite | |
if (!isset($content_width)) $content_width = 550; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function aktualisierung() | |
{ | |
$artikel_erstellt = get_the_date('U'); | |
$artikel_aktualisiert = get_post_modified_time('U'); | |
// Nur Aktualisierungen die älter als 12h sind werden berücksichtigt | |
if (($artikel_aktualisiert - $artikel_erstellt ) > 43200) | |
{ | |
echo ' – Aktualisiert am ' . get_the_modified_date('d.m.Y') . ' um ' . get_post_modified_time('H:i'); |
OlderNewer