diff options
| author | 2013-11-28 15:30:24 +0100 | |
|---|---|---|
| committer | 2013-11-28 15:30:24 +0100 | |
| commit | 1e9ccb1da9f38ca983258b983e156d56a2887bc9 (patch) | |
| tree | 590ea31462ab43a1ae44d786fbe57ca334dbf1f7 /app/views/configure/sharing.phtml | |
| parent | 3e1fa880c261cacaa2ff83863a29fc7556540969 (diff) | |
Ajoute options pour désactiver partage
Possibilité de désactiver le partage Twitter, G+, FB et email
Refactorisation de certaines parties du code
Diffstat (limited to 'app/views/configure/sharing.phtml')
| -rw-r--r-- | app/views/configure/sharing.phtml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/app/views/configure/sharing.phtml b/app/views/configure/sharing.phtml index 0345b9a8d..38abf9ad4 100644 --- a/app/views/configure/sharing.phtml +++ b/app/views/configure/sharing.phtml @@ -10,7 +10,7 @@ <?php echo Translate::t ('your_shaarli'); ?> </label> <div class="group-controls"> - <input type="url" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" size="64" /> + <input type="url" id="shaarli" name="shaarli" value="<?php echo $this->conf->sharing ('shaarli'); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" size="64" /> <?php echo RSSThemes::icon('help'); ?> <a target="_blank" href="http://sebsauvage.net/wiki/doku.php?id=php:shaarli"><?php echo Translate::t ('more_information'); ?></a> </div> @@ -21,7 +21,7 @@ <?php echo Translate::t ('your_poche'); ?> </label> <div class="group-controls"> - <input type="url" id="poche" name="poche" value="<?php echo $this->conf->urlPoche (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" size="64" /> + <input type="url" id="poche" name="poche" value="<?php echo $this->conf->sharing ('poche'); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" size="64" /> <?php echo RSSThemes::icon('help'); ?> <a target="_blank" href="http://www.inthepoche.com/"><?php echo Translate::t ('more_information'); ?></a> </div> @@ -32,12 +32,28 @@ <?php echo Translate::t ('your_diaspora_pod'); ?> </label> <div class="group-controls"> - <input type="url" id="diaspora" name="diaspora" value="<?php echo $this->conf->urlDiaspora (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" size="64" /> + <input type="url" id="diaspora" name="diaspora" value="<?php echo $this->conf->sharing ('diaspora'); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" size="64" /> <?php echo RSSThemes::icon('help'); ?> <a target="_blank" href="https://diasporafoundation.org/"><?php echo Translate::t ('more_information'); ?></a> </div> </div> + <div class="form-group"> + <label class="group-name" for="mail_login"><?php echo Translate::t ('activate_sharing'); ?></label> + <div class="group-controls"> + <?php + $services = array ('twitter', 'g+', 'facebook', 'email'); + + foreach ($services as $service) { + ?> + <label class="checkbox" for="<?php echo $service; ?>"> + <input type="checkbox" name="<?php echo $service; ?>" id="<?php echo $service; ?>" value="yes"<?php echo $this->conf->sharing ($service) ? ' checked="checked"' : ''; ?> /> + <?php echo Translate::t ($service); ?> + </label> + <?php } ?> + </div> + </div> + <div class="form-group form-actions"> <div class="group-controls"> <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button> |
