예제 #1
0
파일: css.php 프로젝트: 01J/bealtine
 function NextendCacheCss()
 {
     $this->_subfolder = 'css' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'css';
     $this->_gzip = getNextend('gzip', 0);
 }
예제 #2
0
 function __construct()
 {
     $this->_subfolder = 'css' . DIRECTORY_SEPARATOR;
     parent::__construct();
     $this->_filetype = 'css';
     $this->_gzip = getNextend('gzip', 0);
 }
예제 #3
0
파일: javascript.php 프로젝트: 01J/bealtine
 function NextendCacheJavascript()
 {
     $this->_subfolder = 'js' . DIRECTORY_SEPARATOR;
     parent::NextendCache();
     $this->_filetype = 'js';
     $this->_inline = '';
     $this->_gzip = getNextend('gzip', 0);
 }
예제 #4
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';
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
 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();
         }
     }
 }
예제 #7
0
 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);
 }
예제 #8
0
파일: joomla.php 프로젝트: 01J/bealtine
 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);
 }
예제 #9
0
<?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';