Beispiel #1
0
     *
     * @param string $t
     * @return string
     */
    public function intercept_current_template_path($t)
    {
        $this->set_current_template_path($t);
        return $t;
    }
}
function G1()
{
    return G1::get_instance();
}
// Fire in the hole :)
G1();
class G1_Module
{
    protected $version;
    public function __construct()
    {
        $this->set_version('1.0.0');
        $this->setup_hooks();
    }
    public function set_version($val)
    {
        $this->version = $val;
    }
    public function get_version()
    {
        return $this->version;
Beispiel #2
0
?>
;
    -ms-border-radius:<?php 
echo $g1_border_radius;
?>
;
    -o-border-radius:<?php 
echo $g1_border_radius;
?>
;
    border-radius:<?php 
echo $g1_border_radius;
?>
;
    }

<?php 
echo G1()->capture_custom_css();
$size = ob_get_length();
$content = ob_get_contents();
ob_end_clean();
$cache_timeout = apply_filters('g1_dynamic_style_cache_timeout', 3600);
if (empty($dont_send_headers)) {
    header('Pragma: public');
    // HTTP 1.0
    header('Cache-Control: public');
    header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $cache_timeout) . ' GMT');
    header("Content-Type: text/css");
    header("Content-Length: {$size}");
}
echo $content;