| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/razzlestore/public_html/wp-content/plugins/iks-menu/includes/utils/ |
Upload File : |
<?php
/**
* Iks Menu
*
*
* @package Iks Menu
* @author IksStudio
* @license GPL-3.0
* @link https://iks-menu.com
* @copyright 2019 IksStudio
*/
namespace IksStudio\IKSM\utils;
use IksStudio\IKSM_CORE\Plugin;
use IksStudio\IKSM_CORE\utils\Utils;
/**
* @subpackage UtilsLocal
*/
class UtilsLocal {
static function get_source_options() {
return [
[
"id" => "taxonomy",
"label" => Utils::t( "Taxonomy" ),
],
[
"id" => "menu",
"label" => Utils::t( "Custom WP menu" ),
],
[
"id" => "faqs",
"label" => Utils::t( "FAQs" ),
],
];
}
static function get_images_support() {
return get_option( Plugin::$slug . "_images_support", null );
}
static function get_images_support_taxonomies() {
return Utils::get( self::get_images_support(), "taxonomies", [] );
}
static function get_images_support_custom_menus() {
return Utils::get( self::get_images_support(), "is_custom_menus", false );
}
static function taxonomy_has_images_support( $taxonomy ) {
if ( $taxonomy === Utils::$woo_taxonomy_id ) {
return true;
} else {
$taxonomies = self::get_images_support_taxonomies();
return in_array( $taxonomy, $taxonomies );
}
}
static function custom_menus_has_images_support() {
return self::get_images_support_custom_menus() === true;
}
static function get_faqs_type() {
return Plugin::$post_type . "_faq";
}
static function get_faqs_taxonomy_type() {
return self::get_faqs_type() . "_group";
}
}