Ticket #89: svn.ticket89.whish-change-welcome-to-phtagr-via-system-preference.patch
| File svn.ticket89.whish-change-welcome-to-phtagr-via-system-preference.patch, 1.3 KB (added by sebastian, 2 years ago) |
|---|
-
views/system/admin_general.ctp
6 6 <fieldset><legend><?php __('General'); ?></legend> 7 7 <?php 8 8 echo $form->input('general.title', array('label' => __('Gallery title', true))); 9 echo $form->input('home.welcomeText', array('label' => __('Welcome text', true))); 9 10 ?> 10 11 </fieldset> 11 12 -
views/home/index.ctp
1 <h1><?php __("Welcome to phTagr"); ?></h1>1 <h1><?php echo h($option->get('home.welcomeText', __("Welcome to phTagr", true))); ?></h1> 2 2 3 3 <div class="subcolumns"> 4 4 <div class="c50l"> -
controllers/system_controller.php
41 41 $this->requireRole(ROLE_SYSOP); 42 42 if (isset($this->data)) { 43 43 $this->_set(0, 'general.title', $this->data); 44 $this->_set(0, 'home.welcomeText', $this->data); 44 45 } 45 46 $this->data = $this->Option->getTree(0); 46 47 }
