'' . __('Settings', 'General') . ''); $actions = array_merge($settings, $actions); } return $actions; } function run_ascend_marketing() { $plugin = new Ascend_Marketing(); $plugin->run(); } run_ascend_marketing(); add_action( 'admin_menu', 'wpam_add_admin_menu' ); add_action( 'admin_init', 'wpam_settings_init' ); function wpam_add_admin_menu( ) { add_menu_page( 'Ascend Marketing', 'Ascend Marketing', 'manage_options', 'ascend_marketing', 'wpam_options_page' ); } function wpam_settings_init( ) { //Register plugin settings page register_setting( 'pluginPage', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage' ); register_setting( 'pluginPage1', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage1' ); register_setting( 'pluginPage2', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage2' ); register_setting( 'pluginPage3', 'wpam_settings' ); add_settings_section( 'wpam_pluginPage_section', __( '', 'wordpress' ), 'wpam_settings_section_callback', 'pluginPage3' ); //styling options setting section label add_settings_field( 'wpam_label1', __( 'Styling Options', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'section_styling' ) ); //styling options setting field - breakpoint setting add_settings_field( 'wpam_breakpoint', __( 'CTA Breakpoint:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'bp' ) ); //styling options setting field - background color add_settings_field( 'wpam_bg_color', __( 'CTA Background Color:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'bg' ) ); //styling options setting field - button text color add_settings_field( 'wpam_text_color', __( 'CTA Text Color:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage', 'wpam_pluginPage_section', array ( 'context' => 'tc' ) ); //styling options setting field - Button options label add_settings_field( 'wpam_label2', __( 'Button Options', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'section_buttons' ) ); //styling options setting field - button 1 label add_settings_field( 'wpam_b1_label', __( 'Button #1 Label:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b1l' ) ); //styling options setting field - button 1 link add_settings_field( 'wpam_b1_link', __( 'Button #1 Link:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b1p' ) ); //styling options setting field - button 1 icon add_settings_field( 'wpam_b1_icon', __( 'Button #1 Icon:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b1i' ) ); //styling options setting field - button 2 label add_settings_field( 'wpam_b2_label', __( 'Button #2 Label:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b2l' ) ); //styling options setting field - button 2 link add_settings_field( 'wpam_b2_link', __( 'Button #2 Link:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b2p' ) ); //styling options setting field - button 2 icon add_settings_field( 'wpam_b2_icon', __( 'Button #2 Icon:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage1', 'wpam_pluginPage_section', array ( 'context' => 'b2i' ) ); //Enable font awesome support add_settings_field( 'wpam_enable_icon', __( 'Enable Font-Awesome:', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage2', 'wpam_pluginPage_section', array ( 'context' => 'fa' ) ); //Header code add_settings_field( 'wpam_textarea_field_0', __( 'Header code', 'wordpress' ), 'wpam_cta_fields_render', 'pluginPage3', 'wpam_pluginPage_section', array ( 'context' => 'section_fb_px' ) ); } function wpam_cta_fields_render( $args ) { $options = get_option( 'wpam_settings' ); ?> ' /> Determine the screen size where the plug-in takes effect ' /> Hex: ' /> Get help picking the right colors. ' /> Hex: ' /> Get help picking the right colors. ' /> ' /> | Example: mailto:email@domain.com, sms:phone, tel:phone ' /> | Example: phone, phone-square, envelope. Enter word in field for icon to show next to button (Click to see all icons) ' /> ' /> | Example: mailto:email@domain.com, sms:phone, tel:phone ' /> | Example: phone, phone-square, envelope. Enter word in field for icon to show next to button (Click to see all icons) /> | If Font Awesome is not enabled on your site by default, check this box to enable. (Check if icons are not showing on the site).