prefix . $quotes_table_name; $products_table = $wpdb->prefix . $products_table_name; $profiles_table = $wpdb->prefix . $profiles_table_name; $items_table = $wpdb->prefix . $items_table_name; // Define the available profile types $profile_types = [ 'all', 'client', 'contact', 'executive', 'designer', ]; // Sanitize and validate the limit and page parameter for pagination $pagination_limit = isset($_GET["limit"]) && is_numeric($_GET["limit"]) ? $_GET["limit"] : 10; $pagination = isset($_GET["pagination"]) && is_numeric($_GET["pagination"]) ? $_GET["pagination"] * $pagination_limit : 0; // Define the path to the directory containing function files. $functions_url = $path . "/functions/"; // Get the list of function files $files_functions = array_diff(scandir($functions_url), array('..', '.')); // Include each function file foreach ($files_functions as $item) { $item_path = $functions_url . $item; // Check if it's a directory if (is_dir($item_path)) { // Get the list of files inside the directory $files_inside_folder = array_diff(scandir($item_path), array('..', '.')); // Loop through each file inside the directory foreach ($files_inside_folder as $file) { $file_path = $item_path . '/' . $file; // Include the file if it's a PHP file if (is_file($file_path) && pathinfo($file_path, PATHINFO_EXTENSION) == 'php') { include_once($file_path); } } } else { // Include the file if it's a PHP file directly within the directory if (is_file($item_path) && pathinfo($item_path, PATHINFO_EXTENSION) == 'php') { include_once($item_path); } } } // Get categories $categories_ = get_terms(array( 'taxonomy' => 'category', 'hide_empty' => false, )); // Create an array to store the categories foreach ($categories_ as $category) { if ($category->parent) { $category_parent = get_term($category->parent, 'category'); $parent_name = $category_parent ? $category_parent->name : ''; $categories[$category->term_id]= $parent_name. ": ". $category->name; }else{ $categories[$category->term_id]= $category->name; } } asort($categories); function enqueue_quoter_assets() { // Enqueue jQuery from CDN wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-3.6.4.min.js', array(), '3.6.4', true); // Enqueue the custom script with jQuery as a dependency wp_enqueue_script('quoter-script-functions', plugin_dir_url(__FILE__) . 'files/js/functions.min.js', array('jquery'), '1.0', true); // Enqueue the custom style wp_enqueue_style('quoter-css-styles', plugin_dir_url(__FILE__) . 'files/css/styles.css', array(), '1.0'); } add_action('admin_enqueue_scripts', 'enqueue_quoter_assets'); // Include the file containing translated strings include($path . 'strings.php'); $quote_states = array( 'pending' => tran('status_pending'), 'draft' => tran('status_draft'), 'active' => tran('status_active'), 'expired' => tran('status_expired'), 'approved' => tran('status_approved'), 'paid' => tran('status_paid'), 'hold' => tran('status_hold'), 'disapproved' => tran('status_disapproved') ); // Load quote page data include($path . 'contents/quote/quote.php'); include($path . 'contents/quote/create.php'); include($path . 'contents/quote/preview.php'); include($path . 'contents/quote/summary.php'); // Load profile page data include($path . 'contents/profile/profile.php'); include($path . 'contents/profile/create.php'); // Load product page data include($path . 'contents/product/product.php'); include($path . 'contents/product/create.php'); // Load product page data include($path . 'contents/item/item.php'); include($path . 'contents/item/create.php'); function load_media_files() { wp_enqueue_media(); } add_action('admin_enqueue_scripts', 'load_media_files'); // Enqueue the custom _assets ?> 1.0Trivia Editoreshttps://grupotrivia.cojulibehttps://grupotrivia.co/author/julibe/Anuarios Escolares Personalizadosrich600338<blockquote class="wp-embedded-content" data-secret="ALcYrhpMww"><a href="https://grupotrivia.co/servicios/anuarios/">Anuarios Escolares Personalizados</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://grupotrivia.co/servicios/anuarios/embed/#?secret=ALcYrhpMww" width="600" height="338" title="“Anuarios Escolares Personalizados” — Trivia Editores" data-secret="ALcYrhpMww" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script> /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); </script> https://grupotrivia.co/wp-content/uploads/anuarios-001.webp600450