Пример #1
0
 public function getTitle()
 {
     if (isset($this->element->{'video-caption'}) && $this->element->{'video-caption'} != '') {
         return strip_tags($this->element->{'video-caption'});
     }
     return Sniftr::_('Untitled Video');
 }
Пример #2
0
 public function getTitle()
 {
     if (isset($this->element->{'regular-title'}) && $this->element->{'regular-title'} != '') {
         return $this->element->{'regular-title'};
     }
     return Sniftr::_('Untitled');
 }
Пример #3
0
 public function getTitle()
 {
     if (isset($this->element->{'link-text'}) && $this->element->{'link-text'} != '') {
         return $this->element->{'link-text'};
     }
     return Sniftr::_('Link');
 }
Пример #4
0
 public function getTitle()
 {
     if (isset($this->element->{'conversation-title'}) && $this->element->{'conversation-title'} != '') {
         return $this->element->{'conversation-title'};
     }
     return Sniftr::_('Conversation');
 }
Пример #5
0
 public function getTitle()
 {
     if (isset($this->element->{'photo-caption'}) && $this->element->{'photo-caption'} != '') {
         return strip_tags($this->element->{'photo-caption'});
     }
     return Sniftr::_('Photo');
 }
Пример #6
0
 /**
  * Adds configuration definitions to the config module of this application
  *
  * @param SiteConfigModule $config the config module of this application to
  *                                  witch to add the config definitions.
  */
 protected function addConfigDefinitions(SiteConfigModule $config)
 {
     parent::addConfigDefinitions($config);
     $config->addDefinitions(Sniftr::getConfigDefinitions());
 }
Пример #7
0
 public function getTitle()
 {
     return Sniftr::_('Quote');
 }
Пример #8
0
    {
        return array('sniftr.tumblr_username' => null);
    }
}
// {{{ dummy dngettext()
/*
 * Define a dummy dngettext() for when gettext is not available.
 */
if (!function_exists("dngettext")) {
    function dngettext($domain, $messageid1, $messageid2, $n)
    {
        if ($n == 1) {
            return $messageid1;
        }
        return $messageid2;
    }
}
// }}}
// {{{ dummy dgettext()
/*
 * Define a dummy dgettext() for when gettext is not available.
 */
if (!function_exists("dgettext")) {
    function dgettext($domain, $messageid)
    {
        return $messageid;
    }
}
// }}}
Sniftr::setupGettext();