38 public $containerParam;
43 public $containerParamValue;
48 public $outputFormatValue;
65 public $baseHref =
'';
70 public $gccRequestParams;
100 if(isset($this->rootfolderId)){
101 $rootfolderId = $this->rootfolderId;
104 if(isset($this->hostParam)){
105 $hostParam = $this->hostParam;
107 $contentTypes = null;
108 if(isset($this->contentTypes)){
109 $contentTypes = $this->contentTypes;
112 if(isset($this->hideParam)){
113 $hideParam = $this->hideParam;
115 $containerParam = null;
116 if(isset($this->containerParam)){
117 $containerParam = $this->containerParam;
119 $containerParamValue = null;
120 if(isset($this->containerParamValue)){
121 $containerParamValue = $this->containerParamValue;
123 $outputFormatValue =
"";
124 if(isset($this->outputFormatValue)){
125 $outputFormatValue = $this->outputFormatValue;
128 if(isset($this->cacheTime)){
129 $cacheTime = $this->cacheTime;
131 $gccRequestParams = null;
132 if(isset($this->gccRequestParams)){
133 $gccRequestParams = $this->gccRequestParams;
136 if(isset($this->sorting)){
137 $sorting = $this->sorting;
140 if ($rootfolderId !=
"") {
141 $content =
new Googlesitemaps($rootfolderId, $hostParam, $contentTypes, $hideParam, $containerParam , $containerParamValue, $outputFormatValue, $cacheTime, $gccRequestParams , $sorting);
143 throw new Exception(
'GooglesitemapsWidget error: rootfoldweId is a required parameter and can`t be blank ');
146 if (!empty($content->data)) {
147 $this->lang = substr(Yii::app()->language, 0, 2);
148 $this->render(
'GooglesitemapsWidget', array(
'contentList'=>$content->data,
'lvl' => 1,
'hostParam'=>$content->hostParam,
'outputFormat'=>$content->outputFormatValue));