Skip to content

Commit

Permalink
pre pull
Browse files Browse the repository at this point in the history
Signed-off-by: Gerardo J. Montivero <[email protected]>
  • Loading branch information
gerMdz committed Jul 22, 2020
1 parent 54fcfbc commit 641318d
Show file tree
Hide file tree
Showing 208 changed files with 838 additions and 0 deletions.
Empty file modified .env
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified alameda.php
100644 → 100755
Empty file.
Empty file modified assets/css/igles.css
100644 → 100755
Empty file.
Empty file modified assets/css/stream.css
100644 → 100755
Empty file.
Empty file modified assets/fonts/.gitignore
100644 → 100755
Empty file.
Empty file modified assets/images/.gitignore
100644 → 100755
Empty file.
Empty file modified assets/images/favicon/browserconfig.xml
100644 → 100755
Empty file.
Empty file modified assets/images/favicon/favicon.ico
100644 → 100755
Empty file.
Empty file modified assets/images/favicon/manifest.json
100644 → 100755
Empty file.
Empty file modified assets/images/imgMenu.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified composer.json
100644 → 100755
Empty file.
Empty file modified composer.lock
100644 → 100755
Empty file.
Empty file modified config/bootstrap.php
100644 → 100755
Empty file.
Empty file modified config/bundles.php
100644 → 100755
Empty file.
Empty file modified config/packages/assets.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/cache.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/dev/debug.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/dev/monolog.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/dev/routing.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/dev/web_profiler.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/doctrine.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/doctrine_migrations.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/framework.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/knp_paginator.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/liip_imagine.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/oneup_flysystem.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/prod/deprecations.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/prod/doctrine.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/prod/monolog.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/prod/routing.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/prod/webpack_encore.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/ramsey_uuid_doctrine.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/routing.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/security.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/security_checker.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/sensio_framework_extra.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/stof_doctrine_extensions.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/framework.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/monolog.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/routing.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/twig.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/validator.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/web_profiler.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/test/webpack_encore.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/translation.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/twig.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/twig_extemsions.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/validator.yaml
100644 → 100755
Empty file.
Empty file modified config/packages/webpack_encore.yaml
100644 → 100755
Empty file.
Empty file modified config/routes.yaml
100644 → 100755
Empty file.
Empty file modified config/routes/annotations.yaml
100644 → 100755
Empty file.
Empty file modified config/routes/dev/framework.yaml
100644 → 100755
Empty file.
Empty file modified config/routes/dev/twig.yaml
100644 → 100755
Empty file.
Empty file modified config/routes/dev/web_profiler.yaml
100644 → 100755
Empty file.
Empty file modified config/routes/liip_imagine.yaml
100644 → 100755
Empty file.
Empty file modified config/services.yaml
100644 → 100755
Empty file.
101 changes: 101 additions & 0 deletions contacto.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?php
/**
* Created by PhpStorm.
* User: Gerardo J. Montivero @ Iglesia Alameda
* Date: 15/05/2020
* Time: 06:34
*/
$lema = 'Contacto Iglesia Alameda';
$lemaSinEspacios = 'Contacto-Iglesia-Alameda';
$ahora = date('Y-m-d H:i');
$version = date('YmdHi');
$domingo = strtotime('today');
$title = 'Contacto';
/**
* @example pregunta si la cuarentena terminó
*/
$finQ = false;
include_once ('gerVendor/gerFunctions.php')
?>
<!DOCTYPE html>
<html lang="en">

<head>
<?php
include ('meta-base.php');
include ('style-base.php')
?>

<link href="css/styles.css?v=<?php echo $version ?>" rel="stylesheet">
<script src = "js/alameda.js"> </script>



<style>
strong{font-weight: 400 !important}
.card-text{font-size: 1.1em !important;
font-weight: 600 !important;}
.header {
background-image: url('images/series/cabecera_index.jpg');
background-size: cover;
background-position: center;
position: relative;

}
.overlay {
position: absolute;
min-height: 100%;
min-width: 100%;
left: 0;
top: 0;
background: rgba(255, 255, 255, 0.6);

}
img.resize {
width:10%; /* you can use % */
height: auto;
}
.btn-xl{
padding: 1.25rem 1.25rem;
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
border: none currentcolor;
border-radius: 10rem;
}



</style>

<link href="css/styles.css?v=<?php echo $version ?>" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css" rel="stylesheet" />


<link href="css/landings/heroic-features.css" rel="stylesheet">

</head>

<body>


<div class="container ">
<?php include 'nav.php'; ?>






<?php
include "footer.php";
?>

<!-- Bootstrap core JavaScript -->
<?php
include ('js-base.php');
?>

</body>

</html>
Empty file modified footer.php
100644 → 100755
Empty file.
Empty file modified index.php
100644 → 100755
Empty file.
Empty file modified migrations/.gitignore
100644 → 100755
Empty file.
Empty file modified nav.php
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified public/business-casual/.gitignore
100644 → 100755
Empty file.
Empty file modified public/css/drop-custom.css
100644 → 100755
Empty file.
Empty file modified public/css/font-awesome.css
100644 → 100755
Empty file.
Empty file modified public/css/login.css
100644 → 100755
Empty file.
Empty file modified public/css/min.styles.css
100644 → 100755
Empty file.
Empty file modified public/favicon.ico
100644 → 100755
Empty file.
Empty file modified public/js/.gitignore
100644 → 100755
Empty file.
Empty file modified public/js/admin_entrada_form.js
100644 → 100755
Empty file.
Empty file modified public/js/entrada_show.js
100644 → 100755
Empty file.
Empty file modified public/material-kit/.gitignore
100644 → 100755
Empty file.
Empty file modified public/material-kit/css/material-kit.min.css
100644 → 100755
Empty file.
Empty file modified public/pre/uploads/entrada_reference/.gitignore
100644 → 100755
Empty file.
Empty file modified public/shards-ui/.gitignore
100644 → 100755
Empty file.
Empty file modified public/stream-ui-kit/.gitignore
100644 → 100755
Empty file.
Empty file modified public/vendors/.gitignore
100644 → 100755
Empty file.
Empty file modified src/Command/EntradaStatsCommand.php
100644 → 100755
Empty file.
Empty file modified src/Controller/.gitignore
100644 → 100755
Empty file.
Empty file modified src/Controller/AdminComentariosController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/AdminEntradaController.php
100644 → 100755
Empty file.
107 changes: 107 additions & 0 deletions src/Controller/ArticleAdminController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?php

namespace App\Controller;

use App\Entity\Article;
use App\Form\ArticleFormType;
use App\Repository\ArticleRepository;
use Doctrine\ORM\EntityManagerInterface;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

class ArticleAdminController extends BaseController
{
/**
* @Route("/admin/article/new", name="admin_article_new")
* @IsGranted("ROLE_ADMIN_ARTICLE")
*/
public function new(EntityManagerInterface $em, Request $request)
{
$form = $this->createForm(ArticleFormType::class);

$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
/** @var Article $article */
$article = $form->getData();

$em->persist($article);
$em->flush();

$this->addFlash('success', 'Article Created! Knowledge is power!');

return $this->redirectToRoute('admin_article_list');
}

return $this->render('article_admin/new.html.twig', [
'articleForm' => $form->createView()
]);
}

/**
* @Route("/admin/article/{id}/edit", name="admin_article_edit")
* @IsGranted("MANAGE", subject="article")
*/
public function edit(Article $article, Request $request, EntityManagerInterface $em)
{
$form = $this->createForm(ArticleFormType::class, $article, [
'include_published_at' => true
]);

$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$em->persist($article);
$em->flush();

$this->addFlash('success', 'Article Updated! Inaccuracies squashed!');

return $this->redirectToRoute('admin_article_edit', [
'id' => $article->getId(),
]);
}

return $this->render('article_admin/edit.html.twig', [
'articleForm' => $form->createView()
]);
}

/**
* @Route("/admin/article/location-select", name="admin_article_location_select")
* @IsGranted("ROLE_USER")
*/
public function getSpecificLocationSelect(Request $request)
{
// a custom security check
if (!$this->isGranted('ROLE_ADMIN_ARTICLE') && $this->getUser()->getArticles()->isEmpty()) {
throw $this->createAccessDeniedException();
}

$article = new Article();
$article->setLocation($request->query->get('location'));
$form = $this->createForm(ArticleFormType::class, $article);

// no field? Return an empty response
if (!$form->has('specificLocationName')) {
return new Response(null, 204);
}

return $this->render('article_admin/_specific_location_name.html.twig', [
'articleForm' => $form->createView(),
]);
}

/**
* @Route("/admin/article", name="admin_article_list")
* @IsGranted("ROLE_ADMIN_ARTICLE")
*/
public function list(ArticleRepository $articleRepo)
{
$articles = $articleRepo->findAll();

return $this->render('article_admin/list.html.twig', [
'articles' => $articles,
]);
}
}
13 changes: 13 additions & 0 deletions src/Controller/BaseController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App\Controller;

use App\Entity\User;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;

/**
* @method User getUser()
*/
abstract class BaseController extends AbstractController
{
}
Empty file modified src/Controller/ConfigController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/DefaultController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/EntradaController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/EntradaReferenciaAdminController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/IndexAlamedaController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/InicioController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/MetaBaseController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/PageIndexController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/PerfilController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/PrincipalController.php
100644 → 100755
Empty file.
Empty file modified src/Controller/SecurityController.php
100644 → 100755
Empty file.
Empty file modified src/DataFixtures/AppFixtures.php
100644 → 100755
Empty file.
Empty file modified src/DataFixtures/BaseFixture.php
100644 → 100755
Empty file.
Empty file modified src/DataFixtures/ComentarioFixtures.php
100644 → 100755
Empty file.
Empty file modified src/DataFixtures/UserFixtures.php
100644 → 100755
Empty file.
Empty file modified src/DataFixtures/images/.gitignore
100644 → 100755
Empty file.
Empty file modified src/Entity/.gitignore
100644 → 100755
Empty file.
Empty file modified src/Entity/ApiToken.php
100644 → 100755
Empty file.
Loading

0 comments on commit 641318d

Please sign in to comment.