' .__($labelTxt , $slug ). '', $idCallback, $slug, $registerId); register_setting($registerId, $id); } function callTest(){ addFieldRegister('arbtt_enable','Enable Back to top','arbtt','arbtt_enable_cb','arbtt_ssection_id'); addFieldRegister('arbtt_bgc','Button Background Color','arbtt','arbtt_bgc_cb','arbtt_ssection_id'); addFieldRegister('arbtt_clr','Button Color','arbtt','arbtt_clr_cb','arbtt_ssection_id'); addFieldRegister('arbtt_bdrd','Button Border Radius','arbtt','arbtt_bdrd_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btnps','Button Position','arbtt','arbtt_btnps_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btnapr','Button Appear In Scroll After','arbtt','arbtt_btnapr_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btndm','Button Dimension','arbtt','arbtt_btndm_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btnoc','Button Opacity','arbtt','arbtt_btnoc_cb','arbtt_ssection_id'); addFieldRegister('arbtt_fadein','Fade In','arbtt','arbtt_fadein_cb','arbtt_ssection_id'); addFieldRegister('arbtt_fz','Font Size','arbtt','arbtt_fz_cb','arbtt_ssection_id'); addFieldRegister('arbtt_hophone',__('Hide On Phone', 'arbtt'),'arbtt','arbtt_hophone_cb','arbtt_ssection_id'); addFieldRegister('arbtt_pwidth',__('Phone Width', 'arbtt'),'arbtt','arbtt_pwidth_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btnst',__('Button Style', 'arbtt'),'arbtt','arbtt_btnst_cb','arbtt_ssection_id'); addFieldRegister('arbtt_fi',__('Font Icon', 'arbtt'),'arbtt','arbtt_fi_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btntx',__('Button Text', 'arbtt'),'arbtt','arbtt_btntx_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btnimg',__('Choose Button Image', 'arbtt'),'arbtt','arbtt_btnimg_cb','arbtt_ssection_id'); addFieldRegister('arbtt_btnimg_url',__('External Image Url', 'arbtt'),'arbtt','arbtt_btnimg_url_cb','arbtt_ssection_id'); } add_action("admin_init", "callTest"); function arbtt_display() { add_settings_section('arbtt_ssection_id', __('Choose Your Option', 'arbtt'), 'arbtt_idss', 'arbtt'); } function arbtt_idss(){echo "";} function arbtt_enable_cb(){ ?> > X "/> "/> "/> "/> '. __("This will show as your button text", "arbtt") .' '; } function arbtt_btnimg_url_cb(){ ?>
'arbtt.png', '1'=> 'arbtt2.png', '2'=> 'arbtt3.png', '3'=> 'arbtt4.png', '4'=> 'arbtt5.png', '5'=> 'arbtt6.png', ); foreach ($images as $image) { ?> "/>    > $dataToPass, 'sctoptime'=> $arbtt_fadein); wp_localize_script( 'arbtt_custom_js', 'object_name', $arobj_array ); } add_action( 'wp_footer', 'arbtt_top' ); function arbtt_top() { $arbtt_btndm = (get_option('arbtt_btndm')) ? get_option('arbtt_btndm') : '40'; global $arbtt_pwidth; $arbtt_bgc = (get_option('arbtt_bgc')) ? get_option('arbtt_bgc') : '#000'; $arbtt_fz = (get_option('arbtt_fz')) ? get_option('arbtt_fz') : '20'; $arbtt_clr = (get_option('arbtt_clr')) ? get_option('arbtt_clr') : '#fff'; $arbtt_btnps = (get_option('arbtt_btnps')) ? get_option('arbtt_btnps') : 'right'; $arbtt_btnps = (get_option('arbtt_btnps')) ? get_option('arbtt_btnps') : 'right'; $arbtt_btnoc = (get_option('arbtt_btnoc')) ? get_option('arbtt_btnoc') : '0.5'; $arbtt_bdrd = (get_option('arbtt_bdrd')) ? get_option('arbtt_bdrd') : '0'; $btnwidth = ($arbtt_btndm['w']) ? $arbtt_btndm['w'] : '40'; $btnheight = ($arbtt_btndm['h']) ? $arbtt_btndm['h'] : '40'; $arbtt_enable = get_option('arbtt_enable'); $arbtt_hophone = get_option('arbtt_hophone'); $arbtt_pwidth = (get_option($arbtt_pwidth)) ? get_option($arbtt_pwidth) : '767'; $abc = get_option('arbtt_pwidth'); $arbtt_btntx = (get_option('arbtt_btntx')) ? get_option('arbtt_btntx') : 'Top'; $arbtt_fi = (get_option('arbtt_fi')) ? get_option('arbtt_fi') : 'arrow-up'; $arbtt_btnst = (get_option('arbtt_btnst')) ? get_option('arbtt_btnst') : 'txt'; $arbtt_btnimg = (get_option('arbtt_btnimg')) ? get_option('arbtt_btnimg') : plugin_dir_url( __FILE__ ). 'assets/images/arbtt6.png'; $display = ($arbtt_enable) ? "block" : "none"; ?>
Settings'; $links[] = 'Support'; return $links; }