Example #1
0
    function show_configs($config)
    {
        if (empty($config)) {
            $config = default_repository();
        }
        ?>
        <div class="config">
        <label id="origen" for="<?php 
        echo $this->get_field_id('text');
        ?>
"><?php 
        _e('ConfiguraciĆ³n');
        ?>
 
            <select autocomplete="off" class='widefat'
		id="<?php 
        echo $this->get_field_id('config');
        ?>
"
		name="<?php 
        echo $this->get_field_name('config');
        ?>
" type="text">
		<?php 
        $directorio = get_configuration_directory();
        foreach (glob($directorio . "*.ini") as $value) {
            $ini_array = parse_ini_file($value);
            ?>
                    <option value=<?php 
            echo $ini_array['name'];
            ?>
                    <?php 
            echo strcmp($ini_array['name'], $config) == 0 ? 'selected' : '';
            ?>
>
				<?php 
            echo $ini_array['name'];
            ?>
                    </option>
		<?php 
        }
        // end for
        ?>
            </select>
        </label>
        </div>
        <?php 
        return;
    }
Example #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);
 }