function NextendCacheCss() { $this->_subfolder = 'css' . DIRECTORY_SEPARATOR; parent::NextendCache(); $this->_filetype = 'css'; $this->_gzip = getNextend('gzip', 0); }
function __construct() { $this->_subfolder = 'css' . DIRECTORY_SEPARATOR; parent::__construct(); $this->_filetype = 'css'; $this->_gzip = getNextend('gzip', 0); }
function NextendCacheJavascript() { $this->_subfolder = 'js' . DIRECTORY_SEPARATOR; parent::NextendCache(); $this->_filetype = 'js'; $this->_inline = ''; $this->_gzip = getNextend('gzip', 0); }
function __construct() { $this->_gzip = 0; $this->_path = NextendFilesystem::getCachePath() . $this->_subfolder; $this->createCacheFolder($this->_path); $this->_url = NextendFilesystem::pathToAbsoluteURL($this->_path); $this->_files = array(); $this->_cacheTime = getNextend('cachetime', 900); $this->_prename = 'n'; }
function nextend_wp_loaded() { global $nextend_wp_head; $nextend_wp_head = true; //setNextend('safemode', 0); if (getNextend('safemode', 0) != 1) { ob_start("nextend_render_end"); ob_start(); } }
function onBeforeCompileHead() { if (defined('NEXTENDLIBRARY')) { if (getNextend('debuglng', 0)) { if (count(NextendText::$untranslated)) { echo "<h3>Untranslated strings:</h3><pre>"; NextendText::toIni(); echo "</pre>"; } echo "<h3>Loaded or not loaded language files:</h3><pre>"; print_r(NextendText::$loadedfiles); echo "</pre>"; } $this->compiled = true; if (class_exists('NextendCss')) { $css = NextendCss::getInstance(); $css->generateCSS(); } if (class_exists('NextendJavascript')) { $js = NextendJavascript::getInstance(); $js->generateJs(); } } }
function NextendFilesystem() { $this->_basepath = realpath(WP_CONTENT_DIR); $this->_cachepath = $this->_basepath . DIRECTORY_SEPARATOR . getNextend('cachepath', 'cache' . DIRECTORY_SEPARATOR); $this->_librarypath = str_replace($this->_basepath, '', NEXTENDLIBRARY); }
function NextendFilesystem() { $this->_basepath = JPATH_SITE . DIRECTORY_SEPARATOR; $this->_cachepath = getNextend('cachepath', JPATH_SITE . DIRECTORY_SEPARATOR . 'media' . DIRECTORY_SEPARATOR . 'nextend' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR); $this->_librarypath = str_replace($this->_basepath, '', NEXTENDLIBRARY); }
<?php $nextend_config = $data = get_option('nextend_config'); if (is_array($nextend_config)) { setNextend('cachepath', rtrim(getNextend('cachepath', 'cache/'), '/\\') . '/'); foreach ($nextend_config as $k => $v) { setNextend($k, $v); } } add_action('admin_menu', 'nextend_settings_add_page'); function nextend_settings_add_page() { add_submenu_page('options-general.php', 'Nextend Settings', 'Nextend Settings', 'manage_options', 'nextend_settings_page', 'nextend_settings_page'); } function nextend_settings_page() { ?> <div> <h2>Nextend Global Settings</h2> <?php if (isset($_POST['nextend'])) { update_option('nextend_config', $_POST['nextend']); } ?> <div id="nextend_configuration" class="postbox" style="margin: 0 20px 0 0;"> <form method="post" id="nextend-settings" action="<?php echo admin_url("options-general.php?page=nextend_settings_page"); ?> "> <?php $configurationXmlFile = NEXTENDLIBRARY . 'wordpress/configuration.xml';