Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // src/Application/Networking/InitCmsBundle/Entity/
- <?php
- namespace Application\Networking\InitCmsBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Networking\InitCmsBundle\Model\ContentInterface;
- use Ibrows\Bundle\SonataAdminAnnotationBundle\Annotation as Sonata;
- use Application\Networking\InitCmsBundle\Entity\BaseContentEntity;
- /**
- * Class IntroTextWithBackground
- * @package Application\Networking\InitCmsBundle\Entity
- *
- * @ORM\HasLifecycleCallbacks()
- * @ORM\Table(name="cms_intro_text_with_background")
- * @ORM\Entity()
- */
- class IntroTextWithBackground extends BaseContentEntity implements ContentInterface
- {
- /**
- * @var string $displayType
- * @ORM\Column(name="display_type", type="string")
- * @Sonata\FormMapper(
- * tab="General",
- * tabOptions={},
- * with="General",
- * name="display_type",
- * type="choice",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-12 display-type",
- * "horizontal_label_offset_class" = "",
- * "label" = "Content Display Mode",
- * "choices" = {"all" = "Show to everyone", "authed" = "Show to logged in users", "notauthed" = "Show to logged out users"},
- * "empty_data" = "all"
- * }
- * )
- */
- protected $displayType = 'all';
- /**
- * @var string $useAsTeaser
- * @ORM\Column(name="use_as_teaser", type="integer", columnDefinition="TINYINT(1) NOT NULL DEFAULT 0")
- * @Sonata\FormMapper(
- * tab="General",
- * tabOptions={},
- * with="General",
- * name="use_as_teaser",
- * type="choice",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-12 teaser",
- * "horizontal_label_offset_class" = "",
- * "label" = "Use as Content Teaser?",
- * "choices" = {"0" = "No / Not applicable", "1" = "Yes"},
- * "empty_data" = "0",
- * "required" = false
- * }
- * )
- */
- protected $useAsTeaser = 0;
- /**
- * @var string $heading
- * @ORM\Column(name="heading", type="string", length=255, nullable=true)
- * @Sonata\FormMapper(
- * tab="General",
- * tabOptions={},
- * with="General",
- * name="heading",
- * type="text",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-12",
- * "horizontal_label_offset_class" = "",
- * "label" = "Heading",
- * "required" = false
- * }
- * )
- */
- protected $heading;
- /**
- * @var string $message
- * @ORM\Column(name="message", type="text", nullable=true)
- * @Sonata\FormMapper(
- * tab="General",
- * tabOptions={},
- * with="General",
- * name="message",
- * type="ckeditor",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-12",
- * "horizontal_label_offset_class" = "",
- * "label" = "Message",
- * "required" = false
- * }
- * )
- */
- protected $message;
- /**
- * @var string $image
- * @ORM\ManyToOne(targetEntity="Networking\InitCmsBundle\Entity\Media")
- * @ORM\JoinColumn(name="image", referencedColumnName="id", onDelete="SET NULL")
- * @Sonata\FormMapper(
- * tab="General",
- * tabOptions={},
- * with="General",
- * name="image",
- * type="media_entity_type",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-12",
- * "horizontal_label_offset_class" = "",
- * "label" = "Image",
- * "class"="Networking\InitCmsBundle\Entity\Media",
- * "context" = "default"
- * }
- * )
- */
- protected $image;
- /**
- * @var string $showButtons
- * @ORM\Column(name="show_buttons", type="integer", columnDefinition="TINYINT(1) NOT NULL DEFAULT 0")
- * @Sonata\FormMapper(
- * tab="Buttons",
- * tabOptions={},
- * with="Buttons",
- * name="show_buttons",
- * type="choice",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-12",
- * "horizontal_label_offset_class" = "",
- * "label" = "Show buttons?",
- * "choices" = {"0" = "No", "1" = "Yes"},
- * "empty_data" = "0",
- * "required" = false
- * }
- * )
- */
- protected $showButtons = 1;
- /**
- * @var string $button1Text
- * @ORM\Column(name="button_1_text", type="string", length=255, nullable=true)
- * @Sonata\FormMapper(
- * tab="Buttons",
- * tabOptions={},
- * with="Buttons",
- * name="button_1_text",
- * type="text",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-3",
- * "horizontal_label_offset_class" = "",
- * "label" = "Button 1 text",
- * "required" = false
- * }
- * )
- */
- protected $button1Text = 'Button 1';
- /**
- * @var string $button1URL
- * @ORM\Column(name="button_1_url", type="string", length=255, nullable=true)
- * @Sonata\FormMapper(
- * tab="Buttons",
- * tabOptions={},
- * with="Buttons",
- * name="button_1_url",
- * type="text",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-3",
- * "horizontal_label_offset_class" = "",
- * "label" = "Button 1 URL",
- * "required" = false
- * }
- * )
- */
- protected $button1URL = '#';
- /**
- * @var string $button2Text
- * @ORM\Column(name="button_2_text", type="string", length=255, nullable=true)
- * @Sonata\FormMapper(
- * tab="Buttons",
- * tabOptions={},
- * with="Buttons",
- * name="button_2_text",
- * type="text",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-3",
- * "horizontal_label_offset_class" = "",
- * "label" = "Button 2 text",
- * "required" = false
- * }
- * )
- */
- protected $button2Text = 'Button 2';
- /**
- * @var string $button2URL
- * @ORM\Column(name="button_2_url", type="string", length=255, nullable=true)
- * @Sonata\FormMapper(
- * tab="Buttons",
- * tabOptions={},
- * with="Buttons",
- * name="button_2_url",
- * type="text",
- * options={
- * "label_render" = true,
- * "horizontal_input_wrapper_class" = "col-md-3",
- * "horizontal_label_offset_class" = "",
- * "label" = "Button 2 URL",
- * "required" = false
- * }
- * )
- */
- protected $button2URL = '#';
- /**
- * Set message
- *
- * @param string $message
- * @return $this
- */
- public function setMessage($message)
- {
- $this->message = $message;
- return $this;
- }
- /**
- * Get message
- *
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
- /**
- * Set image
- *
- * @param \Networking\InitCmsBundle\Entity\Media $image
- * @return IntroTextWithBackground
- */
- public function setImage(\Networking\InitCmsBundle\Entity\Media $image = null)
- {
- $this->image = $image;
- return $this;
- }
- /**
- * Get image
- *
- * @return \Networking\InitCmsBundle\Entity\Media
- */
- public function getImage()
- {
- return $this->image;
- }
- /**
- * Set heading
- *
- * @param string $heading
- * @return $this
- */
- public function setHeading($heading)
- {
- $this->heading = $heading;
- return $this;
- }
- /**
- * Get heading
- *
- * @return string
- */
- public function getHeading()
- {
- return $this->heading;
- }
- /**
- * Set show buttons flag
- *
- * @param int $showButtons
- * @return $this
- */
- public function setShowButtons($showButtons)
- {
- $this->showButtons = $showButtons;
- return $this;
- }
- /**
- * Get show buttons flag
- *
- * @return string
- */
- public function getShowButtons()
- {
- return $this->showButtons;
- }
- /**
- * Set button 1 text
- *
- * @param string $text
- * @return $this
- */
- public function setButton1Text($text)
- {
- $this->button1Text = $text;
- return $this;
- }
- /**
- * Get button 1 text
- *
- * @return string
- */
- public function getButton1Text()
- {
- return $this->button1Text;
- }
- /**
- * Set button 1 url
- *
- * @param string $text
- * @return $this
- */
- public function setButton1Url($text)
- {
- $this->button1URL = $text;
- return $this;
- }
- /**
- * Get button 1 url
- *
- * @return string
- */
- public function getButton1Url()
- {
- return $this->button1URL;
- }
- /**
- * Set button 2 text
- *
- * @param string $text
- * @return $this
- */
- public function setButton2Text($text)
- {
- $this->button2Text = $text;
- return $this;
- }
- /**
- * Get button 2 text
- *
- * @return string
- */
- public function getButton2Text()
- {
- return $this->button2Text;
- }
- /**
- * Set button 2 url
- *
- * @param string $text
- * @return $this
- */
- public function setButton2Url($text)
- {
- $this->button2URL = $text;
- return $this;
- }
- /**
- * Get button 2 url
- *
- * @return string
- */
- public function getButton2Url()
- {
- return $this->button2URL;
- }
- /**
- * @param array $params
- * @return array
- */
- public function getTemplateOptions($params = array())
- {
- return array('intro_text_with_background' => $this);
- }
- /**
- * @return string
- */
- public function getSearchableContent()
- {
- return strip_tags($this->getHeading().$this->getMessage());
- }
- /**
- * @return array
- */
- public function getAdminContent()
- {
- return array(
- 'content' => array('intro_text_with_background' => $this),
- 'template' => 'ApplicationNetworkingInitCmsBundle:Admin:intro_text_with_background.html.twig'
- );
- }
- /**
- * @return string
- */
- public function getContentTypeName()
- {
- return 'Intro Text With Background';
- }
- /**
- * Set useAsTeaser
- *
- * @param integer $useAsTeaser
- * @return IntroTextWithBackground
- */
- public function setUseAsTeaser($useAsTeaser)
- {
- $this->useAsTeaser = $useAsTeaser;
- return $this;
- }
- /**
- * Get useAsTeaser
- *
- * @return integer
- */
- public function getUseAsTeaser()
- {
- return $this->useAsTeaser;
- }
- }
- // src/Application/Networking/InitCmsBundle/Resources/views/Admin/
- <div class="home-intro-container">
- <div class="home-intro">
- <h1>{{ intro_text.heading | raw }}</h1>
- <p>{{ intro_text.message | raw }}</p>
- {% if intro_text.showButtons %}
- <ul>
- <li><a href="{{ intro_text.button1URL }}">{{ intro_text.button1Text }}</a></li>
- {% if not intro_text.button2Text is empty and intro_text.button2Text != 'Button 2' %}
- <li>or</li>
- <li><a href="{{ intro_text.button2URL }}">{{ intro_text.button2Text }}</a></li>
- {% endif %}
- </ul>
- {% endif %}
- </div>
- </div>
- // src/Application/Networking/InitCmsBundle/Resources/views/Content/
- <div class="home-intro-container">
- <div class="home-intro">
- <h1>{{ intro_text.heading | raw }}</h1>
- <p>{{ intro_text.message | raw }}</p>
- {% if intro_text.showButtons %}
- <ul>
- <li><a href="{{ intro_text.button1URL }}">{{ intro_text.button1Text }}</a></li>
- {% if not intro_text.button2Text is empty and intro_text.button2Text != 'Button 2' %}
- <li>or</li>
- <li><a href="{{ intro_text.button2URL }}">{{ intro_text.button2Text }}</a></li>
- {% endif %}
- </ul>
- {% endif %}
- </div>
- </div>
- // app/config/
- imports:
- - { resource: parameters.yml }
- - { resource: @NetworkingInitCmsBundle/Resources/config/cms/cms_config.yml }
- framework:
- #esi: ~
- translator: { fallback: 'en'}
- secret: %secret%
- router:
- resource: "%kernel.root_dir%/config/routing.yml"
- strict_requirements: %kernel.debug%
- form: true
- csrf_protection: true
- validation: { enable_annotations: true }
- templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
- default_locale: %locale%
- session: ~
- http_method_override: true
- sensio_framework_extra:
- request:
- converters: true
- auto_convert: false
- # Twig Configuration
- twig:
- debug: "%kernel.debug%"
- strict_variables: "%kernel.debug%"
- globals:
- fos_csrf_provider: "@form.csrf_provider"
- form:
- resources:
- - 'SonataCoreBundle:Form:datepicker.html.twig'
- # Assetic Configuration
- assetic:
- debug: %kernel.debug%
- use_controller: false
- filters:
- less:
- node: /usr/local/bin/node
- node_paths: [/usr/local/lib/node_modules/]
- apply_to: "\.less$"
- cssrewrite: ~
- cssembed:
- jar: %kernel.root_dir%/Resources/java/cssembed-0.3.6.jar
- yui_css:
- jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar
- yui_js:
- jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar
- bundles: [ "ApplicationNetworkingInitCmsBundle", "NetworkingInitCmsBundle", "NetworkingInitCmsBundle", "FOSCommentBundle" ]
- # Doctrine Configuration
- doctrine:
- dbal:
- driver: %database_driver%
- host: %database_host%
- port: %database_port%
- dbname: %database_name%
- user: %database_user%
- password: %database_password%
- charset: UTF8
- types:
- json: "Sonata\\Doctrine\\Types\\JsonType"
- mapping_types:
- enum: string
- logging: false
- profiling: false
- orm:
- auto_generate_proxy_classes: %kernel.debug%
- default_entity_manager: default
- entity_managers:
- default:
- #metadata_cache_driver: apc
- #query_cache_driver: apc
- #result_cache_driver: apc
- auto_mapping: true
- connection: default
- filters:
- softdeleteable:
- class: "Gedmo\\SoftDeleteable\\Filter\\SoftDeleteableFilter"
- enabled: true
- mappings:
- gedmo_translatable:
- type: annotation
- prefix: "Gedmo\\Translatable\\Entity"
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
- alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
- is_bundle: false
- gedmo_translator:
- type: annotation
- prefix: "Gedmo\\Translator\\Entity"
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
- alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
- is_bundle: false
- gedmo_loggable:
- type: annotation
- prefix: "Gedmo\\Loggable\\Entity"
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
- alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
- is_bundle: false
- gedmo_tree:
- type: annotation
- prefix: "Gedmo\\Tree\\Entity"
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
- alias: GedmoTree # this one is optional and will default to the name set for the mapping
- is_bundle: false
- gedmo_sortable:
- type: annotation
- prefix: "Gedmo\\Sortable\\Entity"
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Sortable/Entity"
- alias: GedmoSortable # this one is optional and will default to the name set for the mapping
- is_bundle: false
- SonataUserBundle: ~
- FOSUserBundle: ~
- SonataCommentBundle: ~
- # Swiftmailer Configuration
- swiftmailer:
- transport: %mailer_transport%
- host: %mailer_host%
- username: %mailer_user%
- password: %mailer_password%
- networking_init_cms:
- # Activate the simple phpFastCache implementation to cache frontend files if in prod mode not logged in
- cache:
- activate: true #default false
- cache_time: 86400 #default value
- cache_service_class: "Application\\Networking\\InitCmsBundle\\Lib\\PhpCache" #default value
- class:
- page: "Application\\Networking\\InitCmsBundle\\Entity\\Page"
- user: "Application\\Networking\\InitCmsBundle\\Entity\\User"
- #group: "Application\\Networking\\InitCmsBundle\\Entity\\Group"
- languages:
- #- {label: US, locale: en_US}
- - {label: English, locale: en_GB}
- #- {label: Deutsch, locale: de_CH}
- templates:
- 'imrg_content_page':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:featured_content_page.html.twig"
- name: "IMRG Featured Content Page"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_homepage.png"
- zones:
- - { name: main_content, label: 'Main Content', class: 'col-md-12'}
- 'imrg_standard_page':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:standard_content_page.html.twig"
- name: "IMRG Standard Content Page"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
- zones:
- - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
- - { name: main_content, label: 'Main Content', class: 'col-md-12'}
- - { name: full_width, label: 'Full Width Content', class: 'col-md-12'}
- 'imrg_index_page':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:index_content_page.html.twig"
- name: "IMRG Index Page"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_index.png"
- zones:
- - { name: main_content, label: 'Main Content', class: 'col-md-12'}
- 'imrg_event_page':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:event_content_page.html.twig"
- name: "IMRG Event Page"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_event.png"
- zones:
- - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
- - { name: main_content, label: 'Main Content', class: 'col-md-8'}
- - { name: right_column, label: 'Right Column', class: 'col-md-4'}
- 'imrg_landing_page':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:landing_page.html.twig"
- name: "IMRG Landing Page"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
- zones:
- - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
- - { name: main_content, label: 'Main Content', class: 'col-md-12'}
- - { name: full_width, label: 'Full Width Content', class: 'col-md-12'}
- 'imrg_landing_page_without_cta':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:landing_page_without_cta.html.twig"
- name: "IMRG Landing Page without CTA"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
- zones:
- - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
- - { name: main_content, label: 'Main Content', class: 'col-md-12'}
- - { name: full_width, label: 'Full Width Content', class: 'col-md-12'}
- 'imrg_two_column_landing_page':
- template: "ApplicationNetworkingInitCmsBundle:Imrg:two_column_landing_page.html.twig"
- name: "IMRG 2 Column Landing Page"
- icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
- zones:
- - { name: main_content, label: 'Main Content', class: 'col-md-8'}
- - { name: right_column, label: 'Right Column', class: 'col-md-4'}
- content_types:
- # standard content blocks
- - { name: 'Content - Page Heading' , class: "Application\\Networking\\InitCmsBundle\\Entity\\PageHeading"}
- - { name: 'Content - Rich Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Text"}
- - { name: 'Content - Rich Text with Image' , class: "Application\\Networking\\InitCmsBundle\\Entity\\TextWithImage"}
- - { name: 'Content - Call to Action' , class: "Application\\Networking\\InitCmsBundle\\Entity\\CallToAction"}
- - { name: 'Content - Content List' , class: "Application\\Networking\\InitCmsBundle\\Entity\\ContentList"}
- - { name: 'Content - Web Form' , class: "Application\\Networking\\InitCmsBundle\\Entity\\WebFormBlock"}
- - { name: 'Content - Google Map' , class: "Application\\Networking\\InitCmsBundle\\Entity\\GoogleMap"}
- - { name: 'Content - Contact Information' , class: "Application\\Networking\\InitCmsBundle\\Entity\\ContactInformation"}
- - { name: 'Content - Membership Benefit' , class: "Application\\Networking\\InitCmsBundle\\Entity\\MembershipBenefit"}
- - { name: 'Content - Member Quotes' , class: "Application\\Networking\\InitCmsBundle\\Entity\\MemberQuotes"}
- - { name: 'Content - Member Directory' , class: "Application\\Networking\\InitCmsBundle\\Entity\\MemberDirectory"}
- - { name: 'Content - File Download' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FileDownload"}
- - { name: 'Content - Event Calendar' , class: "Application\\Networking\\InitCmsBundle\\Entity\\EventCalendar"}
- - { name: 'Content - Event Calendar with Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\EventCalendarWithText"}
- # index page content blocks
- - { name: 'Index - Index Intro' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\Intro"}
- - { name: 'Index - Text with Chart' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\Chart"}
- - { name: 'Index - Text with Chart Image' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\ChartImage"}
- - { name: 'Index - Text with Stat Comparison' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\StatisticComparison"}
- - { name: 'Index - Index Footer' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\Footer"}
- # featured content blocks
- - { name: 'Featured - Banners' , class: "Application\\Networking\\InitCmsBundle\\Entity\\RotatingBanner"}
- - { name: 'Featured - Intro Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\IntroText"}
- - { name: 'Featured - Intro Text With Background' , class: "Application\\Networking\\InitCmsBundle\\Entity\\IntroTextWithBackground"}
- - { name: 'Featured - Supported Members Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\SupportedMembers"}
- - { name: 'Featured - Newsletter Signup' , class: "Application\\Networking\\InitCmsBundle\\Entity\\NewsletterSignup"}
- - { name: 'Featured - Content Columns' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FeaturedContentColumns"}
- - { name: 'Featured - Videos' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FeaturedVideos"}
- - { name: 'Featured - Our Brands' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FeaturedBrands"}
- - { name: 'Featured - Why Join IMRG?' , class: "Application\\Networking\\InitCmsBundle\\Entity\\WhyJoinImrg"}
- # event page content blocks
- - { name: 'Event - Sidebar - Date & Location' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\DateLocation"}
- - { name: 'Event - Sidebar - Call to Action and Menu' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\CTAMenu"}
- - { name: 'Event - Sidebar - Sponsor Images' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\SidebarSponsors"}
- - { name: 'Event - Event Intro' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Intro"}
- - { name: 'Event - Event Gallery' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Gallery"}
- - { name: 'Event - Agenda' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Agenda"}
- - { name: 'Event - Keynote Speakers' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\KeynoteSpeakers"}
- - { name: 'Event - Panel Sessions' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\PanelSessions"}
- - { name: 'Event - Speakers' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Speakers"}
- - { name: 'Event - Sponsors' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Sponsors"}
- - { name: 'Event - Who Should Attend' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\WhoShouldAttend"}
- - { name: 'Event - Where Is It?' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Where"}
- admin_menu_groups:
- big:
- items: [pages, communication, registrations, menu, media, tags]
- small:
- items: [users, help_text]
- sonata_admin:
- title: "IMRG Platform Admin"
- sonata_comment:
- manager_type: orm
- class:
- comment: Application\Sonata\CommentBundle\Entity\Comment
- thread: Application\Sonata\CommentBundle\Entity\Thread
- lexik_translation:
- fallback_locale: en # (required) default locale to use
- managed_locales: [en] # (required) locales that the bundle have to manage
- fos_user:
- db_driver: orm # other valid values are 'mongodb', 'couchdb'
- firewall_name: main
- user_class: "Application\\Networking\\InitCmsBundle\\Entity\\User"
- group:
- group_class: "Networking\\InitCmsBundle\\Entity\\Group"
- from_email:
- address: "noreply@imrg.org"
- sender_name: "IMRG Platform"
- profile:
- form:
- type: fos_user_profile
- handler: fos_user.profile.form.handler.default
- name: fos_user_profile_form
- validation_groups: [Authentication]
- fos_comment:
- db_driver: orm
- class:
- model:
- comment: Application\Sonata\CommentBundle\Entity\Comment
- thread: Application\Sonata\CommentBundle\Entity\Thread
- form:
- comment:
- type: sonata_comment_comment
- #notes:
- # values: [1, 2, 3, 4, 5]
- sonata_user:
- security_acl: true
- impersonating:
- route: networking_init_cms_admin
- parameters: { path: /}
- class:
- user: "Application\\Networking\\InitCmsBundle\\Entity\\User"
- group: "Networking\\InitCmsBundle\\Entity\\Group"
- admin: # Admin Classes
- user:
- class: "Application\\Networking\\InitCmsBundle\\Admin\\Entity\\UserAdmin"
- controller: "NetworkingInitCmsBundle:CRUD"
- translation: "SonataUserBundle"
- group:
- class: "Application\\Networking\\InitCmsBundle\\Admin\\Entity\\GroupAdmin"
- controller: "NetworkingInitCmsBundle:CRUD"
- translation: "SonataUserBundle"
- profile:
- dashboard:
- blocks:
- - { position: left, type: sonata.block.service.text, settings: { content: "<h2>Welcome!</h2> This is a sample user profile dashboard, feel free to override it in the configuration! Want to make this text dynamic? For instance display the user's name? Create a dedicated block and edit the configuration!"} }
- - { position: left, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: public }}
- - { position: right, type: sonata.timeline.block.timeline, settings: { max_per_page: 15 }}
- - { position: right, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 5, mode: public }}
- - { position: right, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 5, mode: public }}
- menu:
- - { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'}
- - { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'}
- - { route: 'sonata_user_profile_edit_authentication', label: 'link_edit_authentication', domain: 'SonataUserBundle'}
- form:
- type: sonata_user_profile
- handler: sonata.user.profile.form.handler.default
- name: sonata_user_profile_form
- validation_groups: [Profile]
- sonata_media:
- buzz:
- connector: sonata.media.buzz.connector.curl
- sphinxsearch:
- searchd:
- host: localhost
- port: 9312
- indexes:
- ImrgIndex: "ApplicationNetworkingInitCmsBundle:Page"
- jms_serializer:
- metadata:
- directories:
- - { path: '%kernel.root_dir%/Resources/FOSUserBundle/serializer', namespace_prefix: 'FOS\UserBundle' }
- - { path: '%kernel.root_dir%/Resources/Networking/serializer', namespace_prefix: 'Networking\InitCmsBundle' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement