Plugin Directory

Changeset 2923400


Ignore:
Timestamp:
06/08/2023 01:00:10 PM (3 years ago)
Author:
abcfolio
Message:

Version: 1.7.1

Location:
staff-list/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • staff-list/trunk/library/abcfl-input.php

    r2674521 r2923400  
    22/**
    33 * Input builders
    4  * abcfl-input.php Version 227
     4 * abcfl-input.php Version 228
    55 *
    66 * 215 abcfl_input_lbl_hlp
     
    1717 * 226 Added: abcfl_input_div_txt_cls_style
    1818 * 227 abcfl_input_checkbox_with_help_icon, discontinued abcfl_input_checkbox_hlp
     19 * 228 cleanup, comments removed
    1920 */
    2021
     
    4041    //Wrap START
    4142    echo abcfl_html_tag_cls(  'div', 'abcflPosRel ' . $clsCntr, false );
    42         //----------------------------------
    43         //First float. Div with content.
    4443        echo abcfl_html_tag_with_content( $icon, 'div', '', 'abcflFloatL abcflLineH1' );
    45 
    46         //Second float START
    4744        echo abcfl_html_tag( 'div', '', 'abcflFloatL abcflPLeft20' );
    48             //Label or Label and ? link
    4945            echo $divTxt1;
    50             //Label, second row
    5146            if( !empty ( $txt2 ) ) { echo abcfl_html_tag_with_content( $txt2, 'div', '', $clsTxt2 ); }
    52         //Second float END
    5347        echo abcfl_html_tag_end('div');
    54 
    55         //Clear floats
    5648        echo abcfl_html_tag_cls(  'div', 'abcflClr', true );
    5749        //-------------------------------------------------------
     
    6557    function abcfl_input_sec_title_hlp( $url, $txt, $hlpHref, $clsCust='', $target='_blank', $txtHyperlink=false ) {
    6658
    67         //No link. Show label only.
    6859        if( empty( $hlpHref ) ) { return abcfl_input_sec_title( $txt, $clsCust ); }
    69 
    7060        $cls = 'abcflFontWP abcflFontS16 abcflFontW600 abcflMTop5';
    7161        if(!empty($clsCust)){ $cls = trim($clsCust); }
    72 
    73         //$hlpIcon = '';
    7462        $hlpIcon = abcfl_html_img_tag( '', $url . 'help.png', 'Help', 'Help', 40, 24, 'abcflVABottom' );
    7563        $hlpURL = abcfl_html_a_tag( $hlpHref, $hlpIcon, $target );
     
    309297    function abcfl_input_checkbox_grp( $fldID, $fldName, $fldValue, $savedValue, $lblTx, $clsCntr, $clsInput, $clsLbl ){
    310298
    311     //     <input type="checkbox" id="subscribeNews" name="subscribe" value="newsletter" checked>
    312     //     <label for="subscribeNews">Subscribe to newsletter?</label>
    313 
    314299        if( empty( $fldName ) ) { $fldName = $fldID; }
    315300   
     
    321306   
    322307        $input = '<input type="checkbox"  id="'. $fldID . '"' . ' value="' . $fldValue . '" name="'. $fldID . '"' . $clsInput . $checked . '>';
    323         //$lbl = '<label for="' . $fldID . '"'. $clsLbl . '>' . $lblTx . '</label>';
    324         //return $fldCntrDivS .  $input  . $lbl . '</div>';
    325308        $lblWrapS = '<label for="' . $fldID . '"'. $clsLbl . '>';
    326309        $fldCntrDivS = '<div ' . $clsCntr . '>'; 
     
    329312    }
    330313}
    331 
    332 // DISONTINUED ??????????????? REPLACED WITH abcfl_input_checkbox_with_help_icon ???
    333 // if ( !function_exists( 'abcfl_input_checkbox_hlp' ) ){
    334 //     function abcfl_input_checkbox_hlp( $fldID, $fldValue, $lblTxt, $hlpTxt, $hlpHref, $imgURL, $clsCntr ){
    335    
    336 //         $optns = abcfl_input_get_options( $fldID, '', $lblTxt, $hlpTxt, '', '', '', $clsCntr, '', '');
    337 //         extract( $optns );
    338    
    339 //         $checked = '';
    340 //         if($fldValue == 1){ $checked = ' checked '; }
    341    
    342 //         $input = '<input type="checkbox"  id="'. $fldID . '"' . ' value="' . $fldValue . '" name="'. $fldID . '"' . $checked . '>';
    343    
    344 //         $hlpIcon = abcfl_html_img_tag( '', $imgURL . 'help.png', 'Help', 'Help', 40, 24, 'abcflVABottom' );
    345 //         $hlpURL = abcfl_html_a_tag( $hlpHref, $hlpIcon, '_blank' );
    346    
    347 //         if( !empty( $hlpURL ) ){
    348 //             $hlpURL = abcfl_html_tag_with_content( $hlpURL, 'span', '');
    349 //         }
    350    
    351 //         return $fldCntrDivS . '<label>' . $input . abcfl_html_tag_with_content( $lblTxt, 'span', '') . $hlpURL . '</label></div>';
    352 //     }
    353 // }
    354314
    355315// Can have ? icon with link to documentation. Icon is optional.
     
    534494
    535495        $value = $lblTxt;
    536 //        if(!empty($lblTxt)){$value = $lblTxt;}
    537 //        else { $value = abcfl_input_txta($lblTxt); }
    538 
    539496        $divS = '';
    540497        $divE = '';
     
    678635
    679636    $divLbl = '';
    680 //    if(!empty($lbl)){
    681 //        $clsLbl = !empty($clsLbl) ? $clsLbl : 'abcfFldLbl';
    682 //        $divLbl = '<div class="' . $clsLbl .'">' . $lbl . '</div>';
    683 //    }
    684637    if(!empty($lbl)){
    685638        if(!empty($clsLbl)){
     
    695648if ( !function_exists( 'abcfl_input_cntr_div' ) ){
    696649function abcfl_input_cntr_div($clsCntr) {
    697 
    698     //$clsCntr = !empty($clsCntr) ? $clsCntr : 'abcflFldCntr';
    699650    $cls = !empty($clsCntr) ? $clsCntr : 'form-field';
    700651    return '<div class="' . $cls . '">';
     
    708659    $selected = "";
    709660    foreach($values as $key => $fldValue){
    710         //return ('key= ' . $key . ' sw= ' . $selected_value);
    711661        $selected = abcfl_input_cbo_set_selected($key, $selected_value);
    712662        $out .= '<option ' . $selected . ' value="' . esc_attr($key) . '">' . esc_html($fldValue) . '</option>';
  • staff-list/trunk/readme.txt

    r2886080 r2923400  
    44Donate link: https://abcfolio.com/wordpress-plugin-staff-list/purchase-plugin/
    55Requires at least: 4.9
    6 Tested up to:  6.1
     6Tested up to:  6.3
    77Requires PHP: 5.6
    8 Stable tag: 1.7.0
     8Stable tag: 1.7.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    130130== Changelog ==
    131131
    132 = 1.7.0 20230323
     132= 1.7.1 20230608
     133* Update: Cleanup of abcfl-input.php
     134
     135= 1.7.0 20230320
    133136* Update: Modified MP prefix and suffix section to better handle spaces and other in-line options.
    134 * Update: Added check for pretty permalink to filter_spg_wp_title.
    135 * Fix: Squirrly SEO og section modified to handle array error.
     137* Fix: Squirrly SEO og section modified to handle missing array error.
    136138
    137139= 1.6.9 20230220
  • staff-list/trunk/staff-list.php

    r2886080 r2923400  
    1111Requires at least: 4.9
    1212Requires PHP: 5.6
    13 Version: 1.7.0
     13Version: 1.7.1
    1414------------------------------------------------------------------------
    1515Copyright 2009-2021 abcFolio.
     
    3939    private static $instance;
    4040    public $pluginSlug = 'abcfolio-staff-list';
    41     public $pluginVersion = '1.7.0';   
     41    public $pluginVersion = '1.7.1';   
    4242    public $prefix = 'abcfsl';
    4343
     
    199199                require_once ABCFSL_PLUGIN_DIR . 'adminf/mbox-tplate-fields.php';
    200200            //}
    201                            
     201
    202202            $mboxCATMenu = new ABCFSL_MBox_CAT_Menu();
    203203            $mboxAZMenu = new ABCFSL_MBox_AZ_Menu();
     
    483483        // pp from URL
    484484        $prettyPermalink = $this->spg_pretty_permalink_staff_name();
    485 
    486485        //error_log( print_r( 'prettyPermalink', true) );
    487486        //error_log( print_r( $prettyPermalink, true) );
Note: See TracChangeset for help on using the changeset viewer.