Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5751 | Rev 5776 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5751 Rev 5765
Línea 99... Línea 99...
99
    {
99
    {
100
        $pageCode = Page::PAGE_CODE_PRIVACY_POLICY;
100
        $pageCode = Page::PAGE_CODE_PRIVACY_POLICY;
Línea 101... Línea 101...
101
 
101
 
102
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
102
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
103
        $currentNetwork = $currentNetworkPlugin->getNetwork();
-
 
104
        
Línea 103... Línea 105...
103
        $currentNetwork = $currentNetworkPlugin->getNetwork();
105
        $currentUserPlugin = $this->plugin('currentUserPlugin');
104
 
106
 
Línea 105... Línea 107...
105
        $pageMapper = PageMapper::getInstance($this->adapter);
107
        $pageMapper = PageMapper::getInstance($this->adapter);
Línea 123... Línea 125...
123
                $page->url = $pageDefault->url;
125
                $page->url = $pageDefault->url;
Línea 124... Línea 126...
124
 
126
 
125
                $pageMapper->insert($page);
127
                $pageMapper->insert($page);
126
            }
128
            }
-
 
129
        }
-
 
130
        
-
 
131
        if ($currentUserPlugin->hasIdentity()) {
-
 
132
            $this->layout()->setTemplate('layout/layout.phtml');
-
 
133
        } else {
-
 
134
            $this->layout()->setTemplate('layout/share.phtml');
-
 
135
        }
Línea 127... Línea -...
127
        }
-
 
128
 
136
 
129
        $this->layout()->setTemplate('layout/layout.phtml');
137
 
130
        $viewModel = new ViewModel();
138
        $viewModel = new ViewModel();
131
        $viewModel->setTemplate('leaders-linked/home/privacy-policy.phtml');
139
        $viewModel->setTemplate('leaders-linked/home/privacy-policy.phtml');
132
        $viewModel->setVariable('page', $page);
140
        $viewModel->setVariable('page', $page);
Línea 138... Línea 146...
138
 
146
 
Línea 139... Línea 147...
139
        $pageCode = Page::PAGE_CODE_COOKIES;
147
        $pageCode = Page::PAGE_CODE_COOKIES;
140
 
148
 
-
 
149
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
150
        $currentNetwork = $currentNetworkPlugin->getNetwork();
Línea 141... Línea 151...
141
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
151
        
142
        $currentNetwork = $currentNetworkPlugin->getNetwork();
152
        $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 143... Línea 153...
143
 
153
 
Línea 164... Línea 174...
164
                $pageMapper->insert($page);
174
                $pageMapper->insert($page);
165
            }
175
            }
166
        }
176
        }
Línea -... Línea 177...
-
 
177
 
167
 
178
 
-
 
179
        if ($currentUserPlugin->hasIdentity()) {
-
 
180
            $this->layout()->setTemplate('layout/layout.phtml');
-
 
181
        } else {
-
 
182
            $this->layout()->setTemplate('layout/share.phtml');
168
 
183
        }
169
        $this->layout()->setTemplate('layout/layout.phtml');
184
        
170
        $viewModel = new ViewModel();
185
        $viewModel = new ViewModel();
171
        $viewModel->setTemplate('leaders-linked/home/cookies.phtml');
186
        $viewModel->setTemplate('leaders-linked/home/cookies.phtml');
172
        $viewModel->setVariable('page', $page);
187
        $viewModel->setVariable('page', $page);
Línea 177... Línea 192...
177
    {
192
    {
178
        $pageCode = Page::PAGE_CODE_PROFESSIONALISM_POLICY;
193
        $pageCode = Page::PAGE_CODE_PROFESSIONALISM_POLICY;
Línea 179... Línea 194...
179
 
194
 
180
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
195
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
196
        $currentNetwork = $currentNetworkPlugin->getNetwork();
-
 
197
        
-
 
198
        $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 181... Línea 199...
181
        $currentNetwork = $currentNetworkPlugin->getNetwork();
199
 
182
 
200
 
Línea 183... Línea 201...
183
        $pageMapper = PageMapper::getInstance($this->adapter);
201
        $pageMapper = PageMapper::getInstance($this->adapter);
Línea 203... Línea 221...
203
                $pageMapper->insert($page);
221
                $pageMapper->insert($page);
204
            }
222
            }
205
        }
223
        }
Línea -... Línea 224...
-
 
224
 
206
 
225
 
-
 
226
        if ($currentUserPlugin->hasIdentity()) {
-
 
227
            $this->layout()->setTemplate('layout/layout.phtml');
-
 
228
        } else {
-
 
229
            $this->layout()->setTemplate('layout/share.phtml');
207
 
230
        }
208
        $this->layout()->setTemplate('layout/layout.phtml');
231
        
209
        $viewModel = new ViewModel();
232
        $viewModel = new ViewModel();
210
        $viewModel->setTemplate('leaders-linked/home/professionalism-policy');
233
        $viewModel->setTemplate('leaders-linked/home/professionalism-policy');
211
        $viewModel->setVariable('page', $page);
234
        $viewModel->setVariable('page', $page);
Línea 217... Línea 240...
217
    {
240
    {
218
        $pageCode = Page::PAGE_CODE_TERMS_AND_CONDITIONS;
241
        $pageCode = Page::PAGE_CODE_TERMS_AND_CONDITIONS;
Línea 219... Línea 242...
219
 
242
 
220
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
243
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
244
        $currentNetwork = $currentNetworkPlugin->getNetwork();
-
 
245
        
-
 
246
        $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 221... Línea 247...
221
        $currentNetwork = $currentNetworkPlugin->getNetwork();
247
 
222
 
248
 
Línea 223... Línea 249...
223
        $pageMapper = PageMapper::getInstance($this->adapter);
249
        $pageMapper = PageMapper::getInstance($this->adapter);
Línea 242... Línea 268...
242
 
268
 
243
                $pageMapper->insert($page);
269
                $pageMapper->insert($page);
244
            }
270
            }
Línea -... Línea 271...
-
 
271
        }
245
        }
272
 
-
 
273
        if ($currentUserPlugin->hasIdentity()) {
-
 
274
            $this->layout()->setTemplate('layout/layout.phtml');
-
 
275
        } else {
-
 
276
            $this->layout()->setTemplate('layout/share.phtml');
246
 
277
        }
247
        $this->layout()->setTemplate('layout/layout.phtml');
278
        
248
        $viewModel = new ViewModel();
279
        $viewModel = new ViewModel();
249
        $viewModel->setTemplate('leaders-linked/home/terms-and-conditions.phtml');
280
        $viewModel->setTemplate('leaders-linked/home/terms-and-conditions.phtml');
250
        $viewModel->setVariable('page', $page);
281
        $viewModel->setVariable('page', $page);