Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
small update: thumbnails for teaser chance, favicons removed
Browse files Browse the repository at this point in the history
  • Loading branch information
xwolfde committed Jan 5, 2017
1 parent 438bebc commit ea6e9eb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Theme Piratenkleider
Changelog
(since version 3.2; Former changes look at github.com/Piratenkleider/)

Version 3.4.3:
* set default thumb size for teaser to 150x150
* removed favicon handling: WordPress brings a new customizer for favicon.

Version 3.4.2:
* added commit for ch modification https://github.com/xwolfde/Piratenkleider/commit/44897fa8ef6ca7c19049aa6d32771881e207b467

Expand Down
12 changes: 3 additions & 9 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
$_SERVER['REMOTE_ADDR'] = getAnonymIp($_SERVER['REMOTE_ADDR']);

if ($options['anonymize-user']==1) {
/* IP-Adresse überschreiben */
/* IP-Adresse ueberschreiben */
$_SERVER["REMOTE_ADDR"] = "0.0.0.0";
/* UA-String überschreiben */
/* UA-String ueberschreiben */
$_SERVER["HTTP_USER_AGENT"] = "";
update_option('require_name_email',0);
}
Expand Down Expand Up @@ -500,12 +500,6 @@ function piratenkleider_addmetatags() {
$output .= '<meta name="keywords" content="'.$tags.'">'."\n";
}

if ((isset($options['favicon-file'])) && ($options['favicon-file_id']>0 )) {
$output .= '<link rel="shortcut icon" href="'.$options['favicon-file'].'">'."\n";
} else {
$output .= '<link rel="apple-touch-icon" href="'.get_piratenkleider_template_uri().'/apple-touch-icon.png">'."\n";
$output .= '<link rel="shortcut icon" href="'.get_piratenkleider_template_uri().'/favicon.ico">'."\n";
}
echo $output;
}
add_action('wp_head', 'piratenkleider_addmetatags',1);
Expand All @@ -522,7 +516,7 @@ function piratenkleider_load_open_graph() {
if ($options['open_graph-active']!=true) {
return;
}
// Standard-Grafik für Seiten ohne Beitragsbild
// Standard-Grafik fuer Seiten ohne Beitragsbild
$default_site_logo = wp_make_link_relative(get_header_image());

// Wenn Startseite
Expand Down
17 changes: 5 additions & 12 deletions inc/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
'category-teaser-floating-halfwidth' => 1,
'category-teaser-dateline-halfwidth' => 2,
/* 1 = show Date on line up of the text if no datebox */
'teaser-thumbnail_width' => 120,
'teaser-thumbnail_height' => 120,
'teaser-thumbnail_width' => 150,
'teaser-thumbnail_height' => 150,
'teaser-thumbnail_crop' => 1,

'linktipp-thumbnail_width' => 320,
Expand Down Expand Up @@ -195,12 +195,12 @@
'dir_feed_cache' => '',
'teaserlink1-title' => __( 'Get Informed', 'piratenkleider' ),
'teaserlink1-untertitel' => __( 'about our topics and visions!', 'piratenkleider' ),
'teaserlink1-url' => 'https://www.piratenpartei.de/politik/themen/',
'teaserlink1-url' => 'https://www.piratenpartei.de/politik/',
'teaserlink1-symbol' => 'idee',

'teaserlink2-title' => __( 'Support us', 'piratenkleider' ),
'teaserlink2-untertitel' => __( 'with your engagement!', 'piratenkleider' ),
'teaserlink2-url' => 'https://www.piratenpartei.de/unterstutze-uns/',
'teaserlink2-url' => 'https://spenden.piratenpartei.de/',
'teaserlink2-symbol' => 'herz',

'teaserlink3-title' => __( 'Become a Pirat!', 'piratenkleider' ),
Expand Down Expand Up @@ -2209,14 +2209,7 @@
'title' => __( 'Other options', 'piratenkleider' ),
),

'favicon-file' => array(
'type' => 'image',
'title' => __( 'Favicon', 'piratenkleider' ),
'label' => __( 'Set an own favicon file for your website.', 'piratenkleider' ),
'parent' => 'miscdesign',
'maxwidth' => 64,
'maxheight'=> 64,
),

'src-teaser-thumbnail_default'=> array(
'type' => 'image',
'title' => __( 'Fallback thumbnail', 'piratenkleider' ),
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: Theme for websites of the Pirate Party; It contains several sub-des
Author: xwolf
Author URI: http://www.xwolf.de
Author E-Mail: [email protected]
Version: 3.4.2
Version: 3.4.3
Tags: fluid-layout, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, theme-options
Piratenkleider is distributed under the terms of the GNU GPL
License: GNU General Public License v2.0
Expand Down

0 comments on commit ea6e9eb

Please sign in to comment.