Compare commits

...

16 Commits

Author SHA1 Message Date
Alexander Bigga 260ecb3b1a Merge pull request 'Fix exception with PHP 8.2' (#5) from hotfix-php-8.2 into main
Reviewed-on: #5
2024-02-05 09:32:05 +01:00
Alexander Bigga 4b0e3a4b56 Rise version number 2.0.8 2024-02-05 09:31:25 +01:00
Alexander Bigga 5a0f589a7a Fix exception with PHP 8.2 2024-02-05 09:26:48 +01:00
Erwin Behner a4338cf59b Merge pull request 'V2.0.7' (#3) from devel-207 into main
Reviewed-on: #3
2021-06-26 11:04:50 +02:00
Erwin Behner 31bc67f0ea V2.0.7
Autor geändert
2021-06-26 10:56:19 +02:00
Erwin Behner 6e9ad12eaa End of Support
Aktualisierung wurde eingestellt. 
Für Nachfragen: https://chatbegruenung.de/channel/wordpress
2021-06-26 10:52:32 +02:00
Erwin Behner 727ce9f157 Merge pull request 'Googleplus entfernen' (#1) from erwin.behner-patch-1 into devel-207
Reviewed-on: #1
2021-06-24 22:27:44 +02:00
Erwin Behner 463fb2bbfc V2.0.7
Googleplus entfernt (Vorschlag von Florian Bieser)
2021-06-23 19:12:47 +02:00
Erwin Behner 8ec2c5e4ac V2.0.7
Googleplus entfernt (Vorschlag von Florian Bieser)
2021-06-23 19:03:49 +02:00
Erwin Behner f34b62b684 Ersetzt durch redaktionshandbuch_jkb.pdf 2021-06-23 00:07:36 +02:00
Erwin Behner fbdecaa8d4 Ersetzt durch redaktionshandbuch_jkb.odt 2021-06-23 00:07:04 +02:00
Erwin Behner 27b10dc8d2 V2.0.7
Fehlendes endif wurde ergänzt
2021-06-23 00:01:35 +02:00
Erwin Behner 00b6969974 „page-listview-206.php“ löschen 2021-06-22 23:54:56 +02:00
Erwin Behner 61e3ea3923 „page-listview-204.php“ löschen 2021-06-22 23:54:35 +02:00
Erwin Behner 8558338c42 Fehlendes endif ergänzt 2021-06-22 22:52:58 +02:00
Willi Junga fb0664a26e
initial commit of changes from https://wolke.netzbegruenung.de/s/bazEe4iStpfrCTF 2021-06-22 20:59:03 +02:00
27 changed files with 5008 additions and 4951 deletions

7
README
View File

@ -1,11 +1,10 @@
=======================================
Joseph knows best
=======================================
Komplexes Wordpress-Theme für GRÜNE Landesverbände
http://gruene-nrw.de
Komplexes Wordpress-Theme insbesondere für GRÜNE Landesverbände
Komplexes Wordpress-Theme, das auf gruene-nrw.de zum Einsatz kommt. Auch hervorragend für andere Landesverbände nutzbar, bietet viele Funktionen.
Komplexes Wordpress-Theme, das für gruene-nrw.de entwickelt wurde. Auch hervorragend für andere Landesverbände nutzbar, bietet viele Funktionen.
Das Theme stellen wir frei zur Verfügung und aktualisieren es regelmäßig gemäß unserer eigenen Bedürfnisse. Support-Anfragen und Features können idR nicht übernommen werden!
Das Theme stellen wir frei zur Verfügung. Eine Aktualisierung ist nicht mehr vorgesehen. Support-Anfragen und Features können idR nicht übernommen werden! Für Nachfragen bitte https://chatbegruenung.de/channel/wordpress nutzen.
Einige Features: Story-Telling/Scrolly-Telling, eigene Post-Types für Köpfe & Gliederungen, mobile First, etc.

View File

@ -5,9 +5,11 @@
<?php
$email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
$email = antispambot($email);
$www = get_post_meta( $post->ID, 'kr8mb_gli_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_gli_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
$instagram = get_post_meta( $post->ID, 'kr8mb_gli_contact_instagram', true );
?>
@ -23,6 +25,7 @@
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-instagram"></i></a><?php } ?>
</p>

View File

@ -5,9 +5,11 @@
<?php
$email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
$email = antispambot($email);
$www = get_post_meta( $post->ID, 'kr8mb_gli_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_gli_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
$instagram = get_post_meta( $post->ID, 'kr8mb_gli_contact_instagram', true );
?>
@ -21,8 +23,9 @@
<p class="contact">
<?php if (! empty ($www )){ ?><a href="mailto:<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="mailto:<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="mailto:<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-instagram"></i></a><?php } ?>
</p>

View File

@ -6,9 +6,11 @@
<?php
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$email = antispambot($email);
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$instagram = get_post_meta( $post->ID, 'kr8mb_pers_contact_instagram', true );
$shortbio = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', true );
?>
@ -26,6 +28,7 @@
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>" title="Zum Instagram-Profil von <?php the_title(); ?>"><i class="fa fa-instagram"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>

View File

@ -6,6 +6,7 @@
<?php
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$email = antispambot($email);
$telefon = get_post_meta( $post->ID, 'kr8mb_pers_contact_telefon', true );
?>

View File

@ -6,6 +6,7 @@
<?php
$nr = get_post_meta( $post->ID, 'kr8mb_pers_pos_listenplatz', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$email = antispambot($email);
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );

View File

@ -6,9 +6,11 @@
<?php
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$email = antispambot($email);
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$instagram = get_post_meta( $post->ID, 'kr8mb_pers_contact_instagram', true );
$wahlkreis = get_post_meta( $post->ID, 'kr8mb_pers_pos_wahlkreis', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', true );
?>
@ -27,6 +29,7 @@
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>" title="Zum Instagram-Profil von <?php the_title(); ?>"><i class="fa fa-instagram"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>

View File

@ -6,6 +6,7 @@
<?php
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$email = antispambot($email);
$telefon = get_post_meta( $post->ID, 'kr8mb_pers_contact_telefon', true );
?>

View File

@ -6,9 +6,11 @@
<?php
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$email = antispambot($email);
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$instagram = get_post_meta( $post->ID, 'kr8mb_pers_contact_instagram', true );
$shortbio = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', true );
?>
@ -26,6 +28,7 @@
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>" title="Zum Instagram-Profil von <?php the_title(); ?>"><i class="fa fa-instagram"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>

View File

@ -47,6 +47,7 @@
if (! empty ($www )){ ?><a href="<?php echo $www; ?>"><span class="fa fa-globe"></span></a><?php } ?>
<?php $email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
$email = antispambot($email);
if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>"><span class="fa fa-envelope"></span></a><?php } ?>
@ -56,6 +57,9 @@
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fa fa-twitter"></span></a><?php } ?>
<?php $instagram = get_post_meta( $post->ID, 'kr8mb_gli_contact_instagram', true );
if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>"><span class="fa fa-instagram"></span></a><?php } ?>
</div>

View File

@ -50,6 +50,9 @@
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fa fa-twitter"></span></a><?php } ?>
<?php $instagram = get_post_meta( $post->ID, 'kr8mb_pers_contact_instagram', true );
if (! empty ($instagram )){ ?><a href="<?php echo $instagram; ?>"><span class="fa fa-instagram"></span></a><?php } ?>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -746,7 +746,6 @@ function kr8_socialshare() { ?>
<a href="https://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink() ?>" class="twitter" title="Artikel twittern" rel="nofollow"><i class="fa fa-twitter"></i><span>Twitter</span></a>
<a href="whatsapp://send?abid=256&text=Schau%20Dir%20das%20mal%20an%3A%20<?php the_permalink(); ?>" class="whatsapp" title="Per WhatsApp verschicken" rel="nofollow"><i class="fa fa-whatsapp"></i><span>WhatsApp</span></a>
<a href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink() ?>" class="facebook" title="Auf Facebook teilen" rel="nofollow"><i class="fa fa-thumbs-o-up"></i><span>Facebook</span></a>
<a href="https://plus.google.com/share?url=<?php the_permalink() ?>" class="google" rel="nofollow"><i class="fa fa-google-plus"></i><span>Google+</span></a>
<a href="mailto:?subject=Das musst Du lesen: <?php echo rawurlencode(get_the_title()); ?>&body=Hey, schau Dir das mal den Artikel auf <?php bloginfo('name'); ?> an: <?php the_permalink(); ?>" title="Per E-Mail weiterleiten" class="email" rel="nofollow"><i class="fa fa-envelope"></i><span>E-Mail</span></a>
</p>
</div>

View File

@ -431,6 +431,7 @@ function kr8mb_gli_contact_cb($post)
$email = isset( $values['kr8mb_gli_contact_email'] ) ? esc_attr( $values['kr8mb_gli_contact_email'][0] ) : '';
$facebook = isset( $values['kr8mb_gli_contact_facebook'] ) ? esc_attr( $values['kr8mb_gli_contact_facebook'][0] ) : '';
$twitter = isset( $values['kr8mb_gli_contact_twitter'] ) ? esc_attr( $values['kr8mb_gli_contact_twitter'][0] ) : '';
$instagram = isset( $values['kr8mb_gli_contact_instagram'] ) ? esc_attr( $values['kr8mb_gli_contact_instagram'][0] ) : '';
$anschrift = isset( $values['kr8mb_gli_contact_anschrift'] ) ? esc_html( $values['kr8mb_gli_contact_anschrift'][0] ) : '';
$telefon = isset( $values['kr8mb_gli_contact_telefon'] ) ? esc_html( $values['kr8mb_gli_contact_telefon'][0] ) : '';
$selected = isset( $values['my_meta_box_select'] ) ? esc_attr( $values['my_meta_box_select'][0] ) : '';
@ -455,6 +456,12 @@ function kr8mb_gli_contact_cb($post)
<th scope="row"><label for="kr8mb_gli_contact_twitter">Twitter</label></th>
<td><input type="text" name="kr8mb_gli_contact_twitter" id="kr8mb_gli_contact_twitter" value="<?php echo $twitter; ?>" /><br><span class="description">Nur der Twitter-Nutzername ohne @, z.b. gruenenrw.</span></td>
</tr>
<tr>
<th scope="row"><label for="kr8mb_gli_contact_instagram">Instagram</label></th>
<td><input type="text" name="kr8mb_gli_contact_instagram" id="kr8mb_gli_contact_instagram" value="<?php echo $instagram; ?>" /><br><span class="description">Vollständiger Link zum Instagram-Profil, inkl. http://</span></td>
<th scope="row"></th>
<td></td>
</tr>
<tr>
<th scope="row"><label for="kr8mb_gli_contact_anschrift">Anschrift</label></th>
<td><textarea name="kr8mb_gli_contact_anschrift" id="kr8mb_gli_contact_anschrift"><?php echo $anschrift; ?></textarea><br><span class="description">Platz für Anschrift, Telefon, Fax, etc.</span></td>
@ -497,6 +504,8 @@ function kr8mb_gli_contact_save( $post_id )
update_post_meta( $post_id, 'kr8mb_gli_contact_facebook', wp_kses( $_POST['kr8mb_gli_contact_facebook'], $allowed ) );
if( isset( $_POST['kr8mb_gli_contact_twitter'] ) )
update_post_meta( $post_id, 'kr8mb_gli_contact_twitter', wp_kses( $_POST['kr8mb_gli_contact_twitter'], $allowed ) );
if( isset( $_POST['kr8mb_gli_contact_instagram'] ) )
update_post_meta( $post_id, 'kr8mb_gli_contact_instagram', wp_kses( $_POST['kr8mb_gli_contact_instagram'], $allowed ) );
if( isset( $_POST['kr8mb_gli_contact_telefon'] ) )
update_post_meta( $post_id, 'kr8mb_gli_contact_telefon', wp_kses( $_POST['kr8mb_gli_contact_telefon'], $allowed ) );
if( isset( $_POST['kr8mb_gli_contact_anschrift'] ) )

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
<?php
<?php
//Alle Bildgrößen Verfügbar machen
add_filter( 'image_size_names_choose', 'sir_image_sizes_choose' );
@ -14,7 +14,7 @@ function sir_image_sizes_choose( $Sizes ) {
return array_merge( $CustomSizes, $Sizes );
}
// sidebars
if ( function_exists('register_sidebars') )
register_sidebars(0);
@ -33,7 +33,7 @@ if (!function_exists('kr8_register_sidebars')) {
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Startseite - Artikel',
'description' => 'Artikel auf der Startseite',
@ -43,9 +43,9 @@ if (!function_exists('kr8_register_sidebars')) {
'before_title' => "\n\t" . '<h1>',
'after_title' => '</h1>',
));
register_sidebar(array(
'name' => 'Kampagnenseite - Actionbox',
'description' => 'Drei Widgets: Werde aktiv',
@ -54,8 +54,8 @@ if (!function_exists('kr8_register_sidebars')) {
'after_widget' => '</div>',
'before_title' => "\n\t" . '<h3>',
'after_title' => '</h3>',
));
));
register_sidebar(array(
'name' => 'Kampagnenseite - Infobox',
'description' => 'Drei Widgets: Erfahre mehr',
@ -64,9 +64,9 @@ if (!function_exists('kr8_register_sidebars')) {
'after_widget' => '</div>',
'before_title' => "\n\t" . '<h3>',
'after_title' => '</h3>',
));
));
register_sidebar(array(
'name' => 'Startseite - Infoleiste',
'description' => 'Infospalte der Startseite',
@ -75,9 +75,9 @@ if (!function_exists('kr8_register_sidebars')) {
'after_widget' => '</div>',
'before_title' => "\n\t" . '<h3>',
'after_title' => '</h3>',
));
));
register_sidebar(array(
'name' => 'Presse',
'description' => 'Widgets in der Kategory Presse',
@ -87,7 +87,7 @@ if (!function_exists('kr8_register_sidebars')) {
'before_title' => "\n\t" . '<h3 class="widgettitle">',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Fussleiste',
'description' => 'Platz für Widgets in der Fußleiste.',
@ -98,12 +98,12 @@ if (!function_exists('kr8_register_sidebars')) {
'after_title' => '</h3>',
));
}
}
}
@ -118,24 +118,27 @@ function kr8_wpsearch($form) {
</button>
</form></section>';
return $form;
}
}
/************* SOCIAL MEDIA WIDGET *****************/
class kr8_socialmedia extends WP_Widget {
function kr8_socialmedia() {
public function __construct() {
$widget_ops = array('description' => 'Links zu deinen Profilen in den Sozialen Netzwerken.');
parent::WP_Widget(false, __('Social Media Links'),$widget_ops);
parent::__construct(
'kr8_socialmedia',
__('Social Media Links'),
$widget_ops
);
}
function widget($args, $instance) {
function widget($args, $instance) {
extract( $args );
$title = $instance['title'];
$twitter = $instance['twitter'];
$facebook = $instance['facebook'];
$googleplus = $instance['googleplus'];
$flickr = $instance['flickr'];
$instagram = $instance['instagram'];
$youtube = $instance['youtube'];
@ -147,36 +150,30 @@ function kr8_wpsearch($form) {
$tumblr = $instance['tumblr'];
$rss = $instance['rss'];
$rsscomments = $instance['rsscomments'];
echo $before_widget; ?>
<?php if($title != '')
echo '<h3 class="widgettitle">'.$title.'</h3>'; ?>
<ul class="sociallinks">
<?php
<?php
if($twitter != '') {
echo '<li><a href="https://twitter.com/'.$twitter.'" title="Twitter"><span class="fa fa-fw fa-twitter"></span><span class="hidden">Twitter</span></a></li>';
}
?>
<?php
<?php
if($facebook != '') {
echo '<li><a href="'.$facebook.'"title="Facebook"><span class="fa fa-fw fa-facebook"></span><span class="hidden">Facebook</span></a></li>';
}
?>
<?php
if($googleplus != '') {
echo '<li><a href="'.$googleplus.'" title="Google+"><span class="fa fa-fw fa-google-plus"></span><span class="hidden">Google+</span></a></li>';
}
?>
<?php if($flickr != '') {
echo '<li><a href="'.$flickr.'" title="Flickr"><span class="fa fa-fw fa-flickr"></span><span class="hidden">Flickr</span></a></li>';
}
?>
<?php if($instagram != '') {
echo '<li><a href="'.$instagram.'" title="Instagram"><span class="fa fa-fw fa-instagram"></span><span class="hidden">Instagram</span></a></li>';
}
@ -201,7 +198,7 @@ function kr8_wpsearch($form) {
echo '<li><a href="'.$foursquare.'" title="Foursquare"><span class="fa fa-fw fa-foursquare"></span><span class="hidden">Foursquare</span></a></li>';
}
?>
<?php if($pinterest != '') {
echo '<li><a href="'.$pinterest.'" title="Pinterst"><span class="fa fa-fw fa-pinterest"></span><span class="hidden">Pinterest</span></a></li>';
}
@ -211,12 +208,12 @@ function kr8_wpsearch($form) {
echo '<li><a href="'.$xing.'" title="Xing"><span class="fa fa-fw fa-xing"></span><span class="hidden">Xing</span></a></li>';
}
?>
<?php if($tumblr != '') {
echo '<li><a href="'.$tumblr.'" title="Tumblr"><span class="fa fa-fw fa-tumblr"></span><span class="hidden">Tumblr</span></a></li>';
}
?>
<?php if($rss != '') {
echo '<li><a href="'.$rss.'" title="RSS Feed"><span class="fa fa-fw fa-rss"></span><span class="hidden">RSS Feed</span></a></li>';
}
@ -229,19 +226,18 @@ function kr8_wpsearch($form) {
</ul><!-- end .sociallinks -->
<?php
<?php
echo $after_widget;
}
function update($new_instance, $old_instance) {
function update($new_instance, $old_instance) {
return $new_instance;
}
function form($instance) {
function form($instance) {
$title = esc_attr($instance['title']);
$twitter = esc_attr($instance['twitter']);
$facebook = esc_attr($instance['facebook']);
$googleplus = esc_attr($instance['googleplus']);
$flickr = esc_attr($instance['flickr']);
$instagram = esc_attr($instance['instagram']);
$youtube = esc_attr($instance['youtube']);
@ -254,7 +250,7 @@ function kr8_wpsearch($form) {
$rss = esc_attr($instance['rss']);
$rsscomments = esc_attr($instance['rsscomments']);
?>
<p>
@ -271,17 +267,12 @@ function kr8_wpsearch($form) {
<label for="<?php echo $this->get_field_id('facebook'); ?>"><?php _e('Facebook URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('facebook'); ?>" value="<?php echo $facebook; ?>" class="widefat" id="<?php echo $this->get_field_id('facebook'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('googleplus'); ?>"><?php _e('Google+ URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('googleplus'); ?>" value="<?php echo $googleplus; ?>" class="widefat" id="<?php echo $this->get_field_id('googleplus'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('flickr'); ?>"><?php _e('Flickr URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('flickr'); ?>" value="<?php echo $flickr; ?>" class="widefat" id="<?php echo $this->get_field_id('flickr'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('instagram'); ?>"><?php _e('Instagram URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('instagram'); ?>" value="<?php echo $instagram; ?>" class="widefat" id="<?php echo $this->get_field_id('instagram'); ?>" />
@ -291,12 +282,12 @@ function kr8_wpsearch($form) {
<label for="<?php echo $this->get_field_id('youtube'); ?>"><?php _e('YouTube URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('youtube'); ?>" value="<?php echo $youtube; ?>" class="widefat" id="<?php echo $this->get_field_id('youtube'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('vimeo'); ?>"><?php _e('Vimeo URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('vimeo'); ?>" value="<?php echo $vimeo; ?>" class="widefat" id="<?php echo $this->get_field_id('vimeo'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('pinterest'); ?>"><?php _e('Pinterest URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('pinterest'); ?>" value="<?php echo $pinterest; ?>" class="widefat" id="<?php echo $this->get_field_id('pinterest'); ?>" />
@ -322,34 +313,34 @@ function kr8_wpsearch($form) {
<label for="<?php echo $this->get_field_id('tumblr'); ?>"><?php _e('Tumblr URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('tumblr'); ?>" value="<?php echo $xing; ?>" class="widefat" id="<?php echo $this->get_field_id('tumblr'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('rss'); ?>"><?php _e('RSS-Feed URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('rss'); ?>" value="<?php echo $rss; ?>" class="widefat" id="<?php echo $this->get_field_id('rss'); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('rsscomments'); ?>"><?php _e('RSS for Comments URL:'); ?></label>
<input type="text" name="<?php echo $this->get_field_name('rsscomments'); ?>" value="<?php echo $rsscomments; ?>" class="widefat" id="<?php echo $this->get_field_id('rsscomments'); ?>" />
</p>
<?php
}
}
}
/************* TEASER ARTIKEL WIDGET *****************/
class kr8_teaserarticle extends WP_Widget
class kr8_teaserarticle extends WP_Widget
{
//Einstellungen
public function __construct()
public function __construct()
{
parent::__construct(
'kr8_teaserarticle',
@ -361,53 +352,53 @@ class kr8_teaserarticle extends WP_Widget
}
//Admin Area
public function form($instance)
public function form($instance)
{
$defaults = array(
'title' => '',
'day_interval' => '30',
'day_interval' => '30',
'limit' => '5'
);
$instance = wp_parse_args((array)$instance, $defaults);
$title = $instance['title'];
$url = $instance['url'];
$subhead = $instance['subhead'];
$desc = $instance['desc'];
$image_id = $instance['image_id'];
$image_size = $instance['image_size'];
$image_url = $instance['image_url'];
$title = $instance['title'] ?? '';
$url = $instance['url'] ?? '';
$subhead = $instance['subhead'] ?? '';
$desc = $instance['desc'] ?? '';
$image_id = $instance['image_id'] ?? 0;
$image_size = $instance['image_size'] ?? 0;
$image_url = $instance['image_url'] ?? '';
?>
<p>
<label for="<?php echo $this->get_field_id('title'); ?>"><?php echo 'Titel:'; ?></label>
<label for="<?php echo $this->get_field_id('title'); ?>"><?php echo 'Titel:'; ?></label>
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('url'); ?>"><?php echo 'URL:'; ?></label>
<label for="<?php echo $this->get_field_id('url'); ?>"><?php echo 'URL:'; ?></label>
<input class="widefat" id="<?php echo $this->get_field_id('url'); ?>" name="<?php echo $this->get_field_name('url'); ?>" type="text" value="<?php echo esc_attr($url); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('subhead'); ?>"><?php echo 'Dachzeile:'; ?></label>
<label for="<?php echo $this->get_field_id('subhead'); ?>"><?php echo 'Dachzeile:'; ?></label>
<input class="widefat" id="<?php echo $this->get_field_id('subhead'); ?>" name="<?php echo $this->get_field_name('subhead'); ?>" type="text" value="<?php echo esc_attr($subhead); ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id('desc'); ?>"><?php echo 'Beschreibung:'; ?></label>
<label for="<?php echo $this->get_field_id('desc'); ?>"><?php echo 'Beschreibung:'; ?></label>
<textarea class="widefat" id="<?php echo $this->get_field_id('desc'); ?>" name="<?php echo $this->get_field_name('desc'); ?>"><?php echo esc_attr($desc); ?></textarea>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'image_id' ); ?>"><?php echo 'Bild:'; ?></label>
<label for="<?php echo $this->get_field_id( 'image_id' ); ?>"><?php echo 'Bild:'; ?></label>
<input class="title_image" id="<?php echo $this->get_field_id( 'image_id' ); ?>" name="<?php echo $this->get_field_name( 'image_id' ); ?>" value="<?php echo $image_id ?>" type="hidden">
<button id="title_image_button" class="button" onclick="image_button_click('Bild auswählen','Bild wählen','image','image_id_preview','<?php echo $this->get_field_id( 'image_id' ); ?>');">Aus Medien-DB wählen</button>
</p>
<p><label for="<?php echo $this->get_field_id('image_size'); ?>">Größe:</label>
<select name="<?php echo $this->get_field_name('image_size'); ?>" id="<?php echo $this->get_field_id('image_size'); ?>" onChange="imageWidget.toggleSizes( '<?php echo $this->id; ?>', '<?php echo $id_prefix; ?>' );">
<?php
@ -419,105 +410,105 @@ class kr8_teaserarticle extends WP_Widget
'large' => __('Large', 'image_widget'),
) );
foreach( $possible_sizes as $size_key => $size_label ) { ?>
<option value="<?php echo $size_key; ?>"<?php selected( $instance['image_size'], $size_key ); ?>><?php echo $size_label; ?></option>
<option value="<?php echo $size_key; ?>"<?php selected( $instance['image_size'] ?? 0, $size_key ); ?>><?php echo $size_label; ?></option>
<?php } ?>
</select>
<?php $imgparse= wp_get_attachment_image_src( $image_id, $image_size, false);
<?php $imgparse= wp_get_attachment_image_src( $image_id, $image_size, false);
$img_url = $imgparse[0];
?>
?>
<input class="widefat" id="<?php echo $this->get_field_id('image_url'); ?>" name="<?php echo $this->get_field_name('image_url'); ?>" type="hidden" value="<?php echo $img_url; ?>" />
</p>
<p>
<?php
<?php
if ($image_id!='') echo '<img src="' . $imgparse[0] . '" style="max-width:100%;height:auto;">';
?>
</p>
<p>
<input class="checkbox" type="checkbox" <?php checked($instance['show_desc'], 'on'); ?> id="<?php echo $this->get_field_id('show_desc'); ?>" name="<?php echo $this->get_field_name('show_desc'); ?>" />
<input class="checkbox" type="checkbox" <?php checked($instance['show_desc'], 'on'); ?> id="<?php echo $this->get_field_id('show_desc'); ?>" name="<?php echo $this->get_field_name('show_desc'); ?>" />
<label for="<?php echo $this->get_field_id('show_desc'); ?>">Überschrift in Desktop-Version ausblenden.</label>
</p>
<script>
var frame;
function image_button_click(dialog_title, button_text, library_type, preview_id, control_id) {
event.preventDefault();
//If the uploader object has already been created, reopen the dialog
//if (custom_uploader) {
// custom_uploader.open();
// return;
//}
//Extend the wp.media object
frame = wp.media.frames.file_frame = wp.media({
title: dialog_title,
button: {
text: button_text
},
//library : { type : library_type },
library : { type : 'image' },
//frame: 'post',
//library : { type : library_type },
library : { type : 'image' },
//frame: 'post',
multiple: false
});
//When a file is selected, grab the URL and set it as the text field's value
frame.on('close', function() {
attachment = frame.state().get('selection').first().toJSON();
//attachment = custom_uploader.state().get('selection').toJSON();
jQuery('#' + control_id).val(attachment.id);
var html = '';
if (library_type=='image') {
html = '<img src="' + attachment.url + '">';
}
if (library_type=='video') {
html = '<video autoplay loop><source src="' + attachment.url + '" type="video/' + get_extension( attachment.url ) + '" /></video>';
}
jQuery('#' + preview_id).empty();
jQuery('#' + preview_id).append(html);
});
//Open the uploader dialog
frame.open();
return false;
}
function get_extension( url ){
return url.substr((url.lastIndexOf('.') + 1));
function get_extension( url ){
return url.substr((url.lastIndexOf('.') + 1));
}
</script>
</script>
<?php
}
//Save Data
public function update($new_instance, $old_instance)
public function update($new_instance, $old_instance)
{
$instance = array();
$instance['title'] = strip_tags($new_instance['title']);
$instance['url'] = strip_tags($new_instance['url']);
$instance['subhead'] = strip_tags($new_instance['subhead']);
@ -526,13 +517,13 @@ class kr8_teaserarticle extends WP_Widget
$instance['image_size'] = strip_tags($new_instance['image_size']);
$instance['image_url'] = strip_tags($new_instance['image_url']);
$instance['show_desc'] = $new_instance['show_desc'];
return $instance;
}
//Frontend Output
public function widget($args, $instance)
public function widget($args, $instance)
{
extract($args);
$title = apply_filters('widget_title', $instance['title']);
@ -541,29 +532,29 @@ class kr8_teaserarticle extends WP_Widget
$desc = $instance['desc'];
$img = $instance['image_url'];
$show_desc = $instance['show_desc'] ? 'true' : 'false';
echo $before_widget;
if('on' == $instance['show_desc'] ) {
echo '<div class="nodesc">';
}
if(!empty($img))
{
if(!empty($url)) { echo '<a href="'. $url .'" title="'.$title.'" class="postimglist">';}
echo '<img src="'. $img .'" alt="'. $title .'" class="wp-post-image">';
if(!empty($url)) { echo '</a>';}
}
if(!empty($subhead))
{
echo '<p class="subhead">'. $subhead .'</p>';
}
if(!empty($title))
{
echo $before_title;
@ -572,20 +563,20 @@ class kr8_teaserarticle extends WP_Widget
if(!empty($url)) { echo '</a>';}
echo $after_title;
}
if(!empty($desc))
{
echo '<p>'. $desc .'</p>';
}
if('on' == $instance['show_desc'] ) {
echo '</div>';
}
echo $after_widget;
}
}
@ -597,7 +588,4 @@ add_action( 'widgets_init', function(){
?>
?>

View File

@ -1,73 +1,75 @@
@import "font-awesome.min.css";
@font-face {
font-family: 'Arvo Regular';
src: local('Arvo Regular'), local('ArvoRegular'), url('../fonts/arvo_regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Arvo Gruen';
src: local('Arvo Gruen'), local('ArvoGruen'), url('../fonts/arvo_green.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: local('PT Sans'), local('PTSans-Regular'), url('../fonts/ptsans-regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans Bold';
src: local('PT Sans Bold'), local('PTSans-Bold'), url('../fonts/ptsans-bold.woff') format('woff');
font-weight: bold;
font-style: normal;
}
body {font-family: 'PT Sans', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-size: 100%;line-height: 1.5;color: #333;}
blockquote {padding: 0;text-indent: 0em;color: #46962b;background: ;font-family: 'Arvo Regular', 'Arvo Gruen', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: 500; margin: 2em 4em;font-style: italic; border-bottom: 3px solid #46962b;}
strong, b {font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;}
h1,h2,h3,h4,h5,h6 {line-height: 1.4em;margin:0 0 0.3em 0;font-family: 'Arvo Regular', 'Arvo Gruen', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;color: #0a350a;text-align: left;}
h1 {font-size:1.8em;margin-bottom:0em;text-transform: uppercase; font-family: 'Arvo Gruen', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;color:red;}
h2 {font-size:1.6em;}
h3 {font-size:1.5em;color: #5dae59;}
h4 {font-size:1.3em;}
h5 {font-size:1.1em;}
h6 {font-size:1em;}
.kontrast {color:#e6007e!important;}
a {color:#61ae4d;text-decoration: none;}
a:hover {color:#61ae4d;text-decoration: underline;}
a:visited {color:#61ae4d;}
p.intro {font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;font-size:1.1em;}
hr {border: 0; background: #e6e6e6; height: 3px;width: 100%;margin: 2.5em 0;}
table {margin-bottom: 1.5em; }
table th {font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal; padding: 1em 1em 1em 0;border-bottom: 2px solid #0a321e;color: #0a321e; }
table td{ padding: 1em 1em 1em 0;border-bottom: 1px solid #e6e6e6; }
pre {max-width: 100%;margin-bottom: 1.5em;padding: 1.5em;overflow: auto;background: #e6e6e6;font-size: 0.8em;line-height: 1.4;}
address {background: #e4f8df;padding: 1em;margin-bottom: 1.5em;font-style:normal;}
a span.button, span.button a {display: inline-block; background: #61ae4d; color: #fff; padding: 0.5em;font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;border-radius: 0.3em;}
@import "font-awesome.min.css";
@font-face {
font-family: 'Arvo Regular';
src: local('Arvo Regular'), local('ArvoRegular'), url('../fonts/arvo_regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Arvo Gruen';
src: local('Arvo Gruen'), local('ArvoGruen'), url('../fonts/arvo_green.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: local('PT Sans'), local('PTSans-Regular'), url('../fonts/ptsans-regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans Bold';
src: local('PT Sans Bold'), local('PTSans-Bold'), url('../fonts/ptsans-bold.woff') format('woff');
font-weight: bold;
font-style: normal;
}
body {font-family: 'PT Sans', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-size: 100%;line-height: 1.5;color: #333;}
blockquote {padding: 0;text-indent: 0em;color: #46962b;background: ;font-family: 'Arvo Regular', 'Arvo Gruen', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: 500; margin: 2em 4em;font-style: italic; border-bottom: 3px solid #46962b;}
strong, b {font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;}
h1,h2,h3,h4,h5,h6 {line-height: 1.4em;margin:0 0 0.3em 0;font-family: 'Arvo Regular', 'Arvo Gruen', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;color: #0a350a;text-align: left;}
h1 {font-size:1.8em;margin-bottom:0em;text-transform: uppercase; font-family: 'Arvo Gruen', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;color:red;}
h2 {font-size:1.6em;}
h3 {font-size:1.5em;color: #5dae59;}
h4 {font-size:1.3em;}
h5 {font-size:1.1em;}
h6 {font-size:1em;}
.kontrast {color:#e6007e!important;}
a {color:#61ae4d;text-decoration: none;}
a:hover {color:#61ae4d;text-decoration: underline;}
a:visited {color:#61ae4d;}
p.intro {font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;font-size:1.1em;}
hr {border: 0; background: #e6e6e6; height: 3px;width: 100%;margin: 2.5em 0;}
table {margin-bottom: 1.5em; }
table th {font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal; padding: 1em 1em 1em 0;border-bottom: 2px solid #0a321e;color: #0a321e; }
table td{ padding: 1em 1em 1em 0;border-bottom: 1px solid #e6e6e6; }
pre {max-width: 100%;margin-bottom: 1.5em;padding: 1.5em;overflow: auto;background: #e6e6e6;font-size: 0.8em;line-height: 1.4;}
address {background: #e4f8df;padding: 1em;margin-bottom: 1.5em;font-style:normal;}
.wp-block-button__link { display: inline-block; border-radius: 0px; background: #e6007e; color: #fff; padding: 0.5em; font-size:100%; font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;}
a span.button, span.button a {display: inline-block; background: #61ae4d; color: #fff; padding: 0.5em;font-family: 'PT Sans Bold', Trebuchet, Helvetica Neue, Helvetica, Arial, Verdana, sans-serif;font-weight: normal;border-radius: 0.3em;}
img.rund {border-radius: 50%;border: 5px solid #f6f6f6;width: 150px;height:auto;}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -80,9 +80,9 @@ Template Name: Listenansicht
<?php endwhile; ?>
<?php endwhile; endif; ?>

Binary file not shown.

BIN
redaktionshandbuch_jkb.pdf Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
/******************************************************************
Theme Name: Joseph knows best
Theme URI: http://www.gruene-nrw.de
Description: Aufwändiges Wordpress-Theme für den EInsatz von größeren Websites, z.B: bei Landesverbänden.
Author: Benjamin Jopen
Author URI: http://www.kre8tiv.de
Version: 2.0.6
Theme URI: https://git.verdigado.com/NB-Public/joseph-knows-best
Description: Aufwändiges Wordpress-Theme für den Einsatz von größeren Websites, z.B: bei Landesverbänden. Ursprünglich von http://www.kre8tiv.de entwickelt.
Author: Benjamin Jopen, Erwin Behner
Author URI:
Version: 2.0.8
Tags: two-columns, green, right-sidebar, fluid-layout, custom-background, custom-header, custom-menu, custom-menu, theme-options, featured-images, storytelling
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
/******************************************************************
/******************************************************************