options['grid']['columns'] ) ? absint( $group->options['grid']['columns'] ) : 3; $rows = isset( $group->options['grid']['rows'] ) ? absint( $group->options['grid']['rows'] ) : 2; $inner_margin = isset( $group->options['grid']['inner_margin'] ) ? Advanced_Ads_Pro_Utils::absint( $group->options['grid']['inner_margin'], 0, 50 ) : 3; $min_width = isset( $group->options['grid']['min_width'] ) ? absint( $group->options['grid']['min_width'] ) : 250; $full_width_breakpoint = isset( $group->options['grid']['full_width_breakpoint'] ) ? absint( $group->options['grid']['full_width_breakpoint'] ) : 0; $random = isset( $group->options['grid']['random'] ) ? 1 : 0; if( ! class_exists( 'Advanced_Ads_Admin_Options' ) ){ echo 'Please update to Advanced Ads 1.8'; return; } // size ob_start(); include dirname( __FILE__ ) . '/views/grid-option-size.php'; $option_content = ob_get_clean(); Advanced_Ads_Admin_Options::render_option( 'group-pro-grid-size advads-group-type-grid', __( 'Size', 'advanced-ads-pro' ), $option_content ); // margin ob_start(); include dirname( __FILE__ ) . '/views/grid-option-margin.php'; $option_content = ob_get_clean(); Advanced_Ads_Admin_Options::render_option( 'group-pro-grid-margin advads-group-type-grid', __('Inner margin', 'advanced-ads-pro' ), $option_content ); // min width Advanced_Ads_Admin_Options::render_option( 'group-pro-grid-width advads-group-type-grid', __('Min. width', 'advanced-ads-pro' ), ' px', __( 'Minimum width of a column in the grid.', 'advanced-ads-pro' ) ); // full width on mobile Advanced_Ads_Admin_Options::render_option( 'group-pro-grid-mobile advads-group-type-grid', __('Full width', 'advanced-ads-pro' ), ' px', __( 'On browsers smaller than this, the columns show in full width below each other.', 'advanced-ads-pro' ) . ' ' . __( 'Set to 0 to disable this feature.', 'advanced-ads-pro' ) ); // random ob_start(); ?> checked = "checked" />id ) && 'advanced-ads_page_advanced-ads-groups' === $screen->id ) { wp_enqueue_script( 'advanced-ads-pro-grid-admin-group-script', plugins_url( 'assets/js/admin.js', __FILE__ ), array('jquery'), AAP_VERSION ); } } }