diff --git a/addons/default/visiosoft/base-theme/resources/css/post.scss b/addons/default/visiosoft/base-theme/resources/css/post.scss new file mode 100644 index 000000000..5d7e7c961 --- /dev/null +++ b/addons/default/visiosoft/base-theme/resources/css/post.scss @@ -0,0 +1,168 @@ + +.productImage { + max-height: 700px; + overflow: hidden; +} + +.bgSpecial_2 { + background-color: #516eab; +} + +.bgSpecial_3 { + background-color: #29c5f6; +} + +.bgSpecial_4 { + background-color: #eb4026; +} + +.bgSpecial_5 { + background-color: #ca212a; +} + +.paddingSpecial { + padding: 13px; + margin: 5px 0; + display: flex; + align-items: center; + justify-content: center; +} + +.positionSpecial { + position: relative; + top: -100px; + @media (max-width: 768px) { + top: 0; + } +} + +// POST LIST +.textBlack { + color: black; + &:hover { + color: black; + } +} + +.bannerImage_2 { + img { + width: 100%; + height: 235px; + object-fit: cover; + } +} + +.lineGap_2 { + width: 100%; + height: 2px; + background: #fa0f19; +} + +.bgForLight { + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%); + z-index: 99999; + position: absolute; + top: 0; + right: 0; + width: 100%; + height: 100%; +} + +.z-index { + z-index: 9999999999; +} + +.fs-17px { + font-size: 17px; + @media (max-width:992px) { + font-size: 14px; + } +} + +.bgSpecial_6 { + background-color: black; +} + +.ImageWidth { + max-width: 80px; +} + +.w-fit { + width: fit-content; +} + +.fs-26 { + font-size: 26px; +} + +.fs-10 { + font-size: 10px; +} + +.left-zero { + left: 0; +} +.h-278{ + height: 278px; +} +.w-225{ + width: 225px; +} + +.bottom-zero { + bottom: 0; +} + +.slick-arrow { + width: auto; + height: auto; +} + +.slick-next { + right: -40px; + @media (max-width: 768px){ + right: 15px; + } +} + +.slick-prev { + left: -40px; + z-index: 9999999; + @media (max-width: 768px) { + left: 15px; + } +} + +.slick-prev:before, +.slick-next:before { + color: black; + font-size: 40px; + opacity: 1; + @media (max-width: 768px) { + color: white; + } +} +.related-posts-header{ + color:black; +} +.related-posts-bottom-divider{ + border-color:black; +} +.related-image{ + width: 100%; + object-fit: cover; + height: 220px; + margin-top: 5px; +} +.related-image-wrapper{ + padding: 0 5px; + display: flex; + align-items: center; + justify-content: center; +} +.single-line{ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + font-weight:500; +} \ No newline at end of file diff --git a/addons/default/visiosoft/base-theme/resources/lang/en/field.php b/addons/default/visiosoft/base-theme/resources/lang/en/field.php index 1dbcef01d..09b673026 100644 --- a/addons/default/visiosoft/base-theme/resources/lang/en/field.php +++ b/addons/default/visiosoft/base-theme/resources/lang/en/field.php @@ -43,6 +43,10 @@ return [ 'login_with_phone_number' => 'Login with Phone Number', 'login_with_email_address' => 'Login with Email Address', + // Share + 'share_on_facebook' => 'Share on Facebook', + 'share_on_twitter' => 'Share on Twitter', + // Side menu links 'company_directory' => 'Company directory', 'popular_ads' => 'Popular Ads', @@ -51,6 +55,9 @@ return [ 'sms' => 'Send Text Message (SMS)', 'mail' => 'Send Mail', + //Related + 'related_posts' => 'Related Posts', + // Register instruction seed 'register_instructions' => 'Register Instructions', 'list' => 'List', @@ -62,4 +69,6 @@ return [ 'your_internet_connection_is_broken' => 'Your internet connection is broken,', 'we_miss_you_so_much_already' => 'we miss you so much already!', 'try_again' => 'Try again', + + 'news_title' => 'Sectoral Developments All in :name', ]; \ No newline at end of file diff --git a/addons/default/visiosoft/base-theme/resources/lang/tr/field.php b/addons/default/visiosoft/base-theme/resources/lang/tr/field.php index 5f49e3ab6..aebc5c2d2 100644 --- a/addons/default/visiosoft/base-theme/resources/lang/tr/field.php +++ b/addons/default/visiosoft/base-theme/resources/lang/tr/field.php @@ -43,6 +43,10 @@ return [ 'login_with_phone_number' => 'Telefon Numarası ile Giriş', 'login_with_email_address' => 'E-posta Adresi ile Giriş', + // Share + 'share_on_facebook' => 'Facebook\'ta Paylaş', + 'share_on_twitter' => 'Twitter\'da Paylaş', + // Side menu links 'company_directory' => 'Firma Rehberi', 'popular_ads' => 'Popüler İlanlar', @@ -51,6 +55,8 @@ return [ 'sms' => 'Kısa Mesaj Gönder (SMS)', 'mail' => 'E-posta Gönder', + //Related + 'related_posts' => 'İlgili İçerikler', // Register instruction seed 'register_instructions' => 'Kayıt Talimatları', 'list' => 'Liste', @@ -62,4 +68,7 @@ return [ 'your_internet_connection_is_broken' => 'Your internet connection is broken,', 'we_miss_you_so_much_already' => 'we miss you so much already!', 'try_again' => 'Try again', + + + 'news_title' => 'Sektörel Gelişmeler :name\'da', ]; \ No newline at end of file diff --git a/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/articles.twig b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/articles.twig new file mode 100644 index 000000000..d3bd99fc2 --- /dev/null +++ b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/articles.twig @@ -0,0 +1,35 @@ +
+
+
{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}
+ + {{ trans('theme::field.all_news') }} + +
+
+ {% if entries('posts','types').findBySlug('default') %} + {% set posts = entries('posts').type('default').live().limit(4).get() %} + {% for post in posts %} + + {% endfor %} + {% endif %} +
+ + {{ trans('theme::field.all_news') }} + +
diff --git a/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/index.twig b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/index.twig new file mode 100644 index 000000000..9df3bd1c2 --- /dev/null +++ b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/index.twig @@ -0,0 +1,95 @@ +{% extends layout('posts') %} + +{% block styles %} + {{ asset_style("visiosoft.theme.base::css/post.scss") }} +{% endblock %} + +{% block content %} +
+ {% set posts = entries('posts').recent().paginate() %} + +
+ {% for post in posts %} + +
+ {{ img( post.cover_photo.make.url ?? 'visiosoft.theme.base::images/no-image.png') + .class('w-100')|raw }} + + {{ post.category.name }} + + +
+
+ {{ post.title }} +
+
+ {{ post.summary }} +
+
+ {% endfor %} +
+
+ {% set selectedCats = setting_value('visiosoft.theme.base::list_cats') %} + {% for selectedCat in selectedCats %} +
+ {% set posts = entries('posts').where('category_id', selectedCat).recent().paginate() %} + {% if posts|length %} +
+
+
{{ posts.first.category.name }}
+
+
+ + + + {{ posts.links|raw }} +
+ {% endif %} +
+ {% endfor %} +{% endblock %} diff --git a/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/view.twig b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/view.twig new file mode 100644 index 000000000..7590af4fb --- /dev/null +++ b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/posts-module/posts/view.twig @@ -0,0 +1,72 @@ +{% extends layout('posts') %} + +{% block styles %} + {{ asset_style("visiosoft.theme.base::css/post.scss") }} +{% endblock %} + +{% block content %} +
+
+
+
+ {{ img(post.cover_photo.make.url).class('w-100')|raw }} +
+ + + +
+
+ + +
+ {% if entries('posts','types').findBySlug('default') %} + {% set posts = entries('posts').where('slug', '!=', post.slug).type('default').live().limit(5).get() %} + {% for post in posts.slice(0,4) %} + + + + + + {% endfor %} + {% endif %} +
+
+
+ +
+
+
+{% endblock %}