{% extends 'ClarolineCoreBundle:Workspace:layout.html.twig' %} {% block title %}{{ _resource.resourceNode.name }}{% endblock %} {% set blogOptions = _resource.options %} {% block content %} {% if blogOptions.displayTitle %}

{{ _resource.resourceNode.name }}

{% endif %} {% if is_granted('ADMINISTRATE', _resource) %}

{{ 'icap_blog_edit_banner'|trans({}, 'icap_blog') }}

{{ form_errors(bannerForm) }}
{{ form_label(bannerForm.file) }} {{ form_widget(bannerForm.file) }}
{{ form_label(bannerForm.banner_background_color) }}
{{ form_label(bannerForm.banner_height) }} {{ form_widget(bannerForm.banner_height) }}px
{{ form_rest(bannerForm) }}
{% endif %} {% if blogOptions.isBannerActivate or (false == blogOptions.isBannerActivate and is_granted('ADMINISTRATE', _resource)) %}
{% endif %} {{ macros.flashBox() }}
{% if is_granted('IS_AUTHENTICATED_FULLY') or is_granted('ADMINISTRATE', _resource) or is_granted('POST', _resource) or is_granted('ROLE_ADMIN') %}
{% if is_granted('ADMINISTRATE', _resource) or is_granted('POST', _resource) %} {{ 'new_post'|trans({}, 'icap_blog') }} {% endif %} {% if is_granted('ADMINISTRATE', _resource) %} {{ 'options'|trans({}, 'platform') }} {% endif %} {% if is_granted('IS_AUTHENTICATED_FULLY') %} {{ render(controller('IcapNotificationBundle:FollowerResource:renderForm', {'resourceId': _resource.resourceNode.id, 'resourceClass': _resource.resourceNode.class})) }} {% endif %} {% if is_granted('ROLE_ADMIN') %}
{% endif %}
{% endif %}
{% block blog_content %}{% endblock %}
{% endblock %} {% set calendarPath = 'bundles/frontend/jquery/plugin/fullcalendar-2.2.1/' %} {% block stylesheets %} {{ parent() }} {% stylesheets debug=false filter='lessphp' output='css/icapblog/style.css' "@IcapBlogBundle/Resources/views/less/style.less" %} {% endstylesheets %} {% if blogOptions.isBannerActivate or (false == blogOptions.isBannerActivate and is_granted('ADMINISTRATE', _resource)) %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% javascripts output='js/jquery-ui-spinner.js' '@FrontEndBundle/Resources/public/jquery/jquery-ui-1.9.2/components/jquery.ui.core.min.js' '@FrontEndBundle/Resources/public/jquery/jquery-ui-1.9.2/components/jquery.ui.widget.min.js' '@FrontEndBundle/Resources/public/jquery/jquery-ui-1.9.2/components/jquery.ui.button.min.js' '@FrontEndBundle/Resources/public/jquery/jquery-ui-1.9.2/components/jquery.ui.spinner.min.js' %} {% endjavascripts %} {% if (blogOptions.isBannerActivate or false == blogOptions.isBannerActivate) and is_granted('ADMINISTRATE', _resource) %} {% endif %} {% if blogOptions.tagCloud == 1 %} {% endif %} {% block icap_blog_javascripts %} {% endblock icap_blog_javascripts %} {% endblock javascripts %}