{% extends 'layouts/site_page.html.twig' %}
{% block title %} {% if lang == 'en' %} {{ news.titreEn }} {% else %} {{ news.titre }} {% endif %} : Orishas-finance{% endblock %}
{% block meta %}
<meta name="description"
content="{{ news.titre }}...Lire cet article sur Orishas-fiance">
<meta property="og:title" content="{{ news.titre }}">
<meta property="og:description"
content="{{ news.titre }}...Lire cet article sur Orishas-fiance">
{% if news.image %}
<meta property="og:image" content="https://www.orishas-finance.com{{ asset("uploads/news/#{news.getImage()}") }}">
{% else %}
<meta property="og:image" content="https://www.orishas-finance.com/uploads/news/defaultnews.jpg">
{% endif %}
<meta property="og:url" content="https://www.orishas-finance.com/actualite/{{ news.id }}">
<meta name="twitter:card" content="summary_large_image">
{% endblock %}
{% block css %}
<link rel="stylesheet" href="{{ asset('assets/common/daterangepicker/daterangepicker.css') }}">
<link rel="stylesheet" href="{{ asset('assets/common/select2/css/select2.min.css') }}">
<link rel="stylesheet" href="{{ asset('assets/common/select2-bootstrap4-theme/select2-bootstrap4.min.css') }}">
<link rel="stylesheet" href="{{ asset('assets/common/flag-icon-css/css/flag-icon.min.css') }}">
{% endblock %}
{% block body %}
<style>
.c-alert__text {
font-size: 14px;
font-weight: 500;
line-height: 1.25;
display: inline-block;
margin: 0;
padding-top: 1px;
padding-top: .1rem;
width: calc(100% - 20px);
}
</style>
<section class="jumbotron text-white of-page-header position-relative">
<div class="container text-center mb-4">
<h4 class="display-5 font-weight-bold">NEWS FINANCIÈRES</h4>
<p class="font-italic mb-0">Nous agrégeons les sources d’informations financières spécifiques Régionales et
Internationales.
Info Générale, Economique, Marchés Forex-Comodities- Actions-Obligataires-Taux, Vieille règlementaire
etc.</p>
</div>
<div class="of-header-fixed-bottom">
<nav>
<ol class="breadcrumb mb-0">
<li class="breadcrumb-item"><a href="{{ path('site_home') }}"><i class="fa fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="{{ path('site_news') }}">News financières</a></li>
<li class="breadcrumb-item active">Détail</li>
</ol>
</nav>
</div>
</section>
<div class="pl-3 pr-3">
<section class="row mt-4">
<div class="col-md-9">
<div class="row">
<div class="col-md-12">
{% if lang == 'en' %}
<a class="of-simple-tab" href="?lang=fr"><i class="flag-icon flag-icon-fr"></i> Version Française</a>
{% else %}
<a class="of-simple-tab" href="?lang=en"><i class="flag-icon flag-icon-gb"></i> English Version</a>
{% endif %}
<hr>
</div>
<div class="col-md-12">
<h3>
{% if lang == 'en' %}
{{ news.titreEn }}
{% else %}
{{ news.titre }}
{% endif %}
</h3>
<div class="card-header mb-2">
<div class="row">
<div class="col-md-2 small"><i
class="fa fa-calendar-alt"></i> {{ news.date? news.date|date('d/m/Y'):'-' }}
</div>
{% if news.source %}
<div class="col-md-4 small">Source : <b>{{ news.source }}</b></div>{% endif %}
<div class="col-md-6 small">{{(lang == 'en')? "Categories":"Catégories"}}:
{% for categorie in news.type %}
<span class="of-slide-cat">{{ (lang == 'en')? categorie.libelleEn : categorie.libelle }}</span>
{% endfor %}
</div>
</div>
</div>
<div class="col-md-12 mb-2 text-center">
{# <div class="btn-group btn-group-sm mx-auto" role="group">
<button class="btn btn-sm btn-outline-primary">Partager</button>
<button class="btn btn-sm btn-outline-info">retwitter</button>
<button class="btn btn-sm btn-outline-secondary">linkedIn</button>
</div>#}
<!-- ShareThis BEGIN -->
<div class="mx-auto">
<div class="sharethis-inline-share-buttons"></div>
</div>
<!-- ShareThis END -->
<div class="btn-group btn-group-sm mx-auto" role="group2">
<a href="#" id="export-pdf" class="btn btn-sm btn-outline-info"><i
class="fa fa-print"></i> imprimer</a>
</div>
</div>
<div class="">
<div class="of-slide-wrapper clearfix mx-auto w-70">
<a href="#commentaire">
<i class="fas fa-comment" title="commenter cet article" style="color: var(--color-primary); font-size:30px"></i>
</a>
{% if news.image %}
<div class="of-slide-header">
<img src="{{ asset("uploads/news/#{news.getImage()}") }}"
alt="{% if lang == 'en' %} {{ news.titreEn }} {% else %} {{ news.titre }} {% endif %}" class="img-fluid rounded-0"/>
</div>
{% endif %}
{% if news.titreimage %}
<div class="of-slide-caption">
<p class="white-text mb-1 text-truncate" title="{{ news.titreimage }}">
{{ news.titreimage }}
</p>
</div>
{% endif %}
</div>
</div>
<div class="card-body text-justify of-news-body">
<div class="border-secondary bg-light p-2 mb-4">
{% if lang == 'en' %}
<p class="pb-0 text-lg font-weight-bold">Enjoy a simplified experience</p>
Find all the economic and financial information on our Orishas Direct application to download on
<a href="https://play.google.com/store/apps/details?id=com.orishasfinance.app" target="_blank">Play Store</a>
{% else %}
<p class="pb-0 text-lg font-weight-bold">Profitez d'une expérience simplifiée</p>
Retrouvez toute l'information économique et financière sur notre application Orishas Direct à Télécharger sur
<a href="https://play.google.com/store/apps/details?id=com.orishasfinance.app" target="_blank">Play Store</a>
{% endif %}
</div>
{% if lang == 'en' %}
{{ news.descriptionEn|raw }}
{% else %}
{{ news.description|raw }}
{% endif %}
</div>
{% if lang == 'en' %}
<div>
<span class="border-secondary bg-lightbluey p-2 mb-4 ml-3"> Provided by AWS Translate</span>
</div>
{% endif %}
<div id="commentaire">
<div class="card-body text-justify of-news-body">
<hr>
<diV class="block block-gray ">
<h3 class="block-title">
<span>
{% if(nbnews>1) %}
{{ nbnews }} COMMENTAIRES
{% elseif nbnews is null %}
0 COMMENTAIRE
{% else %}
{{ nbnews }} COMMENTAIRE
{% endif %}
</span>
</h3>
</div>
{% if app.user %}
{% for commentaire in commentaires %}
<!-- Media top -->
<div class="media">
<img src=" {% if commentaire.user.avatar %} {{ asset('uploads/users/#{commentaire.user.getAvatar()}') }} {% else %} {{ asset('uploads/users/user_300px.png') }}{% endif %} "
class="mr-3 mt-3 rounded-circle" style="width:40px">
<div class="media-body">
<span style="color: #003883;font-weight: bold;">{{ commentaire.user.prenom }}
{{ commentaire.user.nom }}</span> <i style="color: #003883">posté
le {{ commentaire.createAt|date('d/m/Y . H:i') }}
</i>
<p style="font-size: 0.8rem;"> {{ commentaire.message }}</p>
</div>
</div>
<hr>
{% endfor %}
<div class="border-top mt-4">
<div class="d-flex justify-content-center">
{{ knp_pagination_render(commentaires) }}
</div>
</div>
{{ form_start(form) }}
<div class="form-group">
{{ form_row(form.message) }}
</div>
<button type="submit" class="btn btn-primary">Poster <i
class="fa fa-paper-plane"></i></button>
{{ form_end(form) }}
{% else %}
<div class="alert alert-primary" role="alert">
<i class="c-alert__icon-state / c-icon c-icon--alert-warning"></i>
<p class="c-alert__text">
Vous devez être membre pour ajouter un commentaire.
<br>
Vous êtes déjà membre ?
<a href="{{ path('app_login') }}" title="Connectez-vous" class=""
data-authentication-required="member">Connectez-vous</a>
<br>
Pas encore membre ?
<a href="{{ path('app_register') }}" title="Devenez membre gratuitement"
class="">Devenez membre gratuitement</a>
</p>
</div>
{% for commentaire in commentaires %}
<!-- Media top -->
<div class="media">
<img src=" {% if commentaire.user.avatar %} {{ asset("uploads/users/#{commentaire.user.getAvatar()}") }} {% else %} {{ asset('uploads/users/user_300px.png') }}{% endif %} "
class="mr-3 mt-3 rounded-circle" style="width:40px">
<div class="media-body">
<span style="color: #003883;font-weight: bold;">{{ commentaire.user.prenom }}
{{ commentaire.user.nom }}</span> <i style="color: #003883">posté
le {{ commentaire.createAt|date('d/m/Y . H:i') }}
</i>
<p style="font-size: 0.8rem;"> {{ commentaire.message }}</p>
</div>
</div>
<hr>
{% endfor %}
{% endif %}
</div>
</div>
<div class="block block-green mb-5">
<h3 class="block-title"><span>Dans la même rubrique</span></h3>
<div class="card-body">
{% for news in others %}
<div class="col-md-12 border-bottom mt-2">
<div class="media">
<div class="media-left of-news-ima-caption pb-0">
<div class="of-img-hoverable">
<a href="{{ path('site_news_show',{'id': news.id}) }}">
<img class="media-object w-100"
src="{{ (news.image)?asset("uploads/news/#{news.getImage()}"):asset("uploads/news/defaultnews.jpg") }}"
alt="">
</a>
</div>
</div>
<div class="media-body">
<p class="m-0">
<small class="badge badge-info">
<i class="fa fa-calendar-alt"></i> {{ news.date|date('d/m/Y') }}
</small> -
{% for types in news.type %}
<small class="badge badge-success"> {{ types.libelle }} </small>
{% endfor %}
{% if news.premium %} <small
class="fa fa-lock text-muted"></small> {% endif %}
</p>
<h6 class="media-heading">
<a href="{{ path('site_news_show',{'id': news.id}) }}"
class="of-news-title">{{ news.titre }}</a>
</h6>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 mb-2">
<div class="sticky-top">
<div class="block block-primary mb-5">
<h3 class="block-title"><span>Voir aussi</span></h3>
<div class="row">
{% for relate in related %}
<div class="col-6 col-md-12">
<div class="item card mb-2">
<div class="of-img-hoverable h-200">
<img src="{{ (relate.image)?asset("uploads/news/#{relate.getImage()}"):asset("uploads/news/defaultnews.jpg") }}"
class="card-img-top" alt="{{ relate.titre }}">
</div>
<div class="card-body">
<p><small class="text-muted"><i
class="fa fa-calendar-alt"></i> {{ relate.date|date('d/m/Y') }}
</small> -
{% for types in relate.type %}
<small class="of-slide-cat"> {{ types.libelle }} </small>
{% endfor %}
</p>
<h6 class="card-title text-truncate"><a
href="{{ path('site_news_show',{'id': relate.id}) }}"
title="{{ relate.titre }}">{{ relate.titre }}</a></h6>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="block block-gray mb-5 d-none d-md-block d-lg-block mb-2">
<h3 class="block-title"><span>Publicité</span></h3>
<img src="{{ asset('assets/site/images/pub-1.png') }}" alt="" class="img-responsive w-100">
</div>
</div>
</div>
</section>
</div>
{% endblock %}
{% block scripts %}
<script>(function(w,d, s, id) {if(typeof(w.webpushr)!=='undefined') return;w.webpushr=w.webpushr||function(){(w.webpushr.q=w.webpushr.q||[]).push(arguments)};var js, fjs = d.getElementsByTagName(s)[0];js = d.createElement(s); js.id = id;js.async=1;js.src = "https://cdn.webpushr.com/app.min.js";fjs.parentNode.appendChild(js);}(window,document, 'script', 'webpushr-jssdk'));webpushr('setup',{'key':'BMtEewNU-73-Okp-AyhCiqZMJD0WMUuzECrqHYgEGdNt0NcU00fdS_pXwo4Jy1WzDl4m_lhH-G_uXbX0-xvODlI' });</script>
<script type="text/javascript" src="{{ asset('assets/common/daterangepicker/moment.min.js') }}"></script>
<script src="{{ asset('assets/common/daterangepicker/daterangepicker.js') }}"></script>
<script src="{{ asset('assets/common/select2/js/select2.full.min.js') }}"></script>
<script>
$(document).ready(function () {
$('#close-news-modal').on('click', function (e) {
e.preventDefault();
setCookie('newsModalDisplay', 24, 1);
$('#news-modal').modal('hide');
});
{% if not app.user %}
$cook = getCookie('newsModalDisplay');
if ($cook != 24) {
setTimeout(function () {
$('#news-modal').modal('show');
}, 1500);
}
{% endif %}
//Export
$('#export-pdf').on('click', function (e) {
e.preventDefault();
var loc = window.location.href.replace('/actualite', '/export/news');
//console.log(loc);
window.open(loc, "Orishas Export", "fullscreen=no,location=no");
})
})
</script>
{% endblock %}