/** * Respond to ajax call to clear SimplePie cache */ public static function utah_ajax_clear_simplepie_cache() { $themeOptions = UtahThemeOptions::getOptions(); $cachedir = $themeOptions['simplepie_cache_dir']; $errMsgs = array(); $dh = opendir($cachedir); while (($file = readdir($dh)) !== false) { if (substr($file, -4) == '.spc') { $retVal = @unlink($cachedir . '/' . $file); if (!$retVal) { $errMsgs[] = sprintf(__('Could not delete file: %s'), $file); } } //else // echo $file.' - '.substr($file, -4).'<br/>'; } // done $resp = array('code' => count($errMsgs) ? __LINE__ : 0, 'msg' => count($errMsgs) ? $errMsgs : __('Success!')); die(json_encode($resp)); }
<?php /** * The template for displaying the footer. * * Contains the closing of the #content div and all content after * * @package University of Utah */ ?> <?php if (!isset($themeOptions)) { $themeOptions = UtahThemeOptions::getOptions(); } ?> </div><!-- #main container --> <div id="footer-container" class="clearfix"> <footer class="wrapper clearfix"> <nav id="bottom-nav" role="navigation"> <a href="javascript:///" class="bottom-mobile-nav mobile-menu-trigger" rel="bottom">QUICK LINKS <span> </span></a> <?php wp_nav_menu(array('theme_location' => 'footer', 'menu_class' => 'bottom-menu menu-trigger', 'container' => false, 'before' => '<h3>', 'after' => '</h3>', 'items_wrap' => '<ul id="%1$s" class="%2$s" rel="bottom">%3$s</ul>')); ?> </nav> <section class="brand-area clearfix">