Beispiel #1
0
    public function show_cache($duration)
    {
        if (empty($duration)) {
            $duration = defaultCache();
        }
        ?>
        <p>
	<label for="<?php 
        echo $this->get_field_id('text');
        ?>
"><?php 
        _e('Duración de la cache:');
        ?>
 
            <select class='widefat'
		id="<?php 
        echo $this->get_field_id('cache');
        ?>
"
		name="<?php 
        echo $this->get_field_name('cache');
        ?>
">
		<?php 
        $one_day = one_day();
        $all_days = cache_days();
        foreach ($all_days as $day) {
            ?>
			<option value=<?php 
            echo $day * $one_day;
            ?>
			<?php 
            echo $duration == $day * $one_day ? 'selected' : '';
            ?>
>
                        <?php 
            echo $day;
            ?>
 <?php 
            _e('días');
            ?>
</option>
		<?php 
        }
        //end foreach
        ?>
            </select>
	</label>
        </p>  
        <?php 
        return;
    }
Beispiel #2
0
 function default_shortcode()
 {
     return array('handle' => null, 'author' => null, 'keywords' => null, 'config' => default_repository(), 'share' => false, 'max_results' => medium_results(), 'max_lenght' => null, 'show_subtype' => false, 'all' => true, 'group_subtype' => false, 'group_date' => false, 'description' => false, 'date' => false, 'show_author' => false, 'cache' => defaultCache(), 'article' => false, 'preprint' => false, 'book' => false, 'working_paper' => false, 'technical_report' => false, 'conference_object' => false, 'revision' => false, 'work_specialization' => false, 'learning_object' => false, 'thesis' => false, 'conference_document' => false);
 }