Esempio n. 1
0
        <div class="message error"></div>
        <div class="row">
            <label><?php 
echo _t('Title') . ' (' . _langName($lang) . ')' . $lc_reqSign;
?>
</label>
            <div><input type="text" name="txtTitle" id="txtTitle" size="120" value="<?php 
echo $post->postTitle;
?>
" class="<?php 
echo $lang;
?>
" /></div>
        </div>
        <?php 
if (auth_isAdmin() && $lang == $lc_defaultLang) {
    ?>
        <div class="row">
            <label><?php 
    echo _t('Slug');
    ?>
 (<?php 
    echo _t("Leave blank unless you want to customize this");
    ?>
)</label>
            <div><input type="text" name="txtSlug" id="txtSlug" size="120" value="<?php 
    echo $post->slug;
    ?>
"></div>
        </div>
        <?php 
<?php

if (auth_isAdmin()) {
    ?>
<div id="lang-content-management">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td class="label">Select one to manage contents by language</td>
                <td>
                <?php 
    $lang = _getLang();
    foreach ($lc_languages as $lcode => $lname) {
        $class = $lang == $lcode ? 'active' : '';
        $url = _url(null, array('lang' => $lcode));
        ?>
                    <a href="<?php 
        echo $url;
        ?>
" class="<?php 
        echo $class;
        ?>
">
                        <span><?php 
        _image('flags/' . $lcode . '.png', $lname);
        ?>
</span>
                    </a>
                <?php 
    }
    ?>
            </td>