/**
  * Short code the notification block.
  *
  * @return string
  */
 protected function _shortcode_notificationblock()
 {
     $output = null;
     $tmp = self::_tmp_notificationblock();
     $tmp_wrapper = self::_tmp_wrapper_notificationblock();
     $sns = Variable::notification_list();
     foreach ($sns as $key => $value) {
         $output[$key] = $tmp;
         $output[$key] = str_replace('{{prefix}}', sanitize_html_class($key), $output[$key]);
         $output[$key] = str_replace('{{endpoint}}', $value['endpoint'], $output[$key]);
         $output[$key] = str_replace('{{anchor_text}}', $value['anchor_text'], $output[$key]);
     }
     if (is_array($output) && !empty($output)) {
         $output = str_replace('{{content}}', implode('', $output), $tmp_wrapper);
     }
     return $output;
 }