Footer Putter - Version 1.10

Version Description

Updated tooltips to use dash-icons font

Download this release

Release Info

Developer powerblogservice
Plugin Icon 128x128 Footer Putter
Version 1.10
Comparing to
See all releases

Code changes from version 1.9 to 1.10

classes/class-credits-admin.php CHANGED
@@ -172,7 +172,7 @@ INTRO_PANEL;
172
  <label>{$tip3}</label><input type="text" name="address" size="80" value="{$terms['address']}" /><br/>
173
  OWNER_PANEL;
174
  if (Footer_Credits::is_html5()) print <<< ADDRESS_DATA
175
- <p>Leave the above address field blank and fill in the various parts of the organization address below if you want to use HTML5 microdata.</p>
176
  <h4>Organization Address</h4>
177
  <label>{$tip4}</label><input type="text" name="street_address" size="30" value="{$terms['street_address']}" /><br/>
178
  <label>{$tip5}</label><input type="text" name="locality" size="30" value="{$terms['locality']}" /><br/>
172
  <label>{$tip3}</label><input type="text" name="address" size="80" value="{$terms['address']}" /><br/>
173
  OWNER_PANEL;
174
  if (Footer_Credits::is_html5()) print <<< ADDRESS_DATA
175
+ <p>Leave the above address field blank and fill in the various parts of the organization address below if you want to be able to use HTML5 microdata.</p>
176
  <h4>Organization Address</h4>
177
  <label>{$tip4}</label><input type="text" name="street_address" size="30" value="{$terms['street_address']}" /><br/>
178
  <label>{$tip5}</label><input type="text" name="locality" size="30" value="{$terms['locality']}" /><br/>
classes/class-tooltip.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  if (!class_exists('DIY_Tooltip')) {
3
  class DIY_Tooltip {
 
4
  private $labels = array();
5
  private $tabindex;
6
  function __construct($labels) {
@@ -9,7 +10,7 @@ if (!class_exists('DIY_Tooltip')) {
9
  }
10
 
11
  function heading($label) {
12
- return array_key_exists($label,$this->labels) ? __($this->labels[$label]['heading']) : '';
13
  }
14
 
15
  function text($label) {
@@ -22,7 +23,7 @@ if (!class_exists('DIY_Tooltip')) {
22
 
23
  function tip($label) {
24
  $heading = $this->heading($label);
25
- return $heading ? sprintf('<a href="#" class="diytooltip" tabindex="%3$s">%1$s<span>%2$s</span></a>',
26
  $heading, $this->text($label), $this->tabindex++) : '';
27
  }
28
  }
1
  <?php
2
  if (!class_exists('DIY_Tooltip')) {
3
  class DIY_Tooltip {
4
+ const HELP = '<span class="dashicons dashicons-editor-help"></span>';
5
  private $labels = array();
6
  private $tabindex;
7
  function __construct($labels) {
10
  }
11
 
12
  function heading($label) {
13
+ return array_key_exists($label,$this->labels) ? (__($this->labels[$label]['heading']).self::HELP) : '';
14
  }
15
 
16
  function text($label) {
23
 
24
  function tip($label) {
25
  $heading = $this->heading($label);
26
+ return $heading ? sprintf('<a href="#" class="diy-tooltip" tabindex="%3$s">%1$s<span class="tip">%2$s</span></a>',
27
  $heading, $this->text($label), $this->tabindex++) : '';
28
  }
29
  }
main.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Footer Putter
4
  * Plugin URI: http://www.diywebmastery.com/plugins/footer-putter/
5
  * Description: Put a footer on your site that boosts your credibility with both search engines and human visitors.
6
- * Version: 1.9
7
  * Author: Russell Jamieson
8
  * Author URI: http://www.diywebmastery.com/about/
9
  * License: GPLv2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  */
12
- define('FOOTER_PUTTER_VERSION','1.9');
13
  define('FOOTER_PUTTER_FRIENDLY_NAME', 'Footer Putter') ;
14
  define('FOOTER_PUTTER_DOMAIN', 'FOOTER_PUTTER_DOMAIN') ;
15
  define('FOOTER_PUTTER_PATH', plugin_basename(__FILE__)) ;
3
  * Plugin Name: Footer Putter
4
  * Plugin URI: http://www.diywebmastery.com/plugins/footer-putter/
5
  * Description: Put a footer on your site that boosts your credibility with both search engines and human visitors.
6
+ * Version: 1.10
7
  * Author: Russell Jamieson
8
  * Author URI: http://www.diywebmastery.com/about/
9
  * License: GPLv2+
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  */
12
+ define('FOOTER_PUTTER_VERSION','1.10');
13
  define('FOOTER_PUTTER_FRIENDLY_NAME', 'Footer Putter') ;
14
  define('FOOTER_PUTTER_DOMAIN', 'FOOTER_PUTTER_DOMAIN') ;
15
  define('FOOTER_PUTTER_PATH', plugin_basename(__FILE__)) ;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.diywebmastery.com/donate/
4
  Tags: footer, copyright, trademark
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
- Stable tag: 1.9
8
  License: GPLv2+
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,23 +48,16 @@ Put a footer on your site that boosts your credibility with both search engines
48
 
49
  == Changelog ==
50
 
 
 
51
  = 1.9 = Added title to Footer Trademarks Widget, improved control over widgets on landing pages with a filter hook, improved online documentation, refactored code in accordance with current WordPress coding standards.
52
- = 1.8 = Added options to use HTML5 microdata and location geo-coordinates for the business location and to apply rel=nofollow to footer trademark links
53
- = 1.7.1 = Fix bug when loaded under AJAX
54
- = 1.7 = Made email address a mailto link. Added pre-defined classes, tiny and small, to make it easy to use a smaller font size in the footer on pages such as landing pages. Added widget visibility setting to make it easy to either hide or show the footer widgets on landing pages. Replaced the plugin icon image in admin menu with a dashicons font character. Automatically uses HTML5 if theme supports HTML5 - no manual setting required.
55
- = 1.6 = Add option to include email address in the copyright footer widget, remove the automatic adding of rel=nofollow in footer links, and add optional sub-footer sections to the privacy and terms pages
56
- = 1.5 = Use Javascript for Return To Top link to make it work on HTML5 sites, and strengthen CSS to ensure footer copyright and trademark widgets are full width
57
- = 1.4.1 = Reinstate support for PHP 5.2
58
- = 1.4 = Added support for HTML5 themes
59
- = 1.3 = Pre-configure according to the WordPress theme
60
- = 1.2 = Fix display of telephone number
61
- = 1.1 = Fix link in admin.php from screenshot1.jpg to screenshot-1.jpg
62
- = 1.0 = Initial release
63
 
64
  == Upgrade Notice ==
65
 
66
- = 1.9 =
67
- * Optional - Added title to Footer Trademarks Widget, improved control over use on landing pages and better documentation
68
 
69
  == Links ==
70
 
4
  Tags: footer, copyright, trademark
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.10
8
  License: GPLv2+
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.10 = Updated tooltips to use dash-icons font
52
+
53
  = 1.9 = Added title to Footer Trademarks Widget, improved control over widgets on landing pages with a filter hook, improved online documentation, refactored code in accordance with current WordPress coding standards.
54
+
55
+ For full version history please see http://www.diywebmastery.com/plugins/footer-putter/footer-putter-version-history/
 
 
 
 
 
 
 
 
 
56
 
57
  == Upgrade Notice ==
58
 
59
+ = 1.10 =
60
+ * Optional - Updated tooltips to use dash-icons font
61
 
62
  == Links ==
63
 
styles/admin.css CHANGED
@@ -9,3 +9,11 @@ div.icon32 { background-image : url(../images/icon-32.png); background-repeat: n
9
  p.notice { font-size: 1.6em; font-weight: bold; }
10
  p.important { font-size: 1.2em; color: red; }
11
  img.dashed-border { padding: 10px; border: 1px dashed silver; max-width: 100%; }
 
 
 
 
 
 
 
 
9
  p.notice { font-size: 1.6em; font-weight: bold; }
10
  p.important { font-size: 1.2em; color: red; }
11
  img.dashed-border { padding: 10px; border: 1px dashed silver; max-width: 100%; }
12
+ h2.title:before, h3.title:before {
13
+ content: '\f346';
14
+ display: inline-block;
15
+ -webkit-font-smoothing: antialiased;
16
+ font: normal 29px/1 'dashicons';
17
+ vertical-align: middle;
18
+ margin-right: 0.3em;
19
+ }
styles/tooltip.css CHANGED
@@ -1,5 +1,5 @@
1
- .diytooltip {position: relative; cursor: help; display: inline-block; text-decoration: none; color: #222; outline: none; }
2
- .diytooltip span { visibility: hidden; position: absolute; bottom: 30px; left: 50%;
3
  z-index: 999; width: 230px;margin-left: -17px; padding: 10px;border: 2px solid #ccc;
4
  opacity: .9;background-color: #ddd;
5
  background-image: -webkit-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
@@ -13,10 +13,21 @@ background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
13
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
14
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
15
  }
16
- .diytooltip:hover { border: 0; /* IE6 fix */ }
17
- .diytooltip:hover span { visibility: visible;}
18
- .diytooltip span:before, .diytooltip span:after {
19
  content: ""; position: absolute; z-index: 1000; bottom: -7px; left: 50%;margin-left: 8px;
20
  border-top: 8px solid #ddd;border-left: 8px solid transparent;border-right: 8px solid transparent;border-bottom: 0; }
21
- .diytooltip span:before {border-top-color: #ccc;bottom: -8px;}
22
- #poststuff label { display: inline-block; vertical-align: top; min-width: 180px; margin-right: 10px;}
 
 
 
 
 
 
 
 
 
 
 
1
+ .diy-tooltip {position: relative; cursor: help; display: inline-block; text-decoration: none; color: #222; outline: none; }
2
+ .diy-tooltip span.tip { visibility: hidden; position: absolute; bottom: 30px; left: 50%;
3
  z-index: 999; width: 230px;margin-left: -17px; padding: 10px;border: 2px solid #ccc;
4
  opacity: .9;background-color: #ddd;
5
  background-image: -webkit-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
13
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
14
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
15
  }
16
+ .diy-tooltip:hover { border: 0; /* IE6 fix */ }
17
+ .diy-tooltip:hover span.tip { visibility: visible; }
18
+ .diy-tooltip span.tip:before, .diy-tooltip span.tip:after {
19
  content: ""; position: absolute; z-index: 1000; bottom: -7px; left: 50%;margin-left: 8px;
20
  border-top: 8px solid #ddd;border-left: 8px solid transparent;border-right: 8px solid transparent;border-bottom: 0; }
21
+ .diy-tooltip span.tip:before {border-top-color: #ccc;bottom: -8px;}
22
+ .diy-tooltip .dashicons-editor-help { font-weight: lighter; font-size: 16px;}
23
+ .diy-tooltip-metabox-content h4 { margin: 10px 0;}
24
+ .diy-tooltip-metabox-content p { margin: 5px; }
25
+ .widgets-holder-wrap .diy-wrap { margin: 10px 0; }
26
+ .widgets-holder-wrap .diy-wrap p { margin: 5px 0 0; }
27
+ .widgets-holder-wrap label { min-width: 110px; margin-right: 10px; vertical-align: top; display: inline-block;}
28
+ .widgets-holder-wrap p label, .widgets-holder-wrap div.wrapfieldset label { min-width: 160px;}
29
+ .widgets-holder-wrap fieldset {display: inline-block;}
30
+ .widgets-holder-wrap fieldset label { min-width: 30px; margin-left: 5px; margin-right: 15px; }
31
+ #poststuff label { min-width: 200px; margin-right: 10px; vertical-align: top; display: inline-block;}
32
+ #poststuff fieldset {display: inline-block;}
33
+ #poststuff fieldset label { min-width: 70px; margin-left: 5px; margin-right: 15px; }