Plugin Directory

Changeset 1960852


Ignore:
Timestamp:
10/22/2018 06:37:58 PM (7 years ago)
Author:
powerblogservice
Message:

Footer Putter v1.6

Location:
footer-putter/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • footer-putter/trunk/classes/class-credits-admin.php

    r1923485 r1960852  
    11<?php
    2 class Footer_Credits_Admin extends Footer_Putter_Admin{
     2class Footer_Putter_Credits_Admin extends Footer_Putter_Admin{
    33
    44    private $tips = array(
  • footer-putter/trunk/classes/class-credits.php

    r1923485 r1960852  
    11<?php
    2 class Footer_Credits  {
    3 
    4     const CODE = 'footer-credits'; //element prefix
     2class Footer_Putter_Credits  {
     3
     4    const CSS_CLASS = 'footer-putter-credits';
     5    const CODE = 'footer-credits'; //shortcode prefix
    56    const OPTIONS_NAME = 'footer_credits_options';
    67    const SIDEBAR_ID = 'last-footer';
     
    228229        if ($telephone = $this->contact_telephone($params['show_telephone'], $params['use_microdata'])) $org .= $telephone;
    229230        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>';
    231232        return sprintf($format, $params['footer_class'], $org);
    232233    }
     
    335336        $defaults['footer_class'] = '';
    336337        $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));
    338339    }   
    339340
    340341    public function footer_menu($atts = array()) {
    341         $defaults = array('menu' => 'Footer Menu', 'echo' => false, 'container' => false, 'footer_class' => self::CODE);
     342        $defaults = array('menu' => 'Footer Menu', 'echo' => false, 'container' => false, 'footer_class' => self::CSS_CLASS);
    342343        if (isset($atts['nav_menu'])) $atts['menu'] = $atts['nav_menu'];
    343344        $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));
    345346    }
    346347
     
    366367                (empty($params['show_copyright']) ? '' : $this->copyright($params)),
    367368                $this->contact_info($params),
    368                 self::CODE,
     369                self::CSS_CLASS,
    369370                $footer_class, 
    370371                $layout,
  • footer-putter/trunk/classes/class-plugin.php

    r1923485 r1960852  
    11<?php
    22class Footer_Putter_Plugin {
    3 
    43
    54    const OPTIONS_NAME = 'footer_putter_options';
     
    5251        $this->tooltips = new Footer_Putter_Tooltip();
    5352        $this->options = new Footer_Putter_Options( self::OPTIONS_NAME, $this->defaults);
    54         $this->credits = new Footer_Credits();
     53        $this->credits = new Footer_Putter_Credits();
    5554    }
    5655   
     
    6665        $intro = new Footer_Putter_Dashboard($this);
    6766        $this->links['intro'] = $intro->get_url();
    68         $credits = new Footer_Credits_Admin($this, 'credits'); 
     67        $credits = new Footer_Putter_Credits_Admin($this, 'credits');   
    6968        $this->links['credits'] = $credits->get_url();
    70         $trademarks = new Footer_Trademarks_Admin($this, 'trademarks');
     69        $trademarks = new Footer_Putter_Trademarks_Admin($this, 'trademarks'); 
    7170        $this->links['trademarks'] = $trademarks->get_url();
    7271    }   
  • footer-putter/trunk/classes/class-trademarks-admin.php

    r1923485 r1960852  
    11<?php
    22
    3 class Footer_Trademarks_Admin extends Footer_Putter_Admin{
     3class Footer_Putter_Trademarks_Admin extends Footer_Putter_Admin{
    44
    55    public function init() {
  • footer-putter/trunk/main.php

    r1923485 r1960852  
    44 * Plugin URI: https://www.diywebmastery.com/plugins/footer-putter/
    55 * Description: Put a footer on your site that boosts your credibility with both search engines and human visitors.
    6  * Version: 1.15
     6 * Version: 1.16
    77 * Author: Russell Jamieson
    88 * Author URI: https://www.diywebmastery.com/about/
     
    1010 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1111 */
    12 define('FOOTER_PUTTER_VERSION','1.15');
     12define('FOOTER_PUTTER_VERSION','1.16');
    1313define('FOOTER_PUTTER_NAME', 'Footer Putter') ;
    1414define('FOOTER_PUTTER_SLUG', plugin_basename(dirname(__FILE__))) ;
  • footer-putter/trunk/readme.txt

    r1923485 r1960852  
    66Tested up to: 4.9.8
    77Requires PHP: 5.3.6
    8 Stable tag: 1.15
     8Stable tag: 1.16
    99License: GPLv2+
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313
    1414== Description ==
    15 * Footer Putter can create two widgets: a Footer Copyright Widget and a Trademarks Widget
     15* Footer Putter can create two widgets: a Footer Putter Copyright Widget and a Footer Putter Trademarks Widget
    1616* Include your site accreditations to demonstrate that your business meets the required standards for your industry
    1717* Create a footer that gives your site the credibility that it belongs to a real business
     
    3030* Option to apply rel=nofollow automatically to footer trademark links
    3131* 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.
    3233
    3334== Installation ==
     
    5051== Changelog ==
    5152
    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
    5357
    5458For full version history please see https://www.diywebmastery.com/plugins/footer-putter/footer-putter-version-history/
     
    5660== Upgrade Notice ==
    5761
    58 = 1.15 =
    59 * Optional - Added 6 new footer layouts to orgamize the copyright, contact and footer menu sections
     62= 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
    6064
    6165== Links ==
  • footer-putter/trunk/styles/footer-credits.css

    r1923485 r1960852  
    22.return-left { margin-left: 10px; float: left; width : 20%; }
    33.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 {
    99        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 {
    1212        font-weight: normal; letter-spacing : normal; text-transform: none; margin: 0 10px; vertical-align: middle;
    1313        background: none; border : none; float: none; display: inline;  color: inherit; text-decoration: none; }
    1414.footer-right span.copyright, .footer-right span.address, .footer-right span.telephone, .footer-right span.email { display: block;}
    1515       
    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; }
    2121
    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  {
    2630display: block;
    2731}
    2832
    2933.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; }
    3135.widget_footer_trademarks img { border: 0 !important; }
    3236
  • footer-putter/trunk/styles/tooltip.css

    r1923485 r1960852  
    2323.diy-fieldset {display: inline-block; margin: 0 5px; }
    2424.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%;}
    2629.diy-fieldset ul, .wrapfieldset .diy-fieldset ul { margin: 0; }
    2730.diy-fieldset li { display: inline; }
     
    3134.diy-wrap h4 { margin: 10px 0;}
    3235.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;}
    3736.widgets-holder-wrap .diy-wrap .diy-row .diy-label { margin-top: 5px;}
    3837.widgets-holder-wrap .diy-label { min-width: 150px; }
    3938.widgets-holder-wrap .diy-wrap .diy-label { min-width: 100px;}
    4039.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;}
     42tr.diy-row th, tr.diy-row td { margin: 0; padding: 5px;}
     43div.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.