/var/www/html/wp-content/plugins/expand-maker/classes/

OS : Linux

PHP Version : 7.4.33

Software : Apache/2.4.6 (CentOS) PHP/7.4.33

Information System : "; // Iterate through the options foreach ($params as $value => $optionName) { // Check if this option is selected $selected = ($value == $selectedValue) ? "selected" : ""; // Add option to the select box $selectBox .= ""; } // Close the select box $selectBox .= ""; return $selectBox; } public static function yrmSelectBox($data, $selectedValue, $attrs) { // Initialize variables $attrString = ''; $selected = ''; // Construct attribute string if (is_array($attrs)) { foreach ($attrs as $attrName => $attrValue) { $attrString .= esc_attr($attrName) . '="' . esc_attr($attrValue) . '" '; } } // Start building the select box $selectBox = ''; return $selectBox; } public static function createRadioButtons($data, $savedValue, $attrs) { $attrString = ''; // Construct attribute string if (is_array($attrs)) { foreach ($attrs as $attrName => $attrValue) { $attrString .= esc_attr($attrName) . '="' . esc_attr($attrValue) . '" '; } } $radioButtons = ''; // Validate $data if (is_array($data)) { foreach ($data as $value) { $checked = ($value === $savedValue) ? 'checked' : ''; // Ensure $value is properly escaped $value = esc_attr($value); $radioButtons .= ""; } } return $radioButtons; } public static function getFooterReviewBlock() { ob_start(); ?>

Read More by Edmon Version:
|
Go PRO
|
|
Add your ★★★★★ on wordpress.org.
have_posts()) { while ($query->have_posts()) { $query->the_post(); $posts[get_the_ID()] = get_the_title(); } wp_reset_postdata(); // Reset post data after custom query } return $posts; } public static function getQueryDataByArgs($args = array()) { $defaultArgs = array( 'offset' => 0, 'orderby' => 'date', 'order' => 'DESC', 'post_status' => 'publish', 'suppress_filters' => true, 'post_type' => 'post', 'posts_per_page' => 1000 ); $args = wp_parse_args($args, $defaultArgs); // Validate and sanitize any user-provided arguments here if necessary $query = new WP_Query($args); return $query; } }