Basic theme settings not taken into account

Get help or discuss with other members about business Joomla! 3 and 2.5 template designed especially for your start-up projects on dedicated support forum.
GK User
Thu Dec 13, 2012 11:38 am
Hi,

When I change the following parameters in Basic theme settings, nothing changes :
- Display register link
- Display login link
- Style Switcher Display

I could not find the solution apart from changing the default get_option code in header.php
eg on line 100 :
Code: Select all
get_option('login_link', 'Y')

replaced by
Code: Select all
get_option('login_link', 'N')


The name of the option is the same as in the json config file, so I don't know where to look...
User avatar
Fresh Boarder

GK User
Thu Dec 13, 2012 12:38 pm
Hi,

I've also found this problem and it will be fixed in the tommorow update, but you can fix it in the header.php file by replacing old userarea with this one:

Code: Select all
<?php if((get_option($tpl->name . '_register_link', 'Y') == 'Y' && !is_user_logged_in()) || get_option($tpl->name . '_login_link', 'Y') == 'Y') : ?>
         <div id="gk-user-area">
            <?php if(get_option($tpl->name . '_register_link', 'Y') == 'Y' && !is_user_logged_in()) : ?>
            <a href="<?php echo get_option($tpl->name . '_register_url', 'wp-login.php?action=register'); ?>" id="gk-register"><?php _e('Sign Up', GKTPLNAME); ?></a>
            <?php endif; ?>
            
            <?php if(get_option($tpl->name . '_login_link', 'Y') == 'Y') : ?>
            <a href="<?php echo get_option($tpl->name . '_login_url', 'wp-login.php?action=login'); ?>" id="gk-login"><?php (!is_user_logged_in()) ? _e('Login', GKTPLNAME) : _e('Logout', GKTPLNAME); ?></a>
            <?php endif; ?>
         </div>
         <?php endif; ?>
User avatar
Administrator


cron