34 public function __construct( $id_base, $name, $widget_options = array(), $control_options = array() )
36 $this->id_base = $id_base;
39 add_action(
'widgets_admin_page', array( $this,
'willWidgetsAdminPage') );
42 add_action(
'admin_print_styles-widgets.php', array( $this,
'admin_print_styles' ) );
45 parent::__construct( $id_base, $name, $widget_options, $control_options );
55 $logo = isset( $this->control_options[
'wpdk_icon'] ) ? $this->control_options[
'wpdk_icon'] :
'';
56 $version = isset( $this->control_options[
'wpdk_version'] ) ? $this->control_options[
'wpdk_version'] :
'';
59 if ( empty( $logo ) && empty( $version ) ) {
65 <style
id=
"wpdk-inline-styles-<?php echo $this->id_base ?>" type=
"text/css">
66 <?php
if( !empty( $logo ) ) : ?>
67 div[
id*=<?php echo $this->id_base ?>] .widget-title h4
71 background-image : url(<?php echo $logo ?>) !important;
72 background-repeat : no-repeat;
73 background-position : 6px center;
77 <?php
if( !empty( $logo ) ) : ?>
78 div[
id*=<?php echo $this->id_base ?>] .widget-title h4 span.in-widget-title:before
80 content :
' <?php echo $version ?>';