Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 62 lines (56 sloc) 2.412 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
<?php
if (IN_serendipity !== true) { die ("Don't hack!"); }

@serendipity_plugin_api::load_language(dirname(__FILE__));

$serendipity['smarty']->assign(array('currpage' => "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],
                                     'currpage2' => $_SERVER['REQUEST_URI']));

function serendipity_smarty_html5time($timestamp) { return date("c", $timestamp); }
$serendipity['smarty']->register_modifier('serendipity_smarty_html5time', 'serendipity_smarty_html5time');

$template_config = array(
   array(
       'var' => 'date_format',
       'name' => GENERAL_PLUGIN_DATEFORMAT . " (http://php.net/strftime)",
       'type' => 'select',
       'default' => DATE_FORMAT_ENTRY,
       'select_values' => array(DATE_FORMAT_ENTRY => DATE_FORMAT_ENTRY,
                                '%a, %e. %B %Y' => '%a, %e. %B %Y',
                                '%d-%m-%y' => '%d-%m-%y',
                                '%m-%d-%y' => '%m-%d-%y',
                                '%a %d-%m-%y' => '%a %d-%m-%y',
                                '%a %m-%d-%y' => '%a %m-%d-%y',
                                '%b %d' => '%b %d',
                                "%b %d '%y" => "%b %d '%y")
   ),
   array(
       'var' => 'header_img',
       'name' => TWOK11_HEADER_IMG,
       'type' => 'media',
       'default' => serendipity_getTemplateFile('header.jpg')
   ),
   array(
       'var' => 'webfonts',
       'name' => TWOK11_WEBFONTS,
       'type' => 'select',
       'default' => 'none',
       'select_values' => array('none' => TWOK11_NOWEBFONT,
                                'droid' => 'Droid Sans',
                                'ptsans' => 'PT Sans',
                                'osans' => 'Open Sans',
                                'cabin' => 'Cabin',
                                'ubuntu' => 'Ubuntu')
   ),
   array(
       'var' => 'userstyles',
       'name' => TWOK11_USERSTYLES,
       'type' => 'boolean',
       'default' => false
   ),
   array(
       'var' => 'use_corenav',
       'name' => TWOK11_USE_CORENAV,
       'type' => 'boolean',
       'default' => true
   )
);

$template_global_config = array('navigation' => true);
$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option'], true);
serendipity_loadGlobalThemeOptions($template_config, $template_loaded_config, $template_global_config);
Something went wrong with that request. Please try again.