Commit 6eaff6c5 authored by Unknown's avatar Unknown
Browse files

Page d'accueil+Galerie

parent e507b2dd
CNinno2k16
CNinno
======
A Symfony project created on January 10, 2017, 5:09 pm.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
<?php
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
class AppCache extends HttpCache
{
}
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function getRootDir()
{
return __DIR__;
}
public function getCacheDir()
{
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
}
public function getLogDir()
{
return dirname(__DIR__).'/var/logs';
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
{% extends 'base.html.twig' %}
{% block main %}
<section id="top_content" class="top_cont_outer">
<div class="top_cont_inner">
<div class="container-fluid">
<div class="top_content">
<div class="row"> <!-- place where the 2 pictures are going to be set -->
<div class="col-lg-6 col-sm-5">
<div style="opacity: 1;" class="portfolio-item one-four videography isotope-item"> <!-- adds the context of the animation for the hover shit -->
<div class="portfolio-image">
<img src="http://www.centralenum.org/galerie-publique/albums/2016-2017/Agrobang/Volante/20161202-033040-1682-Paul%20Toudret.jpg">
</div>
<div class="project-overlay my-galerie">
<a href="{{ path('galerie') }}" class="learn_more2" target="_blank">Vers la Galerie</a>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-5">
<div style="opacity: 1;" class="portfolio-item one-four videography isotope-item">
<div class="portfolio-image">
<img src="http://www.centralenum.org/galerie-publique/albums/Archives/2015-2016/RCS/Journ%C3%A9e/20160317-113330-4390-Gabriel%20Correa.jpg" alt="">
</div>
<div class="project-overlay">
<a href="https://www.flickr.com/photos/centralenum/" class="learn_more2" target="_blank">Vers le Book</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Centrale Num{% endblock %}</title>
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}">
<link rel="stylesheet" href="{{ asset('css/style.css') }}">
<link rel="stylesheet" href="{{ asset('css/font-awesome.min.css') }}">
<link rel="stylesheet" href="{{ asset('css/animate.css') }}">
<link rel="stylesheet" href="{{ asset('css/animation.css') }}">
<link rel="stylesheet" href="{{ asset('css/layout.css') }}">
<link rel="stylesheet" href="{{ asset('css/linecons.css') }}">
<link rel="stylesheet" href="{{ asset('css/responsive.css') }}">
<link href='http://fonts.googleapis.com/css?family=Lato:400,900,700,700italic,400italic,300italic,300,100italic,100,900italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Dosis:400,500,700,800,600,300,200' rel='stylesheet' type='text/css'>
{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('diaphragme.png') }}" />
</head>
<body id="{% block body %}{% endblock %}">
{% block header %}
<header>
<div class="header_bandeau"> {#class defining the background color and fonts#}
<div class="container">
<div class="row">
<div class="col-lg-4 col-lg-push-4 col-sm-4 col-sm-push-4"> {# Placing a 1/3 screen wide box in the middle of the screen#}
<img class="la_classe_de_l_enfer" src="{{ asset('img/logo_CN.png') }}" alt="Centrale Num" /> <!-- access to the logo -->
</div>
<div class="container"> <!-- Second box to add the login button -->
<div class="col-lg-4 col-lg-push-4 col-sm-4 col-sm-push-4">
<a href="zone_login.php" target="_blank"> <!-- php page where the user gets to login -->
<l>Login</l>
</a>
</div>
</div>
</div>
</div>
</div>
</header>
{% endblock %}
{% block main %}
{% endblock %}
{% block footer %}
<footer>
<div class="bandeau"> <!-- class defining the attributs for this section -->
<a href="about_us.php" target="_blank">
<h2>
- TOUT SAVOIR SUR NOUS -
</h2>
</a>
</div>
</footer>
{% endblock %}
{% block javascripts %}
<script src="{{ asset('js/jquery.1.8.3.min.js') }}"></script>
<script src="{{ asset('js/bootstrap.js') }}"></script>
<script src="{{ asset('js/jquery-scrolltofixed.js') }}"></script>
<script src="{{ asset('js/jquery.easing.1.3.js') }}"></script>
<script src="{{ asset('js/jquery.isotope.js') }}"></script>
<script src="{{ asset('js/wow.min.js') }}"></script>
<script src="{{ asset('js/classie.js') }}"></script>
{% endblock %}
</body>
</html>
{% extends 'base.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('photoswipe/photoswipe.css') }}">
<link rel="stylesheet" href="{{ asset('photoswipe/default-skin/default-skin.css') }}">
<link rel="stylesheet" href="{{ asset('css/gallery.css') }}">
{{ parent() }}
{% endblock %}
{% block main%}
<body>
<div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/1.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/1.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/3.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/3.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/4.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/4.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/5.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/5.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/6.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/6.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
<figure class="wrapper" itemscope itemtype="http://schema.org/ImageObject">
<a href="{{ asset ('img/2.jpg') }}" data-size=1620x1080>
<img src="{{ asset ('img/2.jpg') }}" itemprop="thumbnail" alt="Centrale Num" class="preserve"/>
</a>
</figure>
</div>
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe.
It's a separate element, as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. -->
<!-- don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader--active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
</body>
{% endblock %}
{% block footer %}
{% endblock %}
{% block javascripts %}
<script src="{{ asset('photoswipe/photoswipe.min.js') }}"></script>
<script src="{{ asset('photoswipe/photoswipe-ui-default.min.js') }}"></script>
<script src="{{ asset('js/jquery.min.js') }}"></script>
<script src="{{ asset('js/lunch.photoswipe.js') }}"></script>
<script type="text/javascript">
var mouseUsed = false;
$('body').on('mousedown', '.pswp__scroll-wrap', function(event) {
// On mousedown, temporarily remove the transition class in preparation for swipe.
$(this).children('.pswp__container_transition').removeClass('pswp__container_transition');
}).on('mousedown', '.pswp__button--arrow--left, .pswp__button--arrow--right', function(event) {
// Exlude navigation arrows from the above event.
event.stopPropagation();
})
</script>
{% endblock %}
<?php
// Create a blank image and add some text
$im = imagecreatefromjpeg("img/".$_GET['img_id'].".jpg");
imageinterlace($im,1);
imagejpeg($im,"img/".$_GET['img_id'].".jpg");
// Set the content type header - in this case image/jpeg
header('Content-Type: image/jpeg');
// Skip the to parameter using NULL, then set the quality to the value in the other program
$low_qual = imagejpeg($im, NULL, $_GET['qual']);
imagedestroy($im);
?>
\ No newline at end of file
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
use Composer\Autoload\ClassLoader;
/** @var ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
return $loader;
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
# Put parameters here that don't need to change on each machine where the app is deployed
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: en
framework:
#esi: ~
#translator: { fallbacks: ["%locale%"] }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
#serializer: { enable_annotations: true }
templating:
engines: ['twig']
default_locale: "%locale%"
trusted_hosts: ~
trusted_proxies: ~
session:
# http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
handler_id: session.handler.native_file
save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
fragments: ~
http_method_override: true
assets: ~
php_errors:
log: true
# Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
# Doctrine Configuration
doctrine:
dbal:
driver: pdo_mysql
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
# if using pdo_sqlite as your database driver:
# 1. add the path in parameters.yml
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
# 2. Uncomment database_path in parameters.yml.dist
# 3. Uncomment next line:
# path: "%database_path%"
orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }
imports:
- { resource: config.yml }
framework:
router:
resource: "%kernel.root_dir%/config/routing_dev.yml"
strict_requirements: true
profiler: { only_exceptions: false }
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [!event]
console:
type: console
channels: [!event, !doctrine]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
#swiftmailer:
# delivery_address: me@example.com
imports:
- { resource: config.yml }
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
console:
type: console
imports:
- { resource: config_dev.yml }
framework:
test: ~
session:
storage_id: session.storage.mock_file
profiler:
collect: false
web_profiler:
toolbar: false
intercept_redirects: false
swiftmailer:
disable_delivery: true
# This file is auto-generated during the composer install
parameters: