]> git.mxchange.org Git - friendica.git/blobdiff - include/contact_selectors.php
added templates to testbubble theme to clarify the delete buttons vsxt on the edit...
[friendica.git] / include / contact_selectors.php
index ac1e38e4fe2666cb600d79ffa8f8ffce7925433a..1303acf74a13a1788930997dd8953c61e8752a79 100644 (file)
@@ -46,10 +46,11 @@ function contact_reputation($current) {
 }
 
 
-function contact_poll_interval($current) {
+function contact_poll_interval($current, $disabled = false) {
 
+       $dis = (($disabled) ? ' disabled="disabled" ' : '');
        $o = '';
-       $o .= '<select id="contact-poll-interval" name="poll" />' . "\r\n";
+       $o .= "<select id=\"contact-poll-interval\" name=\"poll\" $dis />" . "\r\n";
 
        $rep = array(
                0 => t('Frequently'),
@@ -67,3 +68,13 @@ function contact_poll_interval($current) {
        $o .= "</select>\r\n";
        return $o;
 }
+
+
+function network_to_name($s) {
+
+       call_hooks('network_to_name', $s);
+
+       return str_replace(array(NETWORK_DFRN,NETWORK_OSTATUS,NETWORK_FEED,NETWORK_MAIL,NETWORK_DIASPORA,NETWORK_FACEBOOK,NETWORK_ZOT),
+               array(t('Friendika'),t('OStatus'),t('RSS/Atom'),t('Email'),t('Diaspora'),t('Facebook'),t('Zot!')),$s);
+
+}