'useefy-settings', 'title' => __( 'uSeefy', 'useefy' ), 'icon_url' => 'dashicons-admin-generic', 'object_types' => array( 'options-page' ), 'option_key' => 'useefy-settings', ) ); $free_title = __( 'Free Version', 'useefy' ); $free_line_1 = __( 'This is the FREE version of uSeefy.', 'useefy' ); $free_line_2 = __( 'For more functionality you can purchase the PRO version.', 'useefy' ); $free_cta = __( 'Go Pro', 'useefy' ); $free_desc = sprintf( '%s %s

%s', esc_html( $free_line_1 ), esc_html( $free_line_2 ), esc_url( 'https://useefy.com/?utm_source=wp-go-pro' ), esc_html( $free_cta ) ); $cmb_option->add_field( array( 'name' => $free_title, 'desc' => $free_desc, 'id' => 'free-version-info', 'type' => 'title', ) ); // Appearance $cmb_option->add_field( array( 'name' => __( 'Appearance', 'useefy' ), 'id' => 'appearance-settings-title', 'type' => 'title', ) ); $cmb_option->add_field( array( 'name' => __( 'Theme', 'useefy' ), 'id' => 'theme', 'type' => 'select', 'default' => 'dark-mode', 'options' => array( 'dark-mode' => __( 'Dark', 'useefy' ), 'light-mode' => __( 'Light', 'useefy' ), 'system-mode' => __( 'System', 'useefy' ), ), ) ); $cmb_option->add_field( array( 'name' => __( 'Powered by info', 'useefy' ), 'id' => 'powered-by', 'type' => 'radio_inline', 'default' => '0', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), ) ); // Position // Statement // Theme mode $cmb_option->add_field( array( 'name' => __( 'Theme mode', 'useefy' ), 'id' => 'theme-mode-settings-title', 'type' => 'title', ) ); $cmb_option->add_field( array( 'name' => __( 'Low saturation', 'useefy' ), 'id' => 'low-saturation', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), ) ); $cmb_option->add_field( array( 'name' => __( 'High saturation', 'useefy' ), 'id' => 'high-saturation', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), ) ); $cmb_option->add_field( array( 'name' => __( 'Monochrome', 'useefy' ), 'id' => 'monochrome', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), ) ); $cmb_option->add_field( array( 'name' => __( 'Invert colors', 'useefy' ), 'id' => 'invert-colors', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), ) ); // Readability options $cmb_option->add_field( array( 'name' => __( 'Readability options', 'useefy' ), 'id' => 'readability-options-settings-title', 'type' => 'title', ) ); $cmb_option->add_field( array( 'name' => __( 'Highlight headings', 'useefy' ), 'id' => 'highlight-headings', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), ) ); $cmb_option->add_field( array( 'name' => __( 'Highlight links', 'useefy' ), 'id' => 'highlight-links', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), )); $cmb_option->add_field( array( 'name' => __( 'Big cursor', 'useefy' ), 'id' => 'big-cursor', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), )); $cmb_option->add_field( array( 'name' => __( 'Hide images', 'useefy' ), 'id' => 'hide-images', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), )); // Text options $cmb_option->add_field( array( 'name' => __( 'Text options', 'useefy' ), 'id' => 'text-options-settings-title', 'type' => 'title', )); $cmb_option->add_field( array( 'name' => __( 'Text size', 'useefy' ), 'id' => 'text-size', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), )); $cmb_option->add_field( array( 'name' => __( 'Letter spacing', 'useefy' ), 'id' => 'letter-spacing', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), )); $cmb_option->add_field( array( 'name' => __( 'Word spacing', 'useefy' ), 'id' => 'word-spacing', 'type' => 'radio_inline', 'default' => '1', 'options' => array( '1' => __( 'On', 'useefy' ), '0' => __( 'Off', 'useefy' ), ), )); } add_action( 'cmb2_admin_init', 'useefy_register_settings_metabox' );