-
AuthorPosts
-
July 4, 2017 at 7:03 am #1045912Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 5, 2017 at 4:29 am #1046214Hi,
To customize the Offline page, you can edit this file: [root]/templates/ja_hotel/offline.php
The image you’re mentioning is the offline image set in Global Configuration in admin panel of your site, if you want it displays in full screen, look for the body tag: and change it to:
<body style="background-image: url(<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo htmlspecialchars($app->getCfg('sitename')); ?>);">
The default image rendered by this snippet of code:
<?php if ($app->getCfg('offline_image') && file_exists($app->getCfg('offline_image'))) : ?> <div id="offline-img"><img src="<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo htmlspecialchars($app->getCfg('sitename')); ?>" /></div> <?php endif; ?>
You can remove it if you want.
Regards
1 user says Thank You to Saguaros for this useful post
July 5, 2017 at 7:15 am #1046243And one more thing, I`d like to remove login field and login option as well.
Thank you
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 5, 2017 at 7:19 am #1046246In the same file, you can see snippet of code for form login, you can remove that code:
<form action="<?php echo JRoute::_('index.php', true); ?>" method="post" id="form-login"> <div class="input"> <div class="form-offline"> <div id="form-login-username" class="form-group" > <label class="control-label" for="username"><?php echo JText::_('JGLOBAL_USERNAME') ?></label> <input class="control-input" name="username" id="username" type="text" class="inputbox" alt="<?php echo JText::_('JGLOBAL_USERNAME') ?>" size="18" /> </div> <div id="form-login-password" class="form-group" > <label class="control-label" for="passwd"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label> <input class="control-input" type="password" name="password" class="inputbox" size="18" alt="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" id="passwd"/> </div> </div> <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?> <div id="form-login-remember"> <input type="checkbox" name="remember" class="inputbox" value="yes" alt="<?php echo JText::_('JGLOBAL_REMEMBER_ME') ?>" id="remember" /> <label for="remember"><?php echo JText::_('JGLOBAL_REMEMBER_ME') ?></label> </div> <?php endif; ?> <div id="submit-buton"> <input type="submit" name="Submit" class="button login" value="<?php echo JText::_('JLOGIN') ?>" /> </div> <input type="hidden" name="option" value="com_users" /> <input type="hidden" name="task" value="user.login" /> <input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" /> <?php echo JHtml::_('form.token'); ?> </div> </form>
1 user says Thank You to Saguaros for this useful post
July 5, 2017 at 7:22 am #1046247Thank you :))))
AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 4 replies, has 2 voices, and was last updated by juhuhu 7 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Offline page
Viewing 5 posts - 1 through 5 (of 5 total)