protected function _gen_options()
 {
     $this->align_mode = PrisnaGWTConfig::getSettingValue('align_mode');
     $this->_gen_layout();
     $this->_gen_languages();
     $this->_gen_google_analytics();
     $this->_gen_banner();
     $this->_gen_flags();
     $result = array();
     foreach ($this->_properties as $key => $property) {
         if (array_key_exists('option_id', $property) && !PrisnaGWTValidator::isEmpty($property['option_id'])) {
             $result[$key] = array('option_id' => $property['option_id'], 'value' => $this->_prepare_option_value($key, $property['value']));
         }
     }
     $this->options_formatted = PrisnaGWTCommon::renderObject($result, array('type' => 'html', 'content' => "\t\t{{ option_id }}: {{ value }},\n"));
     $this->options_formatted = preg_replace('/,\\n$/', "\n", $this->options_formatted);
 }
 public function render($_options, $_html_encode = false)
 {
     $result = '';
     $partial = array();
     $this->_add_count_for_render();
     if (count($this->collection) > 0) {
         foreach ($this->collection as $item) {
             $partial[] = $item->output($_html_encode);
         }
     }
     $object = (object) array('collection' => join("\n", $partial), 'collection_count' => count($partial));
     foreach ($this as $property => $value) {
         if (!is_array($value)) {
             $object->{$property} = $value;
         }
     }
     if (!array_key_exists('meta_tag_rules', $_options)) {
         $_options['meta_tag_rules'] = array();
     }
     $_options['meta_tag_rules'][] = array('expression' => count($partial) == 0, 'tag' => 'collection.is_empty');
     $result = PrisnaGWTCommon::renderObject($object, $_options, $_html_encode);
     return $result;
 }