Ejemplo n.º 1
0
    $optionsGrading[] = "teacher";
    $tpl['optionsGrading'] = $optionsGrading;
    $optionsShowScore = array();
    $optionsShowScore[] = "immediately";
    $optionsShowScore[] = "after expire date";
    $optionsShowScore[] = "never";
    $tpl['optionsShowScore'] = $optionsShowScore;
    // FIXME - This needs to be limited to the session timeout in php.ini
    $mins = array();
    for ($i = 1; $i <= 20; $i++) {
        $mins[] = $i;
    }
    $tpl['mins'] = $mins;
    $repetitions = array();
    $qpp = array();
    for ($i = 1; $i <= 10; $i++) {
        $qpp[] = $i;
        $repetitions[] = $i;
    }
    $repetitions[] = "unlimited";
    $qpp[] = "unlimited";
    $tpl['repetitions'] = $repetitions;
    $tpl['qpp'] = $qpp;
    $tpl['siteTimeZone'] = $prefs['display_timezone'];
}
$tpl = array();
setup_options($tpl);
$smarty->assign('tpl', $tpl);
ask_ticket('edit-quiz-question');
$smarty->assign('mid', 'tiki-quiz_edit.tpl');
$smarty->display("tiki.tpl");
Ejemplo n.º 2
0
    ?>
<!--[if lte IE 6]>
<style type="text/css" media="screen">
 @import "<?php 
    bloginfo('template_url');
    ?>
/ie6.css";
</style>
<![endif]-->

 <?php 
}
add_action('wp_head', 'setup_css', 2);
//if (version_compare(get_arclite_option('theme_version'), THEME_VERSION, '!=')) setup_options();
if (!get_option('arclite')) {
    setup_options();
}
function queryposts($atts)
{
    extract(shortcode_atts(array('category_id' => '', 'category_name' => '', 'tag' => '', 'day' => '', 'month' => '', 'year' => '', 'count' => '5', 'author_id' => '', 'author_name' => '', 'order_by' => 'date'), $atts));
    $output = '';
    $query = array();
    if ($category_id != '') {
        $query[] = 'cat=' . $category_id;
    }
    if ($category_name != '') {
        $query[] = 'category_name=' . $category_name;
    }
    if ($tag != '') {
        $query[] = 'tag=' . $tag;
    }