Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : breakpoint-settings.php
<?php
/**
 * Breakpoint settings metabox.
 *
 * @package Page Builder Framework Premium Add-On
 * @subpackage Settings
 */

defined( 'ABSPATH' ) || die( "Can't access directly" );

/**
 * Premium Add-On settings.
 */
function wpbf_premium_breakpoint_settings() {

	// Sections.
	add_settings_section( 'breakpoints-section', __( 'Breakpoints', 'wpbfpremium' ), '', 'wpbf-breakpoint-settings' );

	// Fields.
	add_settings_field( 'wpbf_breakpoint_desktop', __( 'Desktop', 'wpbfpremium' ), 'wpbf_breakpoint_desktop_callback', 'wpbf-breakpoint-settings', 'breakpoints-section' );
	add_settings_field( 'wpbf_breakpoint_medium', __( 'Tablet', 'wpbfpremium' ), 'wpbf_breakpoint_medium_callback', 'wpbf-breakpoint-settings', 'breakpoints-section' );
	add_settings_field( 'wpbf_breakpoint_mobile', __( 'Mobile', 'wpbfpremium' ), 'wpbf_breakpoint_mobile_callback', 'wpbf-breakpoint-settings', 'breakpoints-section' );

}
add_action( 'admin_init', 'wpbf_premium_breakpoint_settings' );

/**
 * Mobile breakpoint callback.
 */
function wpbf_breakpoint_mobile_callback() {

	$wpbf_settings     = get_option( 'wpbf_settings' );
	$breakpoint_mobile = ! empty( $wpbf_settings['wpbf_breakpoint_mobile'] ) ? $wpbf_settings['wpbf_breakpoint_mobile'] : false;

	echo '<label><input type="text" name="wpbf_settings[wpbf_breakpoint_mobile]" value="' . esc_attr( $breakpoint_mobile ) . '" placeholder="480px" size="10" /> <span class="description">' . __( 'Default: until 480px for mobiles.', 'wpbfpremium' ) . '</span></label>';

}

/**
 * Medium breakpoint callback.
 */
function wpbf_breakpoint_medium_callback() {

	$wpbf_settings     = get_option( 'wpbf_settings' );
	$breakpoint_medium = ! empty( $wpbf_settings['wpbf_breakpoint_medium'] ) ? $wpbf_settings['wpbf_breakpoint_medium'] : false;

	echo '<label><input type="text" name="wpbf_settings[wpbf_breakpoint_medium]" value="' . esc_attr( $breakpoint_medium ) . '" placeholder="768px" size="10" /> <span class="description">' . __( 'Default: above 768px for tablets.', 'wpbfpremium' ) . '</span></label>';

}

/**
 * Desktop breakpoint callback.
 */
function wpbf_breakpoint_desktop_callback() {

	$wpbf_settings      = get_option( 'wpbf_settings' );
	$breakpoint_desktop = ! empty( $wpbf_settings['wpbf_breakpoint_desktop'] ) ? $wpbf_settings['wpbf_breakpoint_desktop'] : false;

	echo '<label><input type="text" name="wpbf_settings[wpbf_breakpoint_desktop]" value="' . esc_attr( $breakpoint_desktop ) . '" placeholder="1024px" size="10" /> <span class="description">' . __( 'Default: above 1024px for desktops.', 'wpbfpremium' ) . '</span></label>';

}
© 2026 GrazzMean