Plugin Directory

Changeset 1895260


Ignore:
Timestamp:
06/19/2018 05:19:54 PM (8 years ago)
Author:
8bitsinarow
Message:

Renamed some element's css classes on admin side to avoid naming conflict with other plugins

Location:
basepress/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • basepress/trunk/admin/class-basepress-settings.php

    r1879291 r1895260  
    520520            settings_fields( 'basepress_settings' );
    521521
    522             echo '<div class="tabs">';
     522            echo '<div class="basepress-tabs">';
    523523            // We use a custom function to render the sections
    524524            $this->do_settings_sections( 'basepress' );
     
    550550
    551551                $checked = 'basepress_general_settings' == $section['id'] ? ' checked="checked" ' : '';
    552                 echo '<div class="tab">';
    553                 echo '<input name="css-tabs" id="' . $section['id'] . '"' . $checked . 'class="tab-switch" type="radio">';
    554                 echo '<label for="' . $section['id'] . '" class="tab-label">' . $section['title'] . '</label>';
     552                echo '<div class="basepress-tab">';
     553                echo '<input name="css-tabs" id="' . $section['id'] . '"' . $checked . 'class="basepress-tab-switch" type="radio">';
     554                echo '<label for="' . $section['id'] . '" class="basepress-tab-label">' . $section['title'] . '</label>';
    555555
    556556                if ( $section['callback'] ) {
     
    563563                    continue;
    564564                }
    565                 echo '<div class="tab-content">';
     565                echo '<div class="basepress-tab-content">';
    566566                echo '<h2 class="settings-title">' . $section['title'] . '</h2>';
    567567                echo '<table class="form-table">';
  • basepress/trunk/basepress.php

    r1886888 r1895260  
    55 * Plug URI: http://www.8bitsinarow.com
    66 * Description: The perfect Knowledge Base plugin for WordPress
    7  * Version: 1.8.3
     7 * Version: 1.8.4
    88 * Author: 8Bits in a row
    99 * Author URI: http://www.8bitsinarow.com
     
    7373             * @var string
    7474             */
    75             public  $ver = '1.8.3' ;
     75            public  $ver = '1.8.4' ;
    7676            /**
    7777             * Database version
  • basepress/trunk/readme.txt

    r1886888 r1895260  
    55Requires at least: 4.5
    66Tested up to: 4.9
    7 Stable tag: 1.8.3
     7Stable tag: 1.8.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    138138== Changelog ==
    139139
     140= 1.8.4 =
     141* Renamed some element's css classes on admin side to avoid naming conflict with other plugins
     142
    140143= 1.8.3 =
    141144* Improved menu handling so KB menu item has class "current_menu_item" when visiting any KB page
  • basepress/trunk/style.css

    r1886888 r1895260  
    570570/* Settings Screen */
    571571
    572 .tabs{
     572.basepress-tabs{
    573573    position: relative;
    574574    margin: 20px 0;
    575575}
    576576
    577 .tab{
     577.basepress-tab{
    578578    width: 200px;
    579579    margin-bottom: 5px;
    580580}
    581581
    582 .tab-switch{
     582.basepress-tab-switch{
    583583    display: none;
    584584}
    585585
    586 .tab-label{
     586.basepress-tab-label{
    587587    position: relative;
    588588    display: block;
     
    596596}
    597597
    598 .tab-label:hover{
     598.basepress-tab-label:hover{
    599599    padding-left: 10px;
    600600    border-left: 4px solid #df3a3a;
     
    606606}
    607607
    608 .tab-content{
     608.basepress-tab-content{
    609609    position: absolute;
    610610    top: 0;
     
    621621}
    622622
    623 input.tab-switch{
     623input.basepress-tab-switch{
    624624    display: none !important;   
    625625}
    626626
    627 .tab-switch:checked + .tab-label{
     627.basepress-tab-switch:checked + .basepress-tab-label{
    628628    padding-left: 10px;
    629629    border-left: 4px solid #df3a3a;
     
    634634}
    635635
    636 .tab-switch:checked + .tab-label + .tab-content{
     636.basepress-tab-switch:checked + .basepress-tab-label + .basepress-tab-content{
    637637    opacity: 1;
    638638    transition: all 0.5s;
     
    640640}
    641641
    642 .tabs input[type="number"]{
     642.basepress-tabs input[type="number"]{
    643643    width: 60px;   
    644644}
    645645
    646 .tabs input[type="text"]{
     646.basepress-tabs input[type="text"]{
    647647    width: 27em;   
    648648}
Note: See TracChangeset for help on using the changeset viewer.