HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/2foodfactor/public_html/wp-content/plugins/staff-list/inc/cnt-fone.php
<?php

function abcfsl_cnt_fone_field_SLFONE( $par ){

    $lblTxt = $par['lblTxt'];

    if ( abcfl_html_isblank( $lblTxt ) ) { return abcfsl_cnt_fone_field_FONE( $par ); }

    $url = $par['url'];
    if( empty( $url ) ){ return ''; } 
    
    $urlTxt = $par['urlTxt'];
    if( empty( $urlTxt ) ){ return ''; }

    $staticLbl = html_entity_decode( $lblTxt );

    $tapAction = $par['tapAction'];
    if ( empty( $tapAction ) ) { $tapAction = 'tel:'; }
    $url = $tapAction . $url;

    $tagCls = abcfsl_util_pg_type_cls_bldr( $par['tagCls'], $par['isSingle'] );
    $lblCls = abcfsl_util_pg_type_cls_bldr( $par['lblCls'], $par['isSingle'] );
    $txtCls = abcfsl_util_pg_type_cls_bldr( $par['txtCls'], $par['isSingle'] );

    $cntrS = abcfl_html_tag( $par['tagType'], '', $tagCls . $par['fieldTypeF'], $par['tagStyle'] );
    $cntrE = abcfl_html_tag_end( $par['tagType']);

    $spanLblS = abcfl_html_tag( 'span', '', $lblCls, $par['lblStyle']  );
    $spanTxtS = abcfl_html_tag( 'span', '', $txtCls, $par['txtStyle'] );
    $spanE = abcfl_html_tag_end('span');
    //----------------------------------------

    $link = abcfl_html_a_tag( $url, $urlTxt, '', $par['lnkCls'], '', '', false );

    return $cntrS . $spanLblS .$staticLbl . '&nbsp;' . $spanE . $spanTxtS . $link . $spanE . $cntrE;
}

function abcfsl_cnt_fone_field_FONE( $par ){

    $url = $par['url'];
    if( empty( $url ) ){ return ''; } 
    
    $urlTxt = $par['urlTxt'];
    if( empty( $urlTxt ) ){ return ''; }

    $tapAction = $par['tapAction'];
    if ( empty( $tapAction ) ) { $tapAction = 'tel:'; }
    $url = $tapAction . $url;

    $tagCls = abcfsl_util_pg_type_cls_bldr( $par['tagCls'] . $par['fieldTypeF'], $par['isSingle'] );
    $cntrS = abcfl_html_tag( $par['tagType'], '', $tagCls, $par['tagStyle'] );
    $cntrE = abcfl_html_tag_end( $par['tagType']);
    //----------------------------------------

    $link = abcfl_html_a_tag( $url, $urlTxt, '', $par['lnkCls'], '', '', false ); 
    
    return $cntrS . $link . $cntrE;
}