Add Piratenkleider theme
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
40
wp-content/themes/piratenkleider/templates/actionpage.php
Normal file
40
wp-content/themes/piratenkleider/templates/actionpage.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: Actionpage
|
||||
*/
|
||||
?>
|
||||
<?php get_header('actionpage');
|
||||
global $options;
|
||||
?>
|
||||
|
||||
<div class="section content actionpage" id="main-content">
|
||||
<div class="row">
|
||||
<div class="content-primary">
|
||||
<div class="skin">
|
||||
<?php
|
||||
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
||||
<header><h1><?php the_title(); ?></h1></header>
|
||||
<?php
|
||||
echo '<article>';
|
||||
the_content();
|
||||
echo '</article>';
|
||||
|
||||
edit_post_link( __( 'Edit', 'piratenkleider' ), '', '' );
|
||||
|
||||
if ($options['aktiv-commentsonpages']==1) {
|
||||
echo '<div class="post-comments" id="comments">';
|
||||
comments_template( '', true );
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
endwhile;
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_piratenkleider_socialmediaicons(2); ?>
|
||||
</div>
|
||||
|
||||
<?php get_footer('actionpage'); ?>
|
||||
|
||||
138
wp-content/themes/piratenkleider/templates/category-index.php
Normal file
138
wp-content/themes/piratenkleider/templates/category-index.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: Category Index
|
||||
*/
|
||||
?><?php get_header();
|
||||
global $options;
|
||||
|
||||
|
||||
if ( $options['slider-aktiv'] == "1" ){ ?>
|
||||
<div class="section teaser">
|
||||
<div class="row">
|
||||
<?php get_sidebar( 'teaser' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="section content" id="main-content">
|
||||
<div class="row">
|
||||
<div class="content-primary">
|
||||
<div class="skin">
|
||||
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) while ( have_posts() ) : the_post();
|
||||
$content = trim(get_the_content());
|
||||
if (strlen($content)>0) {
|
||||
echo $content;
|
||||
edit_post_link( __( 'Edit', 'piratenkleider' ), '', '' );
|
||||
echo '<hr class="clear">';
|
||||
}
|
||||
endwhile;
|
||||
|
||||
|
||||
$foundarticles=0;
|
||||
$i = 0;
|
||||
|
||||
global $wp_query;
|
||||
|
||||
|
||||
$cat_array = array();
|
||||
$categories=get_categories(array('orderby' => 'name','order' => 'ASC'));
|
||||
foreach($categories as $category) {
|
||||
if (!is_wp_error( $category )) {
|
||||
$cat_array[$category->term_id] = $category->term_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$num = $options['categoryindex-numlinklist'] + 1;
|
||||
wp_reset_query();
|
||||
$subcatquery = array();
|
||||
if ($cat_array) {
|
||||
foreach($cat_array as $cat) {
|
||||
$category = get_term_by('id',$cat, 'category');
|
||||
$title = '<h2>' . $category->name.'</h2>';
|
||||
|
||||
$subcatquery =array(
|
||||
'post_type' => 'post',
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => $num,
|
||||
'cat' => $cat,
|
||||
'ignore_sticky_posts'=> 1
|
||||
);
|
||||
$i=0;
|
||||
$my_query = null;
|
||||
$my_query = new WP_Query($subcatquery);
|
||||
$liste = '';
|
||||
$topentry = '';
|
||||
$catfound = 0;
|
||||
if( $my_query->have_posts() ) {
|
||||
while ($my_query->have_posts()) : $my_query->the_post();
|
||||
$foundarticles =1;
|
||||
$catfound = 1;
|
||||
if ($i==0) {
|
||||
$topentry = piratenkleider_category_teaser($my_query);
|
||||
$i=1;
|
||||
} else {
|
||||
$liste .= '<li><a href="'.get_permalink().'" rel="bookmark">';
|
||||
$liste .= get_the_title();
|
||||
$liste .= "</a></li>\n";
|
||||
}
|
||||
endwhile;
|
||||
|
||||
if ($catfound==1) {
|
||||
echo '<div class="categorybox cat-'.$cat.'">';
|
||||
echo $title;
|
||||
echo $topentry;
|
||||
if (strlen($liste)>0) {
|
||||
echo '<h3 class="skip">Weitere Artikel aus dem Bereich '.$category->name.'</h3>';
|
||||
echo "\n";
|
||||
echo '<ul class="catliste">';
|
||||
echo $liste;
|
||||
echo "</ul>\n";
|
||||
echo '<p><a href="' . esc_attr(get_term_link($category, 'category'))
|
||||
. '" title="' . sprintf( __( "Entries of category %s" , 'piratenkleider'), $category->name )
|
||||
. '" ' . '>'.__('More entries...','piratenkleider').'</a>'.'</p>';
|
||||
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
wp_reset_query();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if ($foundarticles==0) { ?>
|
||||
<h2><?php _e("Nothing found", 'piratenkleider'); ?></h2>
|
||||
<p>
|
||||
<?php _e("No matching pages or entries found. Please try to search with another term.", 'piratenkleider'); ?>
|
||||
</p>
|
||||
<?php get_search_form();
|
||||
echo "<hr>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-aside">
|
||||
<div class="skin">
|
||||
<h1 class="skip"><?php _e( 'More information', 'piratenkleider' ); ?></h1>
|
||||
<?php get_sidebar(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_piratenkleider_socialmediaicons(2); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
303
wp-content/themes/piratenkleider/templates/imprint.php
Normal file
303
wp-content/themes/piratenkleider/templates/imprint.php
Normal file
@@ -0,0 +1,303 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: Imprint
|
||||
*/
|
||||
?>
|
||||
<?php get_header();
|
||||
global $options;
|
||||
?>
|
||||
|
||||
<div class="section content" id="main-content">
|
||||
<div class="row">
|
||||
<div class="content-primary">
|
||||
|
||||
<?php
|
||||
$image_url = '';
|
||||
$image_alt = '';
|
||||
$attribs = array(
|
||||
"credits" => $options['img-meta-credits'],
|
||||
);
|
||||
if (has_post_thumbnail()) {
|
||||
$thumbid = get_post_thumbnail_id(get_the_ID());
|
||||
$image_url_data = wp_get_attachment_image_src( $thumbid, 'full');
|
||||
$image_url = $image_url_data[0];
|
||||
$attribs = piratenkleider_get_image_attributs($thumbid);
|
||||
}
|
||||
if (!(isset($image_url) && (strlen($image_url)>4))) {
|
||||
if (($options['aktiv-platzhalterbilder-indexseiten']==1) && (isset($options['src-default-symbolbild']))) {
|
||||
if (isset($options['src-default-symbolbild_id']) && ($options['src-default-symbolbild_id'] >0)) {
|
||||
$image_url_data = wp_get_attachment_image_src( $options['src-default-symbolbild_id'], 'full');
|
||||
$image_url = $image_url_data[0];
|
||||
$attribs = piratenkleider_get_image_attributs($options['src-default-symbolbild_id']);
|
||||
} else {
|
||||
$image_url = $options['src-default-symbolbild'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($image_url) && (strlen($image_url)>4)) {
|
||||
if ($options['indexseitenbild-size']==1) {
|
||||
echo '<div class="content-header-big">';
|
||||
} else {
|
||||
echo '<div class="content-header">';
|
||||
}
|
||||
?>
|
||||
<h1 class="post-title"><span><?php the_title(); ?></span></h1>
|
||||
<div class="symbolbild"><img src="<?php echo piratenkleider_make_link_relative($image_url); ?>" alt="">
|
||||
<?php if (isset($attribs["credits"]) && (strlen($attribs["credits"])>1)) {
|
||||
echo '<div class="caption">'.$attribs["credits"].'</div>';
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="skin">
|
||||
<?php if (!(isset($image_url) && (strlen($image_url)>4))) { ?>
|
||||
<h1 class="post-title"><span><?php the_title(); ?></span></h1>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ((isset($options['impressumdienstanbieter'])) && (strlen(trim($options['impressumdienstanbieter']))>4)) { ?>
|
||||
<p>
|
||||
<?php _e('This website is brought to you by:','piratenkleider'); ?>
|
||||
<?php echo $options['impressumdienstanbieter']; ?>.
|
||||
</p>
|
||||
<?php } else { ?>
|
||||
<h2><?php echo get_bloginfo( 'name' ) ?></h2>
|
||||
|
||||
<p>
|
||||
<?php echo get_bloginfo( 'description' ) ?>
|
||||
</p>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ((isset($options['impressumperson']))&& (strlen(trim($options['impressumperson']))>1)) { ?>
|
||||
<p><?php _e('Responsible for this website:','piratenkleider'); ?>
|
||||
<?php echo $options['impressumperson']; ?>.
|
||||
</p>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ((isset($options['posttitel'])) && (strlen(trim($options['posttitel']))>1)
|
||||
&& (isset($options['poststrasse']))&& (strlen(trim($options['poststrasse']))>1)
|
||||
&& (isset($options['poststadt'])) && (strlen(trim($options['poststadt']))>1)) { ?>
|
||||
|
||||
<h2><?php _e('Postal address','piratenkleider'); ?></h2>
|
||||
<address>
|
||||
<?php echo $options['posttitel']?><br>
|
||||
<?php if ((isset($options['postperson'])) && (strlen(trim($options['postperson']))>4)) {
|
||||
echo $options['postperson']. "<br>";
|
||||
}
|
||||
echo $options['poststrasse']."<br>";
|
||||
echo $options['poststadt']."<br>";
|
||||
?>
|
||||
</address>
|
||||
<?php } ?>
|
||||
|
||||
<h2><?php _e('Digital contact','piratenkleider'); ?></h2>
|
||||
<ul>
|
||||
<?php if ((isset($options['kontaktemail'])) && (strlen(trim($options['kontaktemail']))>4)) { ?>
|
||||
<li>E-Mail: <a href="mailto:<?php echo $options['kontaktemail']?>"><?php echo $options['kontaktemail']?></a></li>
|
||||
<?php } else { ?>
|
||||
<li>E-Mail: <a href="mailto:<?php echo get_bloginfo( 'admin_email' )?>"><?php echo get_bloginfo( 'admin_email' )?></a></li>
|
||||
<?php }
|
||||
if ((isset($options['kontakttelefon'])) && (strlen(trim($options['kontakttelefon']))>4)) { ?>
|
||||
<li>Telefon: <?php echo $options['kontakttelefon']?></li>
|
||||
<?php }
|
||||
if ((isset($options['kontaktfax'])) && (strlen(trim($options['kontaktfax']))>4)) { ?>
|
||||
<li>Fax: <?php echo $options['kontaktfax']?></li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<?php if ((isset($options['ladungtitel'])) && (strlen(trim($options['ladungtitel']))>1)
|
||||
&& (isset($options['ladungstrasse']))&& (strlen(trim($options['ladungstrasse']))>1)
|
||||
&& (isset($options['ladungstadt'])) && (strlen(trim($options['ladungstadt']))>1)) { ?>
|
||||
<h2><?php _e('Postal address for matters in law','piratenkleider'); ?></h2>
|
||||
<address>
|
||||
<?php
|
||||
echo $options['ladungtitel']."<br>";
|
||||
if ((isset($options['ladungperson'])) && (strlen(trim($options['ladungperson']))>4)) {
|
||||
echo $options['ladungperson']."<br>";
|
||||
}
|
||||
echo $options['ladungstrasse']."<br>";
|
||||
echo $options['ladungstadt']."<br>";
|
||||
?>
|
||||
</address>
|
||||
|
||||
<?php } else {
|
||||
if ((isset($options['posttitel'])) && (strlen(trim($options['posttitel']))>1)
|
||||
&& (isset($options['poststrasse'])) && (strlen(trim($options['poststrasse']))>1)
|
||||
&& (isset($options['poststadt'])) && (strlen(trim($options['poststadt']))>1) ) { ?>
|
||||
<h2><?php _e('Postal address for matters in law','piratenkleider'); ?></h2>
|
||||
<address>
|
||||
<?php
|
||||
echo $options['posttitel']."<br>";
|
||||
if ((isset($options['postperson'])) && (strlen(trim($options['postperson']))>1)) {
|
||||
echo $options['postperson']."<br>";
|
||||
}
|
||||
echo $options['poststrasse']."<br>";
|
||||
echo $options['poststadt']."<br>";
|
||||
?>
|
||||
</address>
|
||||
<?php }
|
||||
|
||||
}
|
||||
|
||||
if ( have_posts() ) while ( have_posts() ) : the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
edit_post_link( __( 'Edit', 'piratenkleider' ), '', '' );
|
||||
|
||||
global $locale;
|
||||
|
||||
$locale_file = get_template_directory() . "/languages/imprint-$locale.php";
|
||||
if ( is_readable( $locale_file ) ) {
|
||||
require_once( $locale_file );
|
||||
} else { ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Copyright Information</h2>
|
||||
<p>
|
||||
This site was built and is provided using open source software.
|
||||
It wouldn't be here without the work of millions of volunteers who contribute
|
||||
to these projects. We use open source tools to do what we do.
|
||||
</p>
|
||||
<ul>
|
||||
<li><a class="extern" href="http://www.jquery.com">JavaScript Framework jQuery</a> (<span lang="en">GNU General Public License (GPL)</span> Version 2)</li>
|
||||
<li><a class="extern" href="http://flex.madebymufffin.com">jQuery FlexSlider</a> (<span lang="en">MIT License</span>)</li>
|
||||
<li><a class="extern bebas" href="http://dharmatype.com/dharma-type/bebas-neue.html">Font Bebas Neue von Dharmatype</a> (<span lang="en">SIL Open Font License</span> 1.1)</li>
|
||||
<li><a class="extern" href="https://www.google.com/fonts/specimen/Droid+Sans">Font DroidSans</a> (<span lang="en">Apache License</span> 2.0)</li>
|
||||
<li><a class="extern" href="http://de.wikipedia.org/wiki/Linux_Libertinel">Font LinLibertine</a> (<span lang="en">SIL Open Font License</span> 1.1)</li>
|
||||
<li><a class="extern" href="http://wiki.piratenpartei.de/Pirate_Design/Aktuell#Schriften">Font PoliticsHead</a> (<span lang="en">WTFPL Licence</span>)</li>
|
||||
<li><a class="extern" href="http://fortawesome.github.io/Font-Awesome/">Font Awesome</a> (<span lang="en">SIL Open Font License</span> 1.1)</li>
|
||||
|
||||
|
||||
<?php
|
||||
$theme_data = wp_get_theme();
|
||||
?>
|
||||
<li><a class="extern" href="<?php echo $theme_data['URI']; ?>">Wordpress Theme <?php echo $theme_data->Name; ?></a>, Version <?php echo $theme_data->Version; ?>
|
||||
(<span lang="en">GNU General Public License (GPL)</span> Version 2) </li>
|
||||
<li><a class="extern" href="http://wiki.piratenpartei.de/Grafiken">Wallpaper and Images by Pirate Party Germany</a></li>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$lizenzen = explode("\n", $options['lizenzen']);
|
||||
if (is_array($lizenzen)) {
|
||||
foreach ($lizenzen as $value) {
|
||||
if (trim($value) != "") {
|
||||
echo "<li>".$value."</li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Privacy Policy</h2>
|
||||
|
||||
<h3>Information You Give Us Directly</h3>
|
||||
<p>
|
||||
In order to run this website, we need to collect, and in some cases process,
|
||||
some information about you. This includes information that you've given to us,
|
||||
such as details you've entered on forms during the signup / membership
|
||||
process or entered as part of commenting on the forums or blog. We may also
|
||||
need to collect details of any communications that you've sent to us.
|
||||
</p>
|
||||
|
||||
<h3>Information You Give Us Indirectly</h3>
|
||||
<p>
|
||||
We may gather and process information about your visits to the site that we get
|
||||
from you or your browser, such as which pages you go to, information and the
|
||||
resources that you've used.
|
||||
<br>
|
||||
We also obtain limited information on your usage through the Piwik analysis service
|
||||
hosted on our own servers, unless you block it using third-party addons to your
|
||||
browser. These data are then aggregated for statistical analysis about our
|
||||
website in order for us to provide a better service and experience and are
|
||||
not used to identify individual habits.
|
||||
</p><p>
|
||||
Any indirect information we get will not identify who you are, but will be
|
||||
numerical data about our visitors and what you do on publicly accessible areas
|
||||
of the site. This information will not contain or process any personal details.
|
||||
</p><p>
|
||||
We might use Cookies to store some of this non-identifiable information.
|
||||
Cookies are small text files that are automatically downloaded to and stored on
|
||||
your computer. If you don't wish to allow Cookies to be used on your computer,
|
||||
you should be able to disable them through your browser:</p>
|
||||
<ul>
|
||||
<li>In Firefox go to the Privacy tab in the Options panel, then select
|
||||
"Never remember history" from the dropdown menu.</li>
|
||||
|
||||
<li> In Internet Explorer 9 by going to Privacy tab in the Internet Options
|
||||
menu, then move the slider up to the top.</li>
|
||||
|
||||
<li> In Chrome going to Options > Under the Hood > Privacy > Content Settings.</li>
|
||||
</ul>
|
||||
<p>
|
||||
Do note that some functions on our website need Cookies to work, so you may have
|
||||
problems using our website with them disabled. If you have any problems with
|
||||
Cookies (or disabling them), let us know and we will try to help.
|
||||
What We Do with Your Information
|
||||
</p>
|
||||
<p>
|
||||
We will never give your information to a third party without your explicit
|
||||
permission, unless compelled to do so by law.
|
||||
</p>
|
||||
Any personal information about you that we do collect and store about you is
|
||||
for the explicit purpose of helping us to provide you a better service.
|
||||
Much of this information is voluntary, and we limit the information we require
|
||||
from our users to the minimum required by Law (in terms of Membership of the Party)
|
||||
and to the minimum required to provide a service (in terms of website account
|
||||
for use of the Forums).
|
||||
</p><p>
|
||||
We may use any contact details you provide to give you information about our
|
||||
campaigns, services, and ongoing development unless you opt out. You are able
|
||||
to opt out of these messages at any time via your profile page.
|
||||
</p><p>
|
||||
We may use any information we collect to fulfil any commitments we've made
|
||||
to you, if the information is needed to do so.
|
||||
</p>
|
||||
|
||||
<h3>Storing Your Information</h3>
|
||||
<p>
|
||||
All information about you that we store will be kept on our secure servers,
|
||||
and any transfer of data will be encrypted to protect your privacy.
|
||||
Sadly, even our IT systems may not be secure 100% all the time, and
|
||||
sending data over the Internet carries some risks, but we guarantee that
|
||||
we will do the best we can to take care of your data. Whenever it is
|
||||
moved we will encrypt it, and we will limit who has access to it within the
|
||||
party to the smallest number of people we need to do the job.
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-aside">
|
||||
<div class="skin">
|
||||
<h1 class="skip"><?php _e( 'More information', 'piratenkleider' ); ?></h1>
|
||||
<?php
|
||||
get_piratenkleider_seitenmenu($options['zeige_sidebarpagemenu'],$options['zeige_subpagesonly'],$options['seitenmenu_mode']);
|
||||
get_sidebar();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_piratenkleider_socialmediaicons(2); ?>
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
133
wp-content/themes/piratenkleider/templates/pageindex.php
Normal file
133
wp-content/themes/piratenkleider/templates/pageindex.php
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: Page Index
|
||||
*/
|
||||
?><?php get_header();
|
||||
global $options;
|
||||
|
||||
if ( $options['slider-aktiv'] == "1" ){ ?>
|
||||
<div class="section teaser">
|
||||
<div class="row">
|
||||
<?php get_sidebar( 'teaser' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="section content" id="main-content">
|
||||
<div class="row">
|
||||
<div class="content-primary">
|
||||
<div class="skin">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) while ( have_posts() ) : the_post();
|
||||
$content = trim(get_the_content());
|
||||
if (strlen($content)>0) {
|
||||
echo $content;
|
||||
edit_post_link( __( 'Edit', 'piratenkleider' ), '', '' );
|
||||
echo '<hr class="clear">';
|
||||
}
|
||||
endwhile;
|
||||
|
||||
$foundarticles=0;
|
||||
$i = 0;
|
||||
|
||||
$cat_array = array();
|
||||
$categories=get_categories(array('orderby' => 'name','order' => 'ASC'));
|
||||
foreach($categories as $category) {
|
||||
if (!is_wp_error( $category )) {
|
||||
$cat_array[$category->term_id] = $category->term_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$my_query = null;
|
||||
|
||||
$num = $options['categoryindex-numlinklist'] + 1;
|
||||
wp_reset_query();
|
||||
$subcatquery = array();
|
||||
if ($cat_array) {
|
||||
foreach($cat_array as $cat) {
|
||||
$category = get_term_by('id',$cat, 'category');
|
||||
$title = '<h2>' . $category->name.'</h2>';
|
||||
|
||||
$subcatquery =array(
|
||||
'post_type' => 'page',
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => $num,
|
||||
'cat' => $cat,
|
||||
'ignore_sticky_posts'=> 1
|
||||
);
|
||||
$i=0;
|
||||
$my_query = null;
|
||||
$my_query = new WP_Query($subcatquery);
|
||||
$liste = '';
|
||||
$topentry = '';
|
||||
$catfound = 0;
|
||||
if( $my_query->have_posts() ) {
|
||||
while ($my_query->have_posts()) : $my_query->the_post();
|
||||
$foundarticles =1;
|
||||
$catfound = 1;
|
||||
if ($i==0) {
|
||||
$topentry = piratenkleider_category_teaser($my_query);
|
||||
$i=1;
|
||||
} else {
|
||||
$liste .= '<li><a href="'.get_permalink().'" rel="bookmark">';
|
||||
$liste .= get_the_title();
|
||||
$liste .= "</a></li>\n";
|
||||
}
|
||||
endwhile;
|
||||
|
||||
if ($catfound==1) {
|
||||
echo '<div class="categorybox cat-'.$cat.'">';
|
||||
echo $title;
|
||||
echo $topentry;
|
||||
if (strlen($liste)>0) {
|
||||
echo '<h3 class="skip">More entries by category '.$category->name.'</h3>';
|
||||
echo "\n";
|
||||
echo '<ul class="catliste">';
|
||||
echo $liste;
|
||||
echo "</ul>\n";
|
||||
echo '<p><a href="' . esc_attr(get_term_link($category, 'category'))
|
||||
. '" title="' . sprintf( __( "Entries by category %s" , 'piratenkleider'), $category->name )
|
||||
. '" ' . '>'.__('More entries...','piratenkleider').'</a>'.'</p>';
|
||||
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
}
|
||||
wp_reset_query();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($foundarticles==0) { ?>
|
||||
<h2><?php _e("Nothing found", 'piratenkleider'); ?></h2>
|
||||
<p>
|
||||
<?php _e("No matching pages or entries found. Please try to search with another term.", 'piratenkleider'); ?>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<?php _e("Notice for authors and blog-admins: Top make pages show in this index, article-authors have to set categories on them.", 'piratenkleider'); ?>
|
||||
</p>
|
||||
<?php get_search_form();
|
||||
echo "<hr>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-aside">
|
||||
<div class="skin">
|
||||
<h1 class="skip"><?php _e( 'More information', 'piratenkleider' ); ?></h1>
|
||||
<?php get_sidebar(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_piratenkleider_socialmediaicons(2); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
182
wp-content/themes/piratenkleider/templates/privacy-policy.php
Normal file
182
wp-content/themes/piratenkleider/templates/privacy-policy.php
Normal file
@@ -0,0 +1,182 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: Privacy policy
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
get_header();
|
||||
global $options;
|
||||
?>
|
||||
|
||||
<div class="section content" id="main-content">
|
||||
<div class="row">
|
||||
<div class="content-primary">
|
||||
|
||||
<?php
|
||||
$image_url = '';
|
||||
$image_alt = '';
|
||||
$attribs = array(
|
||||
"credits" => $options['img-meta-credits'],
|
||||
);
|
||||
if (has_post_thumbnail()) {
|
||||
$thumbid = get_post_thumbnail_id(get_the_ID());
|
||||
$image_url_data = wp_get_attachment_image_src( $thumbid, 'full');
|
||||
$image_url = $image_url_data[0];
|
||||
$attribs = piratenkleider_get_image_attributs($thumbid);
|
||||
}
|
||||
if (!(isset($image_url) && (strlen($image_url)>4))) {
|
||||
if (($options['aktiv-platzhalterbilder-indexseiten']==1) && (isset($options['src-default-symbolbild']))) {
|
||||
if (isset($options['src-default-symbolbild_id']) && ($options['src-default-symbolbild_id'] >0)) {
|
||||
$image_url_data = wp_get_attachment_image_src( $options['src-default-symbolbild_id'], 'full');
|
||||
$image_url = $image_url_data[0];
|
||||
$attribs = piratenkleider_get_image_attributs($options['src-default-symbolbild_id']);
|
||||
} else {
|
||||
$image_url = $options['src-default-symbolbild'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($image_url) && (strlen($image_url)>4)) {
|
||||
if ($options['indexseitenbild-size']==1) {
|
||||
echo '<div class="content-header-big">';
|
||||
} else {
|
||||
echo '<div class="content-header">';
|
||||
}
|
||||
?>
|
||||
<h1 class="post-title"><span><?php the_title(); ?></span></h1>
|
||||
<div class="symbolbild"><img src="<?php echo piratenkleider_make_link_relative($image_url); ?>" alt="">
|
||||
<?php if (isset($attribs["credits"]) && (strlen($attribs["credits"])>1)) {
|
||||
echo '<div class="caption">'.$attribs["credits"].'</div>';
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="skin">
|
||||
<?php if (!(isset($image_url) && (strlen($image_url)>4))) { ?>
|
||||
<h1 class="post-title"><span><?php the_title(); ?></span></h1>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
global $locale;
|
||||
|
||||
$locale_file = get_template_directory() . "/languages/privacy-policy-$locale.php";
|
||||
if ( is_readable( $locale_file ) ) {
|
||||
require_once( $locale_file );
|
||||
} else { ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Privacy Policy</h2>
|
||||
|
||||
<h3>Information You Give Us Directly</h3>
|
||||
<p>
|
||||
In order to run this website, we need to collect, and in some cases process,
|
||||
some information about you. This includes information that you've given to us,
|
||||
such as details you've entered on forms during the signup / membership
|
||||
process or entered as part of commenting on the forums or blog. We may also
|
||||
need to collect details of any communications that you've sent to us.
|
||||
</p>
|
||||
|
||||
<h3>Information You Give Us Indirectly</h3>
|
||||
<p>
|
||||
We may gather and process information about your visits to the site that we get
|
||||
from you or your browser, such as which pages you go to, information and the
|
||||
resources that you've used.
|
||||
<br>
|
||||
We also obtain limited information on your usage through the Piwik analysis service
|
||||
hosted on our own servers, unless you block it using third-party addons to your
|
||||
browser. These data are then aggregated for statistical analysis about our
|
||||
website in order for us to provide a better service and experience and are
|
||||
not used to identify individual habits.
|
||||
</p><p>
|
||||
Any indirect information we get will not identify who you are, but will be
|
||||
numerical data about our visitors and what you do on publicly accessible areas
|
||||
of the site. This information will not contain or process any personal details.
|
||||
</p><p>
|
||||
We might use Cookies to store some of this non-identifiable information.
|
||||
Cookies are small text files that are automatically downloaded to and stored on
|
||||
your computer. If you don't wish to allow Cookies to be used on your computer,
|
||||
you should be able to disable them through your browser:</p>
|
||||
<ul>
|
||||
<li>In Firefox go to the Privacy tab in the Options panel, then select
|
||||
"Never remember history" from the dropdown menu.</li>
|
||||
|
||||
<li> In Internet Explorer 9 by going to Privacy tab in the Internet Options
|
||||
menu, then move the slider up to the top.</li>
|
||||
|
||||
<li> In Chrome going to Options > Under the Hood > Privacy > Content Settings.</li>
|
||||
</ul>
|
||||
<p>
|
||||
Do note that some functions on our website need Cookies to work, so you may have
|
||||
problems using our website with them disabled. If you have any problems with
|
||||
Cookies (or disabling them), let us know and we will try to help.
|
||||
What We Do with Your Information
|
||||
</p>
|
||||
<p>
|
||||
We will never give your information to a third party without your explicit
|
||||
permission, unless compelled to do so by law.
|
||||
</p>
|
||||
Any personal information about you that we do collect and store about you is
|
||||
for the explicit purpose of helping us to provide you a better service.
|
||||
Much of this information is voluntary, and we limit the information we require
|
||||
from our users to the minimum required by Law (in terms of Membership of the Party)
|
||||
and to the minimum required to provide a service (in terms of website account
|
||||
for use of the Forums).
|
||||
</p><p>
|
||||
We may use any contact details you provide to give you information about our
|
||||
campaigns, services, and ongoing development unless you opt out. You are able
|
||||
to opt out of these messages at any time via your profile page.
|
||||
</p><p>
|
||||
We may use any information we collect to fulfil any commitments we've made
|
||||
to you, if the information is needed to do so.
|
||||
</p>
|
||||
|
||||
<h3>Storing Your Information</h3>
|
||||
<p>
|
||||
All information about you that we store will be kept on our secure servers,
|
||||
and any transfer of data will be encrypted to protect your privacy.
|
||||
Sadly, even our IT systems may not be secure 100% all the time, and
|
||||
sending data over the Internet carries some risks, but we guarantee that
|
||||
we will do the best we can to take care of your data. Whenever it is
|
||||
moved we will encrypt it, and we will limit who has access to it within the
|
||||
party to the smallest number of people we need to do the job.
|
||||
</p>
|
||||
|
||||
<?php }
|
||||
if ( have_posts() ) while ( have_posts() ) : the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
edit_post_link( __( 'Edit', 'piratenkleider' ), '', '' );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-aside">
|
||||
<div class="skin">
|
||||
|
||||
<h1 class="skip"><?php _e( 'More information', 'piratenkleider' ); ?></h1>
|
||||
<?php
|
||||
|
||||
get_piratenkleider_seitenmenu($options['zeige_sidebarpagemenu'],$options['zeige_subpagesonly'],$options['seitenmenu_mode']);
|
||||
get_sidebar(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php get_piratenkleider_socialmediaicons(2); ?>
|
||||
</div>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user