Changeset 2923400
- Timestamp:
- 06/08/2023 01:00:10 PM (3 years ago)
- Location:
- staff-list/trunk
- Files:
-
- 3 edited
-
library/abcfl-input.php (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
-
staff-list.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
staff-list/trunk/library/abcfl-input.php
r2674521 r2923400 2 2 /** 3 3 * Input builders 4 * abcfl-input.php Version 22 74 * abcfl-input.php Version 228 5 5 * 6 6 * 215 abcfl_input_lbl_hlp … … 17 17 * 226 Added: abcfl_input_div_txt_cls_style 18 18 * 227 abcfl_input_checkbox_with_help_icon, discontinued abcfl_input_checkbox_hlp 19 * 228 cleanup, comments removed 19 20 */ 20 21 … … 40 41 //Wrap START 41 42 echo abcfl_html_tag_cls( 'div', 'abcflPosRel ' . $clsCntr, false ); 42 //----------------------------------43 //First float. Div with content.44 43 echo abcfl_html_tag_with_content( $icon, 'div', '', 'abcflFloatL abcflLineH1' ); 45 46 //Second float START47 44 echo abcfl_html_tag( 'div', '', 'abcflFloatL abcflPLeft20' ); 48 //Label or Label and ? link49 45 echo $divTxt1; 50 //Label, second row51 46 if( !empty ( $txt2 ) ) { echo abcfl_html_tag_with_content( $txt2, 'div', '', $clsTxt2 ); } 52 //Second float END53 47 echo abcfl_html_tag_end('div'); 54 55 //Clear floats56 48 echo abcfl_html_tag_cls( 'div', 'abcflClr', true ); 57 49 //------------------------------------------------------- … … 65 57 function abcfl_input_sec_title_hlp( $url, $txt, $hlpHref, $clsCust='', $target='_blank', $txtHyperlink=false ) { 66 58 67 //No link. Show label only.68 59 if( empty( $hlpHref ) ) { return abcfl_input_sec_title( $txt, $clsCust ); } 69 70 60 $cls = 'abcflFontWP abcflFontS16 abcflFontW600 abcflMTop5'; 71 61 if(!empty($clsCust)){ $cls = trim($clsCust); } 72 73 //$hlpIcon = '';74 62 $hlpIcon = abcfl_html_img_tag( '', $url . 'help.png', 'Help', 'Help', 40, 24, 'abcflVABottom' ); 75 63 $hlpURL = abcfl_html_a_tag( $hlpHref, $hlpIcon, $target ); … … 309 297 function abcfl_input_checkbox_grp( $fldID, $fldName, $fldValue, $savedValue, $lblTx, $clsCntr, $clsInput, $clsLbl ){ 310 298 311 // <input type="checkbox" id="subscribeNews" name="subscribe" value="newsletter" checked>312 // <label for="subscribeNews">Subscribe to newsletter?</label>313 314 299 if( empty( $fldName ) ) { $fldName = $fldID; } 315 300 … … 321 306 322 307 $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>';325 308 $lblWrapS = '<label for="' . $fldID . '"'. $clsLbl . '>'; 326 309 $fldCntrDivS = '<div ' . $clsCntr . '>'; … … 329 312 } 330 313 } 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 // }354 314 355 315 // Can have ? icon with link to documentation. Icon is optional. … … 534 494 535 495 $value = $lblTxt; 536 // if(!empty($lblTxt)){$value = $lblTxt;}537 // else { $value = abcfl_input_txta($lblTxt); }538 539 496 $divS = ''; 540 497 $divE = ''; … … 678 635 679 636 $divLbl = ''; 680 // if(!empty($lbl)){681 // $clsLbl = !empty($clsLbl) ? $clsLbl : 'abcfFldLbl';682 // $divLbl = '<div class="' . $clsLbl .'">' . $lbl . '</div>';683 // }684 637 if(!empty($lbl)){ 685 638 if(!empty($clsLbl)){ … … 695 648 if ( !function_exists( 'abcfl_input_cntr_div' ) ){ 696 649 function abcfl_input_cntr_div($clsCntr) { 697 698 //$clsCntr = !empty($clsCntr) ? $clsCntr : 'abcflFldCntr';699 650 $cls = !empty($clsCntr) ? $clsCntr : 'form-field'; 700 651 return '<div class="' . $cls . '">'; … … 708 659 $selected = ""; 709 660 foreach($values as $key => $fldValue){ 710 //return ('key= ' . $key . ' sw= ' . $selected_value);711 661 $selected = abcfl_input_cbo_set_selected($key, $selected_value); 712 662 $out .= '<option ' . $selected . ' value="' . esc_attr($key) . '">' . esc_html($fldValue) . '</option>'; -
staff-list/trunk/readme.txt
r2886080 r2923400 4 4 Donate link: https://abcfolio.com/wordpress-plugin-staff-list/purchase-plugin/ 5 5 Requires at least: 4.9 6 Tested up to: 6. 16 Tested up to: 6.3 7 7 Requires PHP: 5.6 8 Stable tag: 1.7. 08 Stable tag: 1.7.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 130 130 == Changelog == 131 131 132 = 1.7.0 20230323 132 = 1.7.1 20230608 133 * Update: Cleanup of abcfl-input.php 134 135 = 1.7.0 20230320 133 136 * 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. 136 138 137 139 = 1.6.9 20230220 -
staff-list/trunk/staff-list.php
r2886080 r2923400 11 11 Requires at least: 4.9 12 12 Requires PHP: 5.6 13 Version: 1.7. 013 Version: 1.7.1 14 14 ------------------------------------------------------------------------ 15 15 Copyright 2009-2021 abcFolio. … … 39 39 private static $instance; 40 40 public $pluginSlug = 'abcfolio-staff-list'; 41 public $pluginVersion = '1.7. 0';41 public $pluginVersion = '1.7.1'; 42 42 public $prefix = 'abcfsl'; 43 43 … … 199 199 require_once ABCFSL_PLUGIN_DIR . 'adminf/mbox-tplate-fields.php'; 200 200 //} 201 201 202 202 $mboxCATMenu = new ABCFSL_MBox_CAT_Menu(); 203 203 $mboxAZMenu = new ABCFSL_MBox_AZ_Menu(); … … 483 483 // pp from URL 484 484 $prettyPermalink = $this->spg_pretty_permalink_staff_name(); 485 486 485 //error_log( print_r( 'prettyPermalink', true) ); 487 486 //error_log( print_r( $prettyPermalink, true) );
Note: See TracChangeset
for help on using the changeset viewer.