Navigation Menu

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

Commit

Permalink
Version 3.4.8:
Browse files Browse the repository at this point in the history
* deactived relative links
  • Loading branch information
xwolfde committed Nov 2, 2017
1 parent fc554a7 commit e3f3590
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Expand Up @@ -3,6 +3,9 @@ Theme Piratenkleider
Changelog
(since version 3.2; Former changes look at github.com/Piratenkleider/)

Version 3.4.8:
* Deactivated functions to make links relative due to several prolems

Version 3.4.7:
* User Agent String set from emoty to "Browser anonymized"
* Width of Piratewiki Symbol to 16px
Expand Down
4 changes: 4 additions & 0 deletions css/basemod_linkicons.css
Expand Up @@ -229,3 +229,7 @@ a.rsswidget:before,
width: 0;
content: normal;
}

.content-primary #ai1ec-container a:before {
content: inherit;
}
12 changes: 6 additions & 6 deletions functions.php
Expand Up @@ -1636,15 +1636,15 @@ function piratenkleider_make_nice_links($content) {
$new_content = preg_replace('~<(?:!DOCTYPE|/?(?:html|body))[^>]*>\s*~i', '', $new_content);
return $new_content;
}
add_filter('the_content', 'piratenkleider_make_nice_links');
// add_filter('the_content', 'piratenkleider_make_nice_links');


function get_piratenkleider_template_uri () {
return wp_make_link_relative(get_template_directory_uri());
}


add_action('template_redirect', 'rw_relative_urls');
// add_action('template_redirect', 'rw_relative_urls');
function rw_relative_urls() {
// Don't do anything if:
// - In feed
Expand Down Expand Up @@ -1980,7 +1980,7 @@ function piratenkleider_page_template($t) {
function featured_image_in_rss($content) {
global $post;
global $options;
// Überprüfen, ob Artikel ein Beitragsbild hat
//Check for page image

if(is_feed() && $options['feed-addthumbnail']) {
if (!isHTML($content)) {
Expand All @@ -2004,7 +2004,7 @@ function featured_image_in_rss($content) {
return $content;
}

//Filter für RSS-Content
//Filter RSS-Content
add_filter('the_content_feed', 'featured_image_in_rss');
add_filter('the_excerpt_rss', 'featured_image_in_rss');

Expand All @@ -2017,10 +2017,10 @@ function isHTML($text){

function piratenkleider_admin_init() {
remove_post_type_support( 'page', 'comments' );
// Keine Kommentar/Dkussionsmetabox auf Seiten
// No comments on pages
$role = get_role('editor');
$role->add_cap('edit_dashboard');
// Statify zulassen für Redakteure
// Statify for Editors
}

add_action('admin_init', 'piratenkleider_admin_init');
2 changes: 1 addition & 1 deletion readme.txt
Expand Up @@ -2,7 +2,7 @@ Piratenkleider
- Wordpress-Theme for websites of the Pirate Party
====================================================

Version 3.4.5 by Wolfgang Wiese (xwolf), 04.02.2017
Version 3.4.8 by Wolfgang Wiese (xwolf), 01.11.2017



Expand Down
2 changes: 1 addition & 1 deletion style.css
Expand Up @@ -6,7 +6,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: info@piratenkleider.de
Version: 3.4.7
Version: 3.4.8
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 e3f3590

Please sign in to comment.