Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
Alexander Bigga | 260ecb3b1a | ||
Alexander Bigga | 4b0e3a4b56 | ||
Alexander Bigga | 5a0f589a7a |
|
@ -124,10 +124,14 @@ function kr8_wpsearch($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) {
|
||||
|
@ -357,13 +361,13 @@ class kr8_teaserarticle extends WP_Widget
|
|||
);
|
||||
$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>
|
||||
|
@ -408,7 +412,7 @@ class kr8_teaserarticle extends WP_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>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ 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.7
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue