Hi,
How would I go about moving the K2 article title from the header, as shown here in the demo:
to the article, as shown here:
I'd also like to move the article picture to the right side of the article.
Thanks for any help.
<?php if(
!$document->countModules('header') &&
(
!empty($this->item->image) ||
$params->get('itemTitle') ||
$this->item->params->get('itemDateCreated')
)
): ?>
<div class="header <?php if(!($params->get('itemImage') && !empty($this->item->image))): ?> no-image<?php endif; ?>">
<?php if(!empty($this->item->image)) : ?>
<img src="<?php echo $this->item->image; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->title); ?>" />
<?php endif; ?>
<?php if($params->get('itemTitle')): ?>
<div class="item-title-wrap">
<h1 class="item-title" data-sr="enter bottom and move 50px">
<?php echo $this->item->title; ?>
<?php if($params->get('itemFeaturedNotice') && $this->item->featured): ?>
<sup><i class="gkicon-star"></i></sup>
<?php endif; ?>
</h1>
<?php if($this->item->params->get('itemDateCreated')): ?>
<span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"> <?php echo JHTML::_('date', $this->item->created, 'l, j F Y'); ?> </time>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if(
($params->get('itemImageMainCaption') && !empty($this->item->image_caption)) ||
($params->get('itemImageMainCredits') && !empty($this->item->image_credits))
): ?>
<div class="item-image-info">
<?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
<span class="item-image-caption"><?php echo $this->item->image_caption; ?></span>
<?php endif; ?>
<?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
<span class="item-image-credits"><?php echo $this->item->image_credits; ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($templateParams->get('display_mouse_icon', '1') != '0') : ?>
<span class="mouse-icon"><span><span></span></span></span>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="item-content">
<?php if($params->get('itemTitle')): ?>
<div class="item-title-wrap">
<h1 class="item-title" data-sr="enter bottom and move 50px">
<?php echo $this->item->title; ?>
<?php if($params->get('itemFeaturedNotice') && $this->item->featured): ?>
<sup><i class="gkicon-star"></i></sup>
<?php endif; ?>
</h1>
<?php if($this->item->params->get('itemDateCreated')): ?>
<span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"> <?php echo JHTML::_('date', $this->item->created, 'l, j F Y'); ?> </time>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if(!empty($this->item->image)) : ?>
<img src="<?php echo $this->item->image; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->title); ?>" />
<?php endif; ?>
<?php if(
($params->get('itemImageMainCaption') && !empty($this->item->image_caption)) ||
($params->get('itemImageMainCredits') && !empty($this->item->image_credits))
): ?>
<div class="item-image-info">
<?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
<span class="item-image-caption"><?php echo $this->item->image_caption; ?></span>
<?php endif; ?>
<?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
<span class="item-image-credits"><?php echo $this->item->image_credits; ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (
!$document->countModules('header') &&
(
!$no_image ||
$params->get('show_title') ||
$params->get('show_publish_date') ||
$params->get('show_create_date')
)
) : ?>
<div class="header<?php if($no_image) : ?> no-image<?php endif; ?>">
<?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
<img src="<?php echo $images->image_fulltext; ?>" alt="" />
<?php endif; ?>
<?php if (
$params->get('show_title') ||
$params->get('show_publish_date') ||
$params->get('show_create_date')
) : ?>
<div class="item-title-wrap">
<?php if ($params->get('show_title')) : ?>
<h1 class="item-title" itemprop="name" data-sr="enter bottom and move 50px"><?php echo $this->escape($this->item->title); ?></h1>
<?php endif; ?>
<?php if($params->get('show_publish_date')) : ?>
<span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
<time datetime="<?php echo JHtml::_('date', $this->item->publish_up, JText::_(DATE_W3C)); ?>" itemprop="datePublished">
<?php echo JHTML::_('date', $this->item->publish_up, 'l, j F Y'); ?>
</time>
</span>
<?php elseif($params->get('show_create_date')) : ?>
<span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>" itemprop="dateCreated">
<?php echo JHTML::_('date', $this->item->created, 'l, j F Y'); ?>
</time>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($templateSettings->get('display_mouse_icon', '1') != '0') : ?>
<span class="mouse-icon"><span><span></span></span></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (
$params->get('show_title') ||
$params->get('show_publish_date') ||
$params->get('show_create_date')
) : ?>
<div class="item-title-wrap">
<?php if ($params->get('show_title')) : ?>
<h1 class="item-title" itemprop="name" data-sr="enter bottom and move 50px"><?php echo $this->escape($this->item->title); ?></h1>
<?php endif; ?>
<?php if($params->get('show_publish_date')) : ?>
<span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
<time datetime="<?php echo JHtml::_('date', $this->item->publish_up, JText::_(DATE_W3C)); ?>" itemprop="datePublished">
<?php echo JHTML::_('date', $this->item->publish_up, 'l, j F Y'); ?>
</time>
</span>
<?php elseif($params->get('show_create_date')) : ?>
<span class="item-category" data-sr="enter bottom and move 50px and wait .2s">
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>" itemprop="dateCreated">
<?php echo JHTML::_('date', $this->item->created, 'l, j F Y'); ?>
</time>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="item-content">