/**
  * Retrieves the markup for the offers
  * @return string html markup
  */
 public function get_markup()
 {
     $cache = get_transient(self::TRANSIENT_CACHE . $this->get_uniq());
     if (!isset($_REQUEST['refresh']) && $cache) {
         if (class_exists('TestManager')) {
             TestManager::get_instance()->add_parameter('offersSnippetCacheAge', time() - get_transient(self::TRANSIENT_LAST_UPDATE . $this->get_uniq()));
         }
         return $this->templates->set_markup('offers_list', $cache)->set_markup('divdest', $this->get_param('divdest'))->set_markup('jsfix', $this->javascript_fix())->replace_markup();
     } else {
         $this->refresh();
         $offers = new parent($this->hid);
         foreach ($this->params as $k => $v) {
             $offers->add_param($k, $v);
         }
         foreach ($this->templates->static_markup as $k => $v) {
             $offers->templates->set_markup($k, $v);
         }
         return $offers->get_markup();
     }
 }