This commit is contained in:
merdan 2021-05-15 13:30:00 +05:00
parent adc3c20c9a
commit 04d2c232c9
9 changed files with 33 additions and 34 deletions

View File

@ -55,7 +55,6 @@
{% else %}
{% put scripts %}
<script>
// advertisement start
$(function () {
var $slideshow = $(".advertisiment_{{__SELF__}}");
var ImagePauses = {{__SELF__.group.adds.pluck('display')}};
@ -75,15 +74,6 @@
// Sliding settings
$slideshow.on("afterChange", function (event, slick, currentSlide) {
// Console log, can be removed
console.log(
"Current slide: " +
currentSlide +
". Setting speed to: " +
ImagePauses[currentSlide]
);
// Update autoplay speed according to slide index
$slideshow.slick(
"slickSetOption",
"autoplaySpeed",
@ -92,7 +82,6 @@
);
});
});
// advertisement end
</script>
{% endput %}
{% endif %}

View File

@ -35,23 +35,23 @@ SELECT rb.id, bt.id FROM term_relationships_converted rl
Inner JOIN rainlab_blog_categories bt on bt.id = rl.term_taxonomy_id
INNER JOIN rainlab_blog_posts rb on rl.object_id = rb.id_ru
update iatm_orient_term_relationships SET term_taxonomy_id = 9 where term_taxonomy_id = 2;
update iatm_orient_term_relationships SET term_taxonomy_id = 8 where term_taxonomy_id = 5;
update iatm_orient_term_relationships SET term_taxonomy_id = 5 where term_taxonomy_id = 3;
update iatm_orient_term_relationships SET term_taxonomy_id = 2508 where term_taxonomy_id = 13;
update iatm_orient_term_relationships SET term_taxonomy_id = 13 where term_taxonomy_id = 10;
update iatm_orient_term_relationships SET term_taxonomy_id = 10 where term_taxonomy_id = 6;
update iatm_orient_term_relationships SET term_taxonomy_id = 2509 where term_taxonomy_id = 11;
update iatm_orient_term_relationships SET term_taxonomy_id = 11 where term_taxonomy_id = 7;
update iatm_orient_term_relationships SET term_taxonomy_id = 6 where term_taxonomy_id = 23;
update iatm_orient_term_relationships SET term_taxonomy_id = 7 where term_taxonomy_id = 26;
update iatm_orient_term_relationships SET term_taxonomy_id = 2510 where term_taxonomy_id = 14;
update iatm_orient_term_relationships SET term_taxonomy_id = 14 where term_taxonomy_id = 29;
update iatm_orient_term_relationships SET term_taxonomy_id = 12 where term_taxonomy_id = 41;
update iatm_orient_term_relationships SET term_taxonomy_id = 2511 where term_taxonomy_id = 793;
update iatm_orient_term_relationships SET term_taxonomy_id = 793 where term_taxonomy_id = 101;
update iatm_orient_term_relationships SET term_taxonomy_id = 2512 where term_taxonomy_id = 621;
update iatm_orient_term_relationships SET term_taxonomy_id = 621 where term_taxonomy_id = 696;
update last_relationships SET term_taxonomy_id = 9 where term_taxonomy_id = 2;
update last_relationships SET term_taxonomy_id = 8 where term_taxonomy_id = 5;
update last_relationships SET term_taxonomy_id = 5 where term_taxonomy_id = 3;
update last_relationships SET term_taxonomy_id = 2508 where term_taxonomy_id = 13;
update last_relationships SET term_taxonomy_id = 13 where term_taxonomy_id = 10;
update last_relationships SET term_taxonomy_id = 10 where term_taxonomy_id = 6;
update last_relationships SET term_taxonomy_id = 2509 where term_taxonomy_id = 11;
update last_relationships SET term_taxonomy_id = 11 where term_taxonomy_id = 7;
update last_relationships SET term_taxonomy_id = 6 where term_taxonomy_id = 23;
update last_relationships SET term_taxonomy_id = 7 where term_taxonomy_id = 26;
update last_relationships SET term_taxonomy_id = 2510 where term_taxonomy_id = 14;
update last_relationships SET term_taxonomy_id = 14 where term_taxonomy_id = 29;
update last_relationships SET term_taxonomy_id = 12 where term_taxonomy_id = 41;
update last_relationships SET term_taxonomy_id = 2511 where term_taxonomy_id = 793;
update last_relationships SET term_taxonomy_id = 793 where term_taxonomy_id = 101;
update last_relationships SET term_taxonomy_id = 2512 where term_taxonomy_id = 621;
update last_relationships SET term_taxonomy_id = 621 where term_taxonomy_id = 696;
update iatm_orient_terms SET term_id = 9 where term_id = 2;
update iatm_orient_terms SET term_id = 8 where term_id = 5;
@ -83,3 +83,9 @@ INSERT INTO rainlab_blog_posts_categories (post_id,category_id)
SELECT rb.id, bt.id FROM `iatm_orient_term_relationships` rl
Inner JOIN rainlab_blog_categories bt on bt.id = rl.term_taxonomy_id
INNER JOIN rainlab_blog_posts rb on rl.object_id = rb.id_ru and rb.locale='ru'
update last_relationships_en lr INNER join rainlab_blog_posts rb on lr.object_id = rb.id_en
set lr.object_id = rb.id
INSERT INTO rainlab_blog_posts_categories (post_id,category_id)
SELECT rl.object_id, rl.term_taxonomy_id FROM last_relationships_en rl where rl.term_taxonomy_id in (SELECT id FROM orient_temp.rainlab_blog_categories)

View File

@ -56,3 +56,6 @@ where content_html LIKE '%https://orient.tm/en/wp-content/uploads/sites/2/%'
UPDATE rainlab_blog_posts set content = replace(content,'storage/app','https://cdn.orient.tm/storage/app'), content_html = REPLACE(content_html,'storage/app','https://cdn.orient.tm/storage/app')
where content_html LIKE '%storage/app%'
UPDATE rainlab_blog_posts set content = replace(content,'http://orient.tm/wp-content/uploads','https://cdn.orient.tm/storage/app/media/ru'), content_html = REPLACE(content_html,'http://orient.tm/wp-content/uploads','https://cdn.orient.tm/storage/app/media/ru')
where content_html LIKE '%http://orient.tm/wp-content/uploads%'

View File

@ -13,3 +13,9 @@ SELECT bt.id, rb.id FROM `iatm_orient_2_term_relationships` rl
where tx.taxonomy = 'post_tag' and bt.locale ='en'
ALTER TABLE `bedard_blogtags_tags` ADD UNIQUE `unique_index`(`name`, `locale`);
DELETE FROM last_relationships WHERE term_taxonomy_id in (SELECT id from orient_temp.rainlab_blog_categories)
INSERT INTO bedard_blogtags_post_tag (tag_id,post_id)
SELECT bt.id, rl.object_id FROM `last_relationships` rl
INNER JOIN orient_temp.bedard_blogtags_tags bt on bt.id_ru = rl.term_taxonomy_id

Binary file not shown.

Before

Width:  |  Height:  |  Size: 945 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

View File

@ -89,11 +89,6 @@ slug = "{{ :slug }}"
video.setAttribute('poster',m[1])
s.parentNode.replaceChild(video,s);
console.log(m);
console.log(m[1]);
}
else{
}
});
</script>

View File

@ -15,7 +15,7 @@
<div class="event__body-row">
<div class="event__body-image">
<a href="{{firstPost.featured_image|media_cdn}}" class="primary progressive replace">
<img class="preview" src="{{'assets/images/news/1.jpg'|theme}}" alt="{{firstPost.title}}">
<img class="preview" src="{{'firstPost.featured_image|resize(300,200)}}" alt="{{firstPost.title}}">
</a>
<div class="event__body-card">
{% partial 'index/post_item' post = firstPost category = category %}