Browse Source

Merge pull request 'Googleplus entfernen' (#1) from erwin.behner-patch-1 into devel-207

Reviewed-on: https://git.verdigado.com/NB-Public/joseph-knows-best/pulls/1
pull/3/head
Erwin Behner 7 months ago
parent
commit
727ce9f157
  1. 1
      functions/theme-functions.php
  2. 16
      functions/theme-sidebars.php

1
functions/theme-functions.php

@ -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>

16
functions/theme-sidebars.php

@ -135,7 +135,6 @@ function kr8_wpsearch($form) {
$title = $instance['title'];
$twitter = $instance['twitter'];
$facebook = $instance['facebook'];
$googleplus = $instance['googleplus'];
$flickr = $instance['flickr'];
$instagram = $instance['instagram'];
$youtube = $instance['youtube'];
@ -166,12 +165,6 @@ function kr8_wpsearch($form) {
}
?>
<?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>';
}
@ -241,7 +234,6 @@ function kr8_wpsearch($form) {
$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']);
@ -272,11 +264,6 @@ function kr8_wpsearch($form) {
<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'); ?>" />
@ -597,7 +584,4 @@ add_action( 'widgets_init', function(){
?>
Loading…
Cancel
Save