コード例 #1
0
function eu_activate()
{
    $euconfig = eu_getDefaultConfig();
    $euconfig->metadata = array();
    if (get_option('exportador-usuario-config')) {
        delete_option('exportador-usuario-config');
    }
    add_option('exportador-usuario-config', $euconfig);
    $exportadores = eu_getExportadores();
    foreach ($exportadores as $exportador) {
        eval("{$exportador}::activate();");
    }
}
コード例 #2
0
ファイル: page.php プロジェクト: hacklabr/toquenobrasil
    ?>
)</em></label> <br/>
        <?php 
    $first = false;
}
?>
        
        
        <h4><?php 
_e('Ordenar por', 'exportador-usuarios');
?>
:</strong></h4>
        <select name='order'>
        <?php 
$first = true;
$defaultConfig = eu_getDefaultConfig();
foreach ($defaultConfig->userdata as $udata => $dataname) {
    ?>
            <option value='<?php 
    echo $udata;
    ?>
' <?php 
    if (!isset($_POST['order']) && $first || isset($_POST['order']) && $_POST['order'] == $dataname) {
        echo 'checked="checked"';
    }
    ?>
/><?php 
    echo $dataname;
    ?>
</option>
        <?php 
コード例 #3
0
ファイル: config.php プロジェクト: hacklabr/toquenobrasil
<?php

// prefixo que será usado nos slugs
global $wpdb, $wp_roles;
$euoptions = eu_getDefaultConfig();
$euconfig = eu_getConfig();
?>
<style>

.eu-field label{ width:auto; display: inline; vertical-align: auto;}
</style>

<h4><?php 
_e('Selecione as opções que devem aparecer na página de exportação de usuários.');
?>
</h4>
<form method="post">
    <input type="hidden" name='<?php 
echo EU_PREFIX;
?>
action' value='save-config' />
    <table>
        <tr>
            <td valign="top">
                <div class='eu-field'>
                    <h4><?php 
_e('Metadados do usuário', 'exportador-usuarios');
?>
:</strong></h4>
                    <?php 
foreach ($euoptions->metadata as $k => $n) {