Commit 26290c68 authored by john's avatar john

t_3031

parent 79922077
This diff is collapsed.
......@@ -41,6 +41,7 @@
clear : "Clear",
search : "Search",
help : "Help",
carousel : "Carousel",
info : "About " + exports.title
},
buttons : {
......
......@@ -6,8 +6,24 @@ $(function ()
var listOfImages = [];
$(this).find('img').each(function ()
{
listOfImages.push('<figure><img src="' + $(this).attr('src') + '" alt="' + $(this).attr('alt') + '"><figcaption class="text-white">' + $(this).attr('title') + '</figcaption></figure>')
var alt = $(this).attr('alt');
if (typeof alt === "undefined")
alt = '';
listOfImages.push('<figure><img class="container_documentation_owl_img" src="' + $(this).attr('src') + '" alt="' + alt + '"><figcaption class="text-white">' + alt + '</figcaption></figure>')
})
$(this).html(listOfImages.join('')).removeClass('owl-carousel-need-replace hidden');
})
$('.container_documentation').find('img:not(".container_documentation_owl_img")').click(function ()
{
$.magnificPopup.open({
items: {
src: $(this).attr('src')
},
image: {
cursor: 'pointer',
},
type: 'image'
});
});
})
\ No newline at end of file
......@@ -115,7 +115,7 @@ $this->registerMetaTag(['property' => 'og:site_name', 'content' => 'Арт Пр
<!-- Off-Canvas Wrapper-->
<div class="offcanvas-wrapper" id="box1">
<!-- Page Content-->
<div class="container padding-bottom-3x mb-2">
<div class="container container_documentation padding-bottom-3x mb-2">
<div class="row">
<!-- Content-->
<div class="col-xl-8 col-lg-7 order-lg-2">
......@@ -128,7 +128,7 @@ $this->registerMetaTag(['property' => 'og:site_name', 'content' => 'Арт Пр
<div class="meta-link"><i class="icon-clock"></i> <?= $model->list->getFormatedCreatedAt() ?></div>
</div>
<?php echo $modelContent->html ?>
<?php echo str_replace(['<!-- ¿¿¿CAROUSEL_BEGIN¿¿¿ -->', '<!-- ¿¿¿CAROUSEL_END¿¿¿ -->'], ['<div class="owl-carousel owl-carousel-need-replace hidden" data-owl-carousel="{ &quot;nav&quot;: true, &quot;dots&quot;: true, &quot;loop&quot;: true }">', '</div>'], $modelContent->html) ?>
<div class="single-post-footer">
<div class="column">
......@@ -212,4 +212,4 @@ $this->registerMetaTag(['property' => 'og:site_name', 'content' => 'Арт Пр
</div>
</div>
<?php echo $this->render('@app/views/layouts/footer') ?>
<?php echo $this->render('_request_access') ?>
<?php echo $this->render('_request_access') ?>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment