Exemplo n.º 1
0
 /**
  * Echo the site company name
  * @param  integer $id 
  * @return string      
  */
 function si_company_name()
 {
     echo apply_filters('si_company_name', si_get_company_name());
 }
 public static function notification_content($notification_id)
 {
     $content = self::load_addon_view_to_string('notifications/' . $notification_id . '.php', array());
     $address = SI_Admin_Settings::get_site_address();
     $content = str_replace(array('Acme Inc.', '123 Mockingbird, Ventura 93004', '*****@*****.**'), array(si_get_company_name(), isset($address['street']) ? $address['street'] . ', ' . $address['city'] . ' ' . $address['postal_code'] : '', si_get_company_email()), $content);
     return $content;
 }