Changeset 1960852
- Timestamp:
- 10/22/2018 06:37:58 PM (7 years ago)
- Location:
- footer-putter/trunk
- Files:
-
- 8 edited
-
classes/class-credits-admin.php (modified) (1 diff)
-
classes/class-credits.php (modified) (4 diffs)
-
classes/class-plugin.php (modified) (3 diffs)
-
classes/class-trademarks-admin.php (modified) (1 diff)
-
main.php (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
-
styles/footer-credits.css (modified) (1 diff)
-
styles/tooltip.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
footer-putter/trunk/classes/class-credits-admin.php
r1923485 r1960852 1 1 <?php 2 class Footer_ Credits_Admin extends Footer_Putter_Admin{2 class Footer_Putter_Credits_Admin extends Footer_Putter_Admin{ 3 3 4 4 private $tips = array( -
footer-putter/trunk/classes/class-credits.php
r1923485 r1960852 1 1 <?php 2 class Footer_Credits { 3 4 const CODE = 'footer-credits'; //element prefix 2 class Footer_Putter_Credits { 3 4 const CSS_CLASS = 'footer-putter-credits'; 5 const CODE = 'footer-credits'; //shortcode prefix 5 6 const OPTIONS_NAME = 'footer_credits_options'; 6 7 const SIDEBAR_ID = 'last-footer'; … … 228 229 if ($telephone = $this->contact_telephone($params['show_telephone'], $params['use_microdata'])) $org .= $telephone; 229 230 if ($email = $this->contact_email($params['show_email'], $params['use_microdata'])) $org .= $email; 230 $format = '<div class="footer- credits-contact %1$s" ' . ($params['use_microdata'] ? ' itemscope="itemscope" itemtype="http://schema.org/Organization"' : '') . '>%2$s</div>';231 $format = '<div class="footer-putter-contact %1$s" ' . ($params['use_microdata'] ? ' itemscope="itemscope" itemtype="http://schema.org/Organization"' : '') . '>%2$s</div>'; 231 232 return sprintf($format, $params['footer_class'], $org); 232 233 } … … 335 336 $defaults['footer_class'] = ''; 336 337 $params = shortcode_atts( $defaults, $atts ); //apply plugin defaults 337 return sprintf('<div class="footer- credits-copyright %1$s">%2$s</div>', $params['footer_class'], $this->copyright_owner($params));338 return sprintf('<div class="footer-putter-copyright %1$s">%2$s</div>', $params['footer_class'], $this->copyright_owner($params)); 338 339 } 339 340 340 341 public function footer_menu($atts = array()) { 341 $defaults = array('menu' => 'Footer Menu', 'echo' => false, 'container' => false, 'footer_class' => self::C ODE);342 $defaults = array('menu' => 'Footer Menu', 'echo' => false, 'container' => false, 'footer_class' => self::CSS_CLASS); 342 343 if (isset($atts['nav_menu'])) $atts['menu'] = $atts['nav_menu']; 343 344 $params = shortcode_atts( $defaults, $atts ); //apply plugin defaults 344 return sprintf ('<div class="footer- credits-menu %1$s">%2$s</div>', $params['footer_class'], wp_nav_menu($params));345 return sprintf ('<div class="footer-putter-menu %1$s">%2$s</div>', $params['footer_class'], wp_nav_menu($params)); 345 346 } 346 347 … … 366 367 (empty($params['show_copyright']) ? '' : $this->copyright($params)), 367 368 $this->contact_info($params), 368 self::C ODE,369 self::CSS_CLASS, 369 370 $footer_class, 370 371 $layout, -
footer-putter/trunk/classes/class-plugin.php
r1923485 r1960852 1 1 <?php 2 2 class Footer_Putter_Plugin { 3 4 3 5 4 const OPTIONS_NAME = 'footer_putter_options'; … … 52 51 $this->tooltips = new Footer_Putter_Tooltip(); 53 52 $this->options = new Footer_Putter_Options( self::OPTIONS_NAME, $this->defaults); 54 $this->credits = new Footer_ Credits();53 $this->credits = new Footer_Putter_Credits(); 55 54 } 56 55 … … 66 65 $intro = new Footer_Putter_Dashboard($this); 67 66 $this->links['intro'] = $intro->get_url(); 68 $credits = new Footer_ Credits_Admin($this, 'credits');67 $credits = new Footer_Putter_Credits_Admin($this, 'credits'); 69 68 $this->links['credits'] = $credits->get_url(); 70 $trademarks = new Footer_ Trademarks_Admin($this, 'trademarks');69 $trademarks = new Footer_Putter_Trademarks_Admin($this, 'trademarks'); 71 70 $this->links['trademarks'] = $trademarks->get_url(); 72 71 } -
footer-putter/trunk/classes/class-trademarks-admin.php
r1923485 r1960852 1 1 <?php 2 2 3 class Footer_ Trademarks_Admin extends Footer_Putter_Admin{3 class Footer_Putter_Trademarks_Admin extends Footer_Putter_Admin{ 4 4 5 5 public function init() { -
footer-putter/trunk/main.php
r1923485 r1960852 4 4 * Plugin URI: https://www.diywebmastery.com/plugins/footer-putter/ 5 5 * Description: Put a footer on your site that boosts your credibility with both search engines and human visitors. 6 * Version: 1.1 56 * Version: 1.16 7 7 * Author: Russell Jamieson 8 8 * Author URI: https://www.diywebmastery.com/about/ … … 10 10 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 11 */ 12 define('FOOTER_PUTTER_VERSION','1.1 5');12 define('FOOTER_PUTTER_VERSION','1.16'); 13 13 define('FOOTER_PUTTER_NAME', 'Footer Putter') ; 14 14 define('FOOTER_PUTTER_SLUG', plugin_basename(dirname(__FILE__))) ; -
footer-putter/trunk/readme.txt
r1923485 r1960852 6 6 Tested up to: 4.9.8 7 7 Requires PHP: 5.3.6 8 Stable tag: 1.1 58 Stable tag: 1.16 9 9 License: GPLv2+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 13 13 14 14 == Description == 15 * Footer Putter can create two widgets: a Footer Copyright Widget and aTrademarks Widget15 * Footer Putter can create two widgets: a Footer Putter Copyright Widget and a Footer Putter Trademarks Widget 16 16 * Include your site accreditations to demonstrate that your business meets the required standards for your industry 17 17 * Create a footer that gives your site the credibility that it belongs to a real business … … 30 30 * Option to apply rel=nofollow automatically to footer trademark links 31 31 * Option to hide Powered By WordPress on TwentySomething themes 32 * Supports various arrangements of footer menu, copyright and contact details over 1, 2 or 3 lines. 32 33 33 34 == Installation == … … 50 51 == Changelog == 51 52 52 = 1.15 = Added 6 new footer layouts to organize the copyright, contact and footer menu sections 53 = 1.16 = 54 55 * Renamed CSS class footer-credits to footer-putter-credits to avoid name clash with some themes 56 * Strenthened CSS to override theme settings that apply setting such as miimum height and width to all menus 53 57 54 58 For full version history please see https://www.diywebmastery.com/plugins/footer-putter/footer-putter-version-history/ … … 56 60 == Upgrade Notice == 57 61 58 = 1.1 5=59 * Optional - Added 6 new footer layouts to orgamize the copyright, contact and footer menu sections62 = 1.16 = 63 * Optional - Renamed element class from footer-credits to footer-putter-credits to avoid name clashes with some themes. Note that if you have added your own custom classes which refer to footer-credits you will need to replace these references by footer-putter-credits 60 64 61 65 == Links == -
footer-putter/trunk/styles/footer-credits.css
r1923485 r1960852 2 2 .return-left { margin-left: 10px; float: left; width : 20%; } 3 3 .footer-right { float: right; text-align: right; width: 70%; margin-bottom: 10px; } 4 .footer- credits ul, .footer-credits ul li {5 display : inline-block; list-style-type: none; background: none; border: 0; margin: 0px; padding: 0; vertical-align: middle; }6 .footer- credits ul li:before { content : "\B7"; }7 .footer- credits ul li:first-child:before { content : ""; }8 .footer- credits ul li a {4 .footer-putter-credits ul, .footer-putter-credits ul li { 5 display : inline-block; list-style-type: none; background: none; border: 0; margin: 0px; padding: 0; vertical-align: middle; height:auto; } 6 .footer-putter-credits ul li:before { content : "\B7"; } 7 .footer-putter-credits ul li:first-child:before { content : ""; } 8 .footer-putter-credits ul li a { 9 9 text-decoration: none; color: inherit; font-weight: normal; letter-spacing : normal; text-transform: none; border:none; margin:0 10px; } 10 .footer- credits ul li a:hover, .footer-credits a.email:hover, .footer-credits a.map:hover { text-decoration: underline;}11 .footer- credits span.copyright, .footer-credits span.telephone, .footer-credits span.address, .footer-credits a.email, .footer-credits a.map {10 .footer-putter-credits ul li a:hover, .footer-putter-credits a.email:hover, .footer-putter-credits a.map:hover { text-decoration: underline;} 11 .footer-putter-credits span.copyright, .footer-putter-credits span.telephone, .footer-putter-credits span.address, .footer-putter-credits a.email, .footer-putter-credits a.map { 12 12 font-weight: normal; letter-spacing : normal; text-transform: none; margin: 0 10px; vertical-align: middle; 13 13 background: none; border : none; float: none; display: inline; color: inherit; text-decoration: none; } 14 14 .footer-right span.copyright, .footer-right span.address, .footer-right span.telephone, .footer-right span.email { display: block;} 15 15 16 .footer- credits .dark, .footer-credits .dark li, .footer-credits .dark a, .footer-return.dark a, .footer-return.dark a:visited { color : #222222; }17 .footer- credits .light, .footer-credits .light li, .footer-credits .light a, .footer-return.light a, .footer-return.light a:visited { color : #DDDDDD; }18 .footer- credits .white, .footer-credits .white li, .footer-credits .white a, .footer-return.white a, .footer-return.white a:visited { color : white; }19 .footer- credits .small, .footer-credits .small ul li a, .footer-return.small a { font-size : small; }20 .footer- credits .tiny, .footer-credits .tiny ul li a, .footer-return.tiny a { font-size : x-small; }16 .footer-putter-credits .dark, .footer-putter-credits .dark li, .footer-putter-credits .dark a, .footer-return.dark a, .footer-return.dark a:visited { color : #222222; } 17 .footer-putter-credits .light, .footer-putter-credits .light li, .footer-putter-credits .light a, .footer-return.light a, .footer-return.light a:visited { color : #DDDDDD; } 18 .footer-putter-credits .white, .footer-putter-credits .white li, .footer-putter-credits .white a, .footer-return.white a, .footer-return.white a:visited { color : white; } 19 .footer-putter-credits .small, .footer-putter-credits .small ul li a, .footer-return.small a { font-size : small; } 20 .footer-putter-credits .tiny, .footer-putter-credits .tiny ul li a, .footer-return.tiny a { font-size : x-small; } 21 21 22 .footer-credits > div { display: inline-block; } 23 .footer-credits.stacked > div, .footer-credits.stacked-alt > div, 24 .menu-above .footer-credits-menu, .menu-above-alt .footer-credits-menu, 25 .contact-below .footer-credits-contact, .copyright-below .footer-credits-copyright { 22 .footer-putter-menu .menu, .footer-putter-menu .menu li { 23 width: auto!important; 24 } 25 26 .footer-putter-credits > div { display: inline-block; } 27 .footer-putter-credits.stacked > div, .footer-putter-credits.stacked-alt > div, 28 .menu-above .footer-putter-menu, .menu-above-alt .footer-putter-menu, 29 .contact-below .footer-putter-contact, .copyright-below .footer-putter-copyright { 26 30 display: block; 27 31 } 28 32 29 33 .widget_footer_trademarks { text-align: center; margin: 10px 0;} 30 .widget_footer_trademarks a { margin: 10px; border: 0 !important; }34 .widget_footer_trademarks a { margin: 10px; border: 0 !important; display:inline-block!important; } 31 35 .widget_footer_trademarks img { border: 0 !important; } 32 36 -
footer-putter/trunk/styles/tooltip.css
r1923485 r1960852 23 23 .diy-fieldset {display: inline-block; margin: 0 5px; } 24 24 .diy-fieldset label { min-width: 70px; margin: 3px 15px 3px 5px; vertical-align:middle; } 25 .diy-fieldset input { margin: 3px 0; } 25 .diy-fieldset input, .diy-fieldset textarea { margin: 3px 0; padding-top:0;vertical-align: top;} 26 .wrapfieldset > label {display: block; margin-bottom: 10px;} 27 .wrapfieldset > .diy-fieldset {display: block; width:100%;} 28 .wrapfieldset .diy-fieldset ul {display: block; width:100%;} 26 29 .diy-fieldset ul, .wrapfieldset .diy-fieldset ul { margin: 0; } 27 30 .diy-fieldset li { display: inline; } … … 31 34 .diy-wrap h4 { margin: 10px 0;} 32 35 .diy-wrap p { margin: 5px 0 0; } 33 tr.diy-row th, tr.diy-row td { margin: 0; padding: 5px;}34 div.diy-row { margin-bottom: 5px; padding: 0px;}35 .diy-row input, .diy-row textarea { margin-top: 0; max-width: 99%;}36 .diy-row .wp-picker-container {display: inline-block;}37 36 .widgets-holder-wrap .diy-wrap .diy-row .diy-label { margin-top: 5px;} 38 37 .widgets-holder-wrap .diy-label { min-width: 150px; } 39 38 .widgets-holder-wrap .diy-wrap .diy-label { min-width: 100px;} 40 39 .widgets-holder-wrap .diy-fieldset label { min-width: 30px; } 40 .diy-row > input, .diy-row > textarea { margin-top: 0; max-width: 99%;} 41 .diy-row .wp-picker-container {display: inline-block;} 42 tr.diy-row th, tr.diy-row td { margin: 0; padding: 5px;} 43 div.diy-row { margin-bottom: 5px; padding: 0px;} 44 .diy-fieldset.incols li{ display:list-item;} 45 .diy-keypair {width:95%; -webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;} 46 .diy-keypair textarea{width:100%;} 47 @media only screen and (min-width: 480px) { 48 .diy-fieldset.incols ul{ column-count: 2; -webkit-column-count: 2; -moz-column-count: 3; } 49 } 50 @media only screen and (min-width: 640px) { 51 .diy-fieldset.incols ul{ column-count: 3; -webkit-column-count: 3; -moz-column-count: 3; } 52 .diy-keypair input {width:35%;} 53 .diy-keypair textarea{width:60%;} 54 } 55 @media only screen and (min-width: 960px) { 56 .diy-fieldset.incols ul{ column-count: 5; -webkit-column-count: 5; -moz-column-count: 5; } 57 .diy-keypair input {width:25%;} 58 .diy-keypair textarea{width:70%;} 59 }
Note: See TracChangeset
for help on using the changeset viewer.