Themes and hide blocks#77
Open
angeluss88 wants to merge 12 commits into
Open
Conversation
added 12 commits
November 14, 2017 12:24
Author
Owner
|
@angeluss88 please add description about the theme editing is works now, to the wiki page https://github.com/pilot/eventator/wiki/Manage-themes |
pilot
reviewed
Feb 2, 2018
| .idea | ||
| !web/uploads/themes/.gitkeep | ||
| !web/uploads/themes/test.css | ||
| #composer.lock |
pilot
reviewed
Feb 2, 2018
| Then I wait "10" seconds | ||
| Then I should see " My Device " | ||
| And I attach the file "test.css" to "fsp-fileUpload" | ||
| # Then I wait "15" seconds |
pilot
reviewed
Feb 2, 2018
|
|
||
| public function manageAction(Request $request, $id = null) | ||
| { | ||
| $css_url = ''; |
pilot
reviewed
Feb 2, 2018
| { | ||
| $client = new Client(); | ||
| $file = $client->createRequest('GET', $url)->send()->getBody(true); | ||
| return $file; |
pilot
reviewed
Feb 2, 2018
| return $this->render('EventEventBundle:Event:index.html.twig', []); | ||
| } | ||
|
|
||
| public function whereItBeAction(){ |
pilot
reviewed
Feb 2, 2018
| public function findOrCreate() | ||
| { | ||
| $entity = $this->findOneBy(array(), array('id' => 'ASC')); | ||
| if(!$entity){ |
pilot
reviewed
Feb 2, 2018
| $this->_em->persist($entity); | ||
| $this->_em->flush(); | ||
| } | ||
| return $entity; |
| */ | ||
| private $showContactSection = true; | ||
|
|
||
| public function __construct() |
| */ | ||
| private $file; | ||
|
|
||
| private $changedFile; |
|
|
||
| if ( 0 < elementsCount) { | ||
| $('#themes').dataTable({ | ||
| "iDisplayLength": 50, |
| <li><a href="{{ home_page ? '' : path('event_homepage') }}#organizers">Organizers</a></li> | ||
| <li><a href="{{ home_page ? '' : path('event_homepage') }}#contact">Contact</a></li> | ||
| {% if blocks.showSpeakersSection %} | ||
| <li><a href="{{ home_page ? '' : path('event_homepage') }}#speakers">Speakers</a></li> |
Owner
There was a problem hiding this comment.
add trans tag for each string {{ 'Speakers'|trans }}
| {% form_theme form 'EventEventBundle::form_theme.html.twig' %} | ||
| <div id="contact" class="indent"></div> | ||
| <section class="contact_us"> | ||
| <section class="contact_us" style="{{ blocks.showContactSection ? '' : 'display:none' }}"> |
Owner
There was a problem hiding this comment.
should be refactored, do not use show / hide on template level, but show / hide on template level in the layout
| @@ -0,0 +1,14 @@ | |||
| <article class="info bg" style="{{ blocks.showWhereItBeSection ? '' : 'display:none' }}"> | |||
| <div class="event-place-wrap"> | |||
| <h2>Where will it be?</h2> | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.