? Pending

User tests: Successful: Unsuccessful:

avatar ciar4n
ciar4n
1 Nov 2017

Pull Request for Issue # .

Summary of Changes

Header styling for the Cassiopeia frontend template

Testing Instructions

Apply PR and check frontend, with and without banner module.

Before

image

After

image

image

image

image

Documentation Changes Required

avatar ciar4n ciar4n - open - 1 Nov 2017
avatar ciar4n ciar4n - change - 1 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Nov 2017
Category Front End Templates (site)
avatar ciar4n ciar4n - change - 1 Nov 2017
Title
[4.0] Cassiopeia
[4.0] Cassiopeia Header/Banner Style
avatar ciar4n ciar4n - edited - 1 Nov 2017
avatar ciar4n ciar4n - change - 1 Nov 2017
The description was changed
avatar ciar4n ciar4n - edited - 1 Nov 2017
avatar dgt41
dgt41 - comment - 1 Nov 2017

@ciar4n nice, couple remarks here:

  • Font loading shouldn't be done like that, ultra inefficient
  • The template (IMHO) should have only positions as placeholders, eg for the menu we should have:
<header>
<jdoc:include type="modules" name="menu" style="none" />
<header>

So all the specific implementation of the top menu (if someone wants to have a top menu ?) should go to the menu override. That will make the base template extremely versatile and flexible to any design!

avatar ciar4n ciar4n - change - 1 Nov 2017
Labels Added: ?
avatar C-Lodder
C-Lodder - comment - 1 Nov 2017

Can you just confirm this image is from the image repo used by Joomla and not an image from Google? If so, then all good to merge

avatar ciar4n
ciar4n - comment - 1 Nov 2017

Image is from unsplash (open)... https://unsplash.com/license

avatar ciar4n
ciar4n - comment - 1 Nov 2017

The template (IMHO) should have only positions as placeholders

@dgt41 Regarding this, currently both the menu and search module positions are behind the display toggle on smaller screens. Because of this I am not sure how feasible it is to move all markup to the override,

avatar dgt41
dgt41 - comment - 1 Nov 2017

Let me explain what should be in the override:

			<nav class="navbar navbar-expand-lg">
				<div class="navbar-brand">
					<a href="<?php echo $this->baseurl; ?>/">
						<?php echo $logo; ?>
					</a>
					<?php if ($this->params->get('siteDescription')) : ?>
						<div class="site-description"><?php echo htmlspecialchars($this->params->get('siteDescription')); ?></div>
					<?php endif; ?>
				</div>

				<?php if ($this->countModules('menu') || $this->countModules('search')) : ?>
					<button class="navbar-toggler navbar-toggler-right" type="button" aria-hidden="true" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="<?php echo JText::_('TPL_CASSIOPEIA_TOGGLE'); ?>">
						<span class="fa fa-bars"></span>
					</button>
					<div class="collapse navbar-collapse" id="navbar">
						<!-- !!! Here goes the menu output-->
						<?php if ($this->countModules('search')) : ?>
							<div class="form-inline">
								<!-- !!! Here goes the search module -->
							</div>
						<?php endif; ?>
					</div>
				<?php endif; ?>
				
			</nav>
			<?php if ($this->countModules('banner')) : ?>
			<div class="container-banner">
				<jdoc:include type="modules" name="banner" style="xhtml" />
			</div>
			<?php endif; ?>
			<div class="header-shadow"></div>
			<svg class="header-shape-bottom" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 736 15">
				<path d="M1040,301V285s-75,12-214,12-284-26-524,0v4Z" transform="translate(-302 -285)" fill="#fff"/>
			</svg>
avatar wilsonge wilsonge - change - 2 Nov 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-11-02 21:28:06
Closed_By wilsonge
avatar wilsonge wilsonge - close - 2 Nov 2017
avatar wilsonge wilsonge - merge - 2 Nov 2017

Add a Comment

Login with GitHub to post a comment