Advertisement
Guest User

Untitled

a guest
Nov 1st, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.91 KB | None | 0 0
  1. // src/Application/Networking/InitCmsBundle/Entity/
  2.  
  3. <?php
  4. namespace Application\Networking\InitCmsBundle\Entity;
  5.  
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Networking\InitCmsBundle\Model\ContentInterface;
  8. use Ibrows\Bundle\SonataAdminAnnotationBundle\Annotation as Sonata;
  9. use Application\Networking\InitCmsBundle\Entity\BaseContentEntity;
  10.  
  11. /**
  12. * Class IntroTextWithBackground
  13. * @package Application\Networking\InitCmsBundle\Entity
  14. *
  15. * @ORM\HasLifecycleCallbacks()
  16. * @ORM\Table(name="cms_intro_text_with_background")
  17. * @ORM\Entity()
  18. */
  19. class IntroTextWithBackground extends BaseContentEntity implements ContentInterface
  20. {
  21. /**
  22. * @var string $displayType
  23. * @ORM\Column(name="display_type", type="string")
  24. * @Sonata\FormMapper(
  25. * tab="General",
  26. * tabOptions={},
  27. * with="General",
  28. * name="display_type",
  29. * type="choice",
  30. * options={
  31. * "label_render" = true,
  32. * "horizontal_input_wrapper_class" = "col-md-12 display-type",
  33. * "horizontal_label_offset_class" = "",
  34. * "label" = "Content Display Mode",
  35. * "choices" = {"all" = "Show to everyone", "authed" = "Show to logged in users", "notauthed" = "Show to logged out users"},
  36. * "empty_data" = "all"
  37. * }
  38. * )
  39. */
  40. protected $displayType = 'all';
  41.  
  42. /**
  43. * @var string $useAsTeaser
  44. * @ORM\Column(name="use_as_teaser", type="integer", columnDefinition="TINYINT(1) NOT NULL DEFAULT 0")
  45. * @Sonata\FormMapper(
  46. * tab="General",
  47. * tabOptions={},
  48. * with="General",
  49. * name="use_as_teaser",
  50. * type="choice",
  51. * options={
  52. * "label_render" = true,
  53. * "horizontal_input_wrapper_class" = "col-md-12 teaser",
  54. * "horizontal_label_offset_class" = "",
  55. * "label" = "Use as Content Teaser?",
  56. * "choices" = {"0" = "No / Not applicable", "1" = "Yes"},
  57. * "empty_data" = "0",
  58. * "required" = false
  59. * }
  60. * )
  61. */
  62. protected $useAsTeaser = 0;
  63.  
  64. /**
  65. * @var string $heading
  66. * @ORM\Column(name="heading", type="string", length=255, nullable=true)
  67. * @Sonata\FormMapper(
  68. * tab="General",
  69. * tabOptions={},
  70. * with="General",
  71. * name="heading",
  72. * type="text",
  73. * options={
  74. * "label_render" = true,
  75. * "horizontal_input_wrapper_class" = "col-md-12",
  76. * "horizontal_label_offset_class" = "",
  77. * "label" = "Heading",
  78. * "required" = false
  79. * }
  80. * )
  81. */
  82. protected $heading;
  83.  
  84. /**
  85. * @var string $message
  86. * @ORM\Column(name="message", type="text", nullable=true)
  87. * @Sonata\FormMapper(
  88. * tab="General",
  89. * tabOptions={},
  90. * with="General",
  91. * name="message",
  92. * type="ckeditor",
  93. * options={
  94. * "label_render" = true,
  95. * "horizontal_input_wrapper_class" = "col-md-12",
  96. * "horizontal_label_offset_class" = "",
  97. * "label" = "Message",
  98. * "required" = false
  99. * }
  100. * )
  101. */
  102. protected $message;
  103.  
  104. /**
  105. * @var string $image
  106. * @ORM\ManyToOne(targetEntity="Networking\InitCmsBundle\Entity\Media")
  107. * @ORM\JoinColumn(name="image", referencedColumnName="id", onDelete="SET NULL")
  108. * @Sonata\FormMapper(
  109. * tab="General",
  110. * tabOptions={},
  111. * with="General",
  112. * name="image",
  113. * type="media_entity_type",
  114. * options={
  115. * "label_render" = true,
  116. * "horizontal_input_wrapper_class" = "col-md-12",
  117. * "horizontal_label_offset_class" = "",
  118. * "label" = "Image",
  119. * "class"="Networking\InitCmsBundle\Entity\Media",
  120. * "context" = "default"
  121. * }
  122. * )
  123. */
  124. protected $image;
  125.  
  126. /**
  127. * @var string $showButtons
  128. * @ORM\Column(name="show_buttons", type="integer", columnDefinition="TINYINT(1) NOT NULL DEFAULT 0")
  129. * @Sonata\FormMapper(
  130. * tab="Buttons",
  131. * tabOptions={},
  132. * with="Buttons",
  133. * name="show_buttons",
  134. * type="choice",
  135. * options={
  136. * "label_render" = true,
  137. * "horizontal_input_wrapper_class" = "col-md-12",
  138. * "horizontal_label_offset_class" = "",
  139. * "label" = "Show buttons?",
  140. * "choices" = {"0" = "No", "1" = "Yes"},
  141. * "empty_data" = "0",
  142. * "required" = false
  143. * }
  144. * )
  145. */
  146. protected $showButtons = 1;
  147.  
  148. /**
  149. * @var string $button1Text
  150. * @ORM\Column(name="button_1_text", type="string", length=255, nullable=true)
  151. * @Sonata\FormMapper(
  152. * tab="Buttons",
  153. * tabOptions={},
  154. * with="Buttons",
  155. * name="button_1_text",
  156. * type="text",
  157. * options={
  158. * "label_render" = true,
  159. * "horizontal_input_wrapper_class" = "col-md-3",
  160. * "horizontal_label_offset_class" = "",
  161. * "label" = "Button 1 text",
  162. * "required" = false
  163. * }
  164. * )
  165. */
  166. protected $button1Text = 'Button 1';
  167.  
  168. /**
  169. * @var string $button1URL
  170. * @ORM\Column(name="button_1_url", type="string", length=255, nullable=true)
  171. * @Sonata\FormMapper(
  172. * tab="Buttons",
  173. * tabOptions={},
  174. * with="Buttons",
  175. * name="button_1_url",
  176. * type="text",
  177. * options={
  178. * "label_render" = true,
  179. * "horizontal_input_wrapper_class" = "col-md-3",
  180. * "horizontal_label_offset_class" = "",
  181. * "label" = "Button 1 URL",
  182. * "required" = false
  183. * }
  184. * )
  185. */
  186. protected $button1URL = '#';
  187.  
  188. /**
  189. * @var string $button2Text
  190. * @ORM\Column(name="button_2_text", type="string", length=255, nullable=true)
  191. * @Sonata\FormMapper(
  192. * tab="Buttons",
  193. * tabOptions={},
  194. * with="Buttons",
  195. * name="button_2_text",
  196. * type="text",
  197. * options={
  198. * "label_render" = true,
  199. * "horizontal_input_wrapper_class" = "col-md-3",
  200. * "horizontal_label_offset_class" = "",
  201. * "label" = "Button 2 text",
  202. * "required" = false
  203. * }
  204. * )
  205. */
  206. protected $button2Text = 'Button 2';
  207.  
  208. /**
  209. * @var string $button2URL
  210. * @ORM\Column(name="button_2_url", type="string", length=255, nullable=true)
  211. * @Sonata\FormMapper(
  212. * tab="Buttons",
  213. * tabOptions={},
  214. * with="Buttons",
  215. * name="button_2_url",
  216. * type="text",
  217. * options={
  218. * "label_render" = true,
  219. * "horizontal_input_wrapper_class" = "col-md-3",
  220. * "horizontal_label_offset_class" = "",
  221. * "label" = "Button 2 URL",
  222. * "required" = false
  223. * }
  224. * )
  225. */
  226. protected $button2URL = '#';
  227.  
  228. /**
  229. * Set message
  230. *
  231. * @param string $message
  232. * @return $this
  233. */
  234. public function setMessage($message)
  235. {
  236. $this->message = $message;
  237.  
  238. return $this;
  239. }
  240.  
  241. /**
  242. * Get message
  243. *
  244. * @return string
  245. */
  246. public function getMessage()
  247. {
  248. return $this->message;
  249. }
  250.  
  251. /**
  252. * Set image
  253. *
  254. * @param \Networking\InitCmsBundle\Entity\Media $image
  255. * @return IntroTextWithBackground
  256. */
  257. public function setImage(\Networking\InitCmsBundle\Entity\Media $image = null)
  258. {
  259. $this->image = $image;
  260.  
  261. return $this;
  262. }
  263.  
  264. /**
  265. * Get image
  266. *
  267. * @return \Networking\InitCmsBundle\Entity\Media
  268. */
  269. public function getImage()
  270. {
  271. return $this->image;
  272. }
  273.  
  274. /**
  275. * Set heading
  276. *
  277. * @param string $heading
  278. * @return $this
  279. */
  280. public function setHeading($heading)
  281. {
  282. $this->heading = $heading;
  283.  
  284. return $this;
  285. }
  286.  
  287. /**
  288. * Get heading
  289. *
  290. * @return string
  291. */
  292. public function getHeading()
  293. {
  294. return $this->heading;
  295. }
  296.  
  297. /**
  298. * Set show buttons flag
  299. *
  300. * @param int $showButtons
  301. * @return $this
  302. */
  303. public function setShowButtons($showButtons)
  304. {
  305. $this->showButtons = $showButtons;
  306. return $this;
  307. }
  308.  
  309. /**
  310. * Get show buttons flag
  311. *
  312. * @return string
  313. */
  314. public function getShowButtons()
  315. {
  316. return $this->showButtons;
  317. }
  318.  
  319. /**
  320. * Set button 1 text
  321. *
  322. * @param string $text
  323. * @return $this
  324. */
  325. public function setButton1Text($text)
  326. {
  327. $this->button1Text = $text;
  328. return $this;
  329. }
  330.  
  331. /**
  332. * Get button 1 text
  333. *
  334. * @return string
  335. */
  336. public function getButton1Text()
  337. {
  338. return $this->button1Text;
  339. }
  340.  
  341. /**
  342. * Set button 1 url
  343. *
  344. * @param string $text
  345. * @return $this
  346. */
  347. public function setButton1Url($text)
  348. {
  349. $this->button1URL = $text;
  350. return $this;
  351. }
  352.  
  353. /**
  354. * Get button 1 url
  355. *
  356. * @return string
  357. */
  358. public function getButton1Url()
  359. {
  360. return $this->button1URL;
  361. }
  362.  
  363. /**
  364. * Set button 2 text
  365. *
  366. * @param string $text
  367. * @return $this
  368. */
  369. public function setButton2Text($text)
  370. {
  371. $this->button2Text = $text;
  372. return $this;
  373. }
  374.  
  375. /**
  376. * Get button 2 text
  377. *
  378. * @return string
  379. */
  380. public function getButton2Text()
  381. {
  382. return $this->button2Text;
  383. }
  384.  
  385. /**
  386. * Set button 2 url
  387. *
  388. * @param string $text
  389. * @return $this
  390. */
  391. public function setButton2Url($text)
  392. {
  393. $this->button2URL = $text;
  394. return $this;
  395. }
  396.  
  397. /**
  398. * Get button 2 url
  399. *
  400. * @return string
  401. */
  402. public function getButton2Url()
  403. {
  404. return $this->button2URL;
  405. }
  406.  
  407. /**
  408. * @param array $params
  409. * @return array
  410. */
  411. public function getTemplateOptions($params = array())
  412. {
  413. return array('intro_text_with_background' => $this);
  414. }
  415.  
  416. /**
  417. * @return string
  418. */
  419. public function getSearchableContent()
  420. {
  421. return strip_tags($this->getHeading().$this->getMessage());
  422. }
  423.  
  424. /**
  425. * @return array
  426. */
  427. public function getAdminContent()
  428. {
  429. return array(
  430. 'content' => array('intro_text_with_background' => $this),
  431. 'template' => 'ApplicationNetworkingInitCmsBundle:Admin:intro_text_with_background.html.twig'
  432. );
  433. }
  434.  
  435. /**
  436. * @return string
  437. */
  438. public function getContentTypeName()
  439. {
  440. return 'Intro Text With Background';
  441. }
  442.  
  443. /**
  444. * Set useAsTeaser
  445. *
  446. * @param integer $useAsTeaser
  447. * @return IntroTextWithBackground
  448. */
  449. public function setUseAsTeaser($useAsTeaser)
  450. {
  451. $this->useAsTeaser = $useAsTeaser;
  452.  
  453. return $this;
  454. }
  455.  
  456. /**
  457. * Get useAsTeaser
  458. *
  459. * @return integer
  460. */
  461. public function getUseAsTeaser()
  462. {
  463. return $this->useAsTeaser;
  464. }
  465. }
  466.  
  467.  
  468.  
  469.  
  470. // src/Application/Networking/InitCmsBundle/Resources/views/Admin/
  471. <div class="home-intro-container">
  472. <div class="home-intro">
  473. <h1>{{ intro_text.heading | raw }}</h1>
  474. <p>{{ intro_text.message | raw }}</p>
  475. {% if intro_text.showButtons %}
  476. <ul>
  477. <li><a href="{{ intro_text.button1URL }}">{{ intro_text.button1Text }}</a></li>
  478. {% if not intro_text.button2Text is empty and intro_text.button2Text != 'Button 2' %}
  479. <li>or</li>
  480. <li><a href="{{ intro_text.button2URL }}">{{ intro_text.button2Text }}</a></li>
  481. {% endif %}
  482. </ul>
  483. {% endif %}
  484. </div>
  485. </div>
  486.  
  487.  
  488.  
  489.  
  490. // src/Application/Networking/InitCmsBundle/Resources/views/Content/
  491. <div class="home-intro-container">
  492. <div class="home-intro">
  493. <h1>{{ intro_text.heading | raw }}</h1>
  494. <p>{{ intro_text.message | raw }}</p>
  495. {% if intro_text.showButtons %}
  496. <ul>
  497. <li><a href="{{ intro_text.button1URL }}">{{ intro_text.button1Text }}</a></li>
  498. {% if not intro_text.button2Text is empty and intro_text.button2Text != 'Button 2' %}
  499. <li>or</li>
  500. <li><a href="{{ intro_text.button2URL }}">{{ intro_text.button2Text }}</a></li>
  501. {% endif %}
  502. </ul>
  503. {% endif %}
  504. </div>
  505. </div>
  506.  
  507.  
  508.  
  509.  
  510. // app/config/
  511. imports:
  512. - { resource: parameters.yml }
  513. - { resource: @NetworkingInitCmsBundle/Resources/config/cms/cms_config.yml }
  514.  
  515.  
  516. framework:
  517. #esi: ~
  518. translator: { fallback: 'en'}
  519. secret: %secret%
  520. router:
  521. resource: "%kernel.root_dir%/config/routing.yml"
  522. strict_requirements: %kernel.debug%
  523. form: true
  524. csrf_protection: true
  525. validation: { enable_annotations: true }
  526. templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
  527. default_locale: %locale%
  528. session: ~
  529. http_method_override: true
  530.  
  531. sensio_framework_extra:
  532. request:
  533. converters: true
  534. auto_convert: false
  535.  
  536. # Twig Configuration
  537. twig:
  538. debug: "%kernel.debug%"
  539. strict_variables: "%kernel.debug%"
  540. globals:
  541. fos_csrf_provider: "@form.csrf_provider"
  542. form:
  543. resources:
  544. - 'SonataCoreBundle:Form:datepicker.html.twig'
  545.  
  546.  
  547. # Assetic Configuration
  548. assetic:
  549. debug: %kernel.debug%
  550. use_controller: false
  551. filters:
  552. less:
  553. node: /usr/local/bin/node
  554. node_paths: [/usr/local/lib/node_modules/]
  555. apply_to: "\.less$"
  556. cssrewrite: ~
  557. cssembed:
  558. jar: %kernel.root_dir%/Resources/java/cssembed-0.3.6.jar
  559. yui_css:
  560. jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar
  561. yui_js:
  562. jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar
  563. bundles: [ "ApplicationNetworkingInitCmsBundle", "NetworkingInitCmsBundle", "NetworkingInitCmsBundle", "FOSCommentBundle" ]
  564.  
  565. # Doctrine Configuration
  566. doctrine:
  567. dbal:
  568. driver: %database_driver%
  569. host: %database_host%
  570. port: %database_port%
  571. dbname: %database_name%
  572. user: %database_user%
  573. password: %database_password%
  574. charset: UTF8
  575. types:
  576. json: "Sonata\\Doctrine\\Types\\JsonType"
  577. mapping_types:
  578. enum: string
  579. logging: false
  580. profiling: false
  581.  
  582. orm:
  583. auto_generate_proxy_classes: %kernel.debug%
  584. default_entity_manager: default
  585. entity_managers:
  586. default:
  587. #metadata_cache_driver: apc
  588. #query_cache_driver: apc
  589. #result_cache_driver: apc
  590. auto_mapping: true
  591. connection: default
  592. filters:
  593. softdeleteable:
  594. class: "Gedmo\\SoftDeleteable\\Filter\\SoftDeleteableFilter"
  595. enabled: true
  596. mappings:
  597. gedmo_translatable:
  598. type: annotation
  599. prefix: "Gedmo\\Translatable\\Entity"
  600. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
  601. alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
  602. is_bundle: false
  603. gedmo_translator:
  604. type: annotation
  605. prefix: "Gedmo\\Translator\\Entity"
  606. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
  607. alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
  608. is_bundle: false
  609. gedmo_loggable:
  610. type: annotation
  611. prefix: "Gedmo\\Loggable\\Entity"
  612. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
  613. alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
  614. is_bundle: false
  615. gedmo_tree:
  616. type: annotation
  617. prefix: "Gedmo\\Tree\\Entity"
  618. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
  619. alias: GedmoTree # this one is optional and will default to the name set for the mapping
  620. is_bundle: false
  621. gedmo_sortable:
  622. type: annotation
  623. prefix: "Gedmo\\Sortable\\Entity"
  624. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Sortable/Entity"
  625. alias: GedmoSortable # this one is optional and will default to the name set for the mapping
  626. is_bundle: false
  627. SonataUserBundle: ~
  628. FOSUserBundle: ~
  629. SonataCommentBundle: ~
  630.  
  631. # Swiftmailer Configuration
  632. swiftmailer:
  633. transport: %mailer_transport%
  634. host: %mailer_host%
  635. username: %mailer_user%
  636. password: %mailer_password%
  637.  
  638. networking_init_cms:
  639. # Activate the simple phpFastCache implementation to cache frontend files if in prod mode not logged in
  640. cache:
  641. activate: true #default false
  642. cache_time: 86400 #default value
  643. cache_service_class: "Application\\Networking\\InitCmsBundle\\Lib\\PhpCache" #default value
  644. class:
  645. page: "Application\\Networking\\InitCmsBundle\\Entity\\Page"
  646. user: "Application\\Networking\\InitCmsBundle\\Entity\\User"
  647. #group: "Application\\Networking\\InitCmsBundle\\Entity\\Group"
  648. languages:
  649. #- {label: US, locale: en_US}
  650. - {label: English, locale: en_GB}
  651. #- {label: Deutsch, locale: de_CH}
  652. templates:
  653. 'imrg_content_page':
  654. template: "ApplicationNetworkingInitCmsBundle:Imrg:featured_content_page.html.twig"
  655. name: "IMRG Featured Content Page"
  656. icon: "bundles/applicationnetworkinginitcms/img/imrg_homepage.png"
  657. zones:
  658. - { name: main_content, label: 'Main Content', class: 'col-md-12'}
  659. 'imrg_standard_page':
  660. template: "ApplicationNetworkingInitCmsBundle:Imrg:standard_content_page.html.twig"
  661. name: "IMRG Standard Content Page"
  662. icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
  663. zones:
  664. - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
  665. - { name: main_content, label: 'Main Content', class: 'col-md-12'}
  666. - { name: full_width, label: 'Full Width Content', class: 'col-md-12'}
  667. 'imrg_index_page':
  668. template: "ApplicationNetworkingInitCmsBundle:Imrg:index_content_page.html.twig"
  669. name: "IMRG Index Page"
  670. icon: "bundles/applicationnetworkinginitcms/img/imrg_index.png"
  671. zones:
  672. - { name: main_content, label: 'Main Content', class: 'col-md-12'}
  673. 'imrg_event_page':
  674. template: "ApplicationNetworkingInitCmsBundle:Imrg:event_content_page.html.twig"
  675. name: "IMRG Event Page"
  676. icon: "bundles/applicationnetworkinginitcms/img/imrg_event.png"
  677. zones:
  678. - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
  679. - { name: main_content, label: 'Main Content', class: 'col-md-8'}
  680. - { name: right_column, label: 'Right Column', class: 'col-md-4'}
  681. 'imrg_landing_page':
  682. template: "ApplicationNetworkingInitCmsBundle:Imrg:landing_page.html.twig"
  683. name: "IMRG Landing Page"
  684. icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
  685. zones:
  686. - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
  687. - { name: main_content, label: 'Main Content', class: 'col-md-12'}
  688. - { name: full_width, label: 'Full Width Content', class: 'col-md-12'}
  689. 'imrg_landing_page_without_cta':
  690. template: "ApplicationNetworkingInitCmsBundle:Imrg:landing_page_without_cta.html.twig"
  691. name: "IMRG Landing Page without CTA"
  692. icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
  693. zones:
  694. - { name: banner_area, label: 'Banner Area', class: 'col-md-12'}
  695. - { name: main_content, label: 'Main Content', class: 'col-md-12'}
  696. - { name: full_width, label: 'Full Width Content', class: 'col-md-12'}
  697. 'imrg_two_column_landing_page':
  698. template: "ApplicationNetworkingInitCmsBundle:Imrg:two_column_landing_page.html.twig"
  699. name: "IMRG 2 Column Landing Page"
  700. icon: "bundles/applicationnetworkinginitcms/img/imrg_content.png"
  701. zones:
  702. - { name: main_content, label: 'Main Content', class: 'col-md-8'}
  703. - { name: right_column, label: 'Right Column', class: 'col-md-4'}
  704.  
  705. content_types:
  706. # standard content blocks
  707. - { name: 'Content - Page Heading' , class: "Application\\Networking\\InitCmsBundle\\Entity\\PageHeading"}
  708. - { name: 'Content - Rich Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Text"}
  709. - { name: 'Content - Rich Text with Image' , class: "Application\\Networking\\InitCmsBundle\\Entity\\TextWithImage"}
  710. - { name: 'Content - Call to Action' , class: "Application\\Networking\\InitCmsBundle\\Entity\\CallToAction"}
  711. - { name: 'Content - Content List' , class: "Application\\Networking\\InitCmsBundle\\Entity\\ContentList"}
  712. - { name: 'Content - Web Form' , class: "Application\\Networking\\InitCmsBundle\\Entity\\WebFormBlock"}
  713. - { name: 'Content - Google Map' , class: "Application\\Networking\\InitCmsBundle\\Entity\\GoogleMap"}
  714. - { name: 'Content - Contact Information' , class: "Application\\Networking\\InitCmsBundle\\Entity\\ContactInformation"}
  715. - { name: 'Content - Membership Benefit' , class: "Application\\Networking\\InitCmsBundle\\Entity\\MembershipBenefit"}
  716. - { name: 'Content - Member Quotes' , class: "Application\\Networking\\InitCmsBundle\\Entity\\MemberQuotes"}
  717. - { name: 'Content - Member Directory' , class: "Application\\Networking\\InitCmsBundle\\Entity\\MemberDirectory"}
  718. - { name: 'Content - File Download' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FileDownload"}
  719. - { name: 'Content - Event Calendar' , class: "Application\\Networking\\InitCmsBundle\\Entity\\EventCalendar"}
  720. - { name: 'Content - Event Calendar with Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\EventCalendarWithText"}
  721.  
  722. # index page content blocks
  723. - { name: 'Index - Index Intro' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\Intro"}
  724. - { name: 'Index - Text with Chart' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\Chart"}
  725. - { name: 'Index - Text with Chart Image' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\ChartImage"}
  726. - { name: 'Index - Text with Stat Comparison' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\StatisticComparison"}
  727. - { name: 'Index - Index Footer' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Index\\Footer"}
  728.  
  729. # featured content blocks
  730. - { name: 'Featured - Banners' , class: "Application\\Networking\\InitCmsBundle\\Entity\\RotatingBanner"}
  731. - { name: 'Featured - Intro Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\IntroText"}
  732. - { name: 'Featured - Intro Text With Background' , class: "Application\\Networking\\InitCmsBundle\\Entity\\IntroTextWithBackground"}
  733. - { name: 'Featured - Supported Members Text' , class: "Application\\Networking\\InitCmsBundle\\Entity\\SupportedMembers"}
  734. - { name: 'Featured - Newsletter Signup' , class: "Application\\Networking\\InitCmsBundle\\Entity\\NewsletterSignup"}
  735. - { name: 'Featured - Content Columns' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FeaturedContentColumns"}
  736. - { name: 'Featured - Videos' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FeaturedVideos"}
  737. - { name: 'Featured - Our Brands' , class: "Application\\Networking\\InitCmsBundle\\Entity\\FeaturedBrands"}
  738. - { name: 'Featured - Why Join IMRG?' , class: "Application\\Networking\\InitCmsBundle\\Entity\\WhyJoinImrg"}
  739.  
  740. # event page content blocks
  741. - { name: 'Event - Sidebar - Date & Location' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\DateLocation"}
  742. - { name: 'Event - Sidebar - Call to Action and Menu' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\CTAMenu"}
  743. - { name: 'Event - Sidebar - Sponsor Images' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\SidebarSponsors"}
  744. - { name: 'Event - Event Intro' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Intro"}
  745. - { name: 'Event - Event Gallery' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Gallery"}
  746. - { name: 'Event - Agenda' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Agenda"}
  747. - { name: 'Event - Keynote Speakers' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\KeynoteSpeakers"}
  748. - { name: 'Event - Panel Sessions' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\PanelSessions"}
  749. - { name: 'Event - Speakers' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Speakers"}
  750. - { name: 'Event - Sponsors' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Sponsors"}
  751. - { name: 'Event - Who Should Attend' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\WhoShouldAttend"}
  752. - { name: 'Event - Where Is It?' , class: "Application\\Networking\\InitCmsBundle\\Entity\\Event\\Where"}
  753.  
  754. admin_menu_groups:
  755. big:
  756. items: [pages, communication, registrations, menu, media, tags]
  757. small:
  758. items: [users, help_text]
  759.  
  760. sonata_admin:
  761. title: "IMRG Platform Admin"
  762.  
  763. sonata_comment:
  764. manager_type: orm
  765. class:
  766. comment: Application\Sonata\CommentBundle\Entity\Comment
  767. thread: Application\Sonata\CommentBundle\Entity\Thread
  768.  
  769. lexik_translation:
  770. fallback_locale: en # (required) default locale to use
  771. managed_locales: [en] # (required) locales that the bundle have to manage
  772.  
  773. fos_user:
  774. db_driver: orm # other valid values are 'mongodb', 'couchdb'
  775. firewall_name: main
  776. user_class: "Application\\Networking\\InitCmsBundle\\Entity\\User"
  777. group:
  778. group_class: "Networking\\InitCmsBundle\\Entity\\Group"
  779. from_email:
  780. address: "noreply@imrg.org"
  781. sender_name: "IMRG Platform"
  782. profile:
  783. form:
  784. type: fos_user_profile
  785. handler: fos_user.profile.form.handler.default
  786. name: fos_user_profile_form
  787. validation_groups: [Authentication]
  788.  
  789. fos_comment:
  790. db_driver: orm
  791. class:
  792. model:
  793. comment: Application\Sonata\CommentBundle\Entity\Comment
  794. thread: Application\Sonata\CommentBundle\Entity\Thread
  795. form:
  796. comment:
  797. type: sonata_comment_comment
  798. #notes:
  799. # values: [1, 2, 3, 4, 5]
  800.  
  801. sonata_user:
  802. security_acl: true
  803. impersonating:
  804. route: networking_init_cms_admin
  805. parameters: { path: /}
  806. class:
  807. user: "Application\\Networking\\InitCmsBundle\\Entity\\User"
  808. group: "Networking\\InitCmsBundle\\Entity\\Group"
  809. admin: # Admin Classes
  810. user:
  811. class: "Application\\Networking\\InitCmsBundle\\Admin\\Entity\\UserAdmin"
  812. controller: "NetworkingInitCmsBundle:CRUD"
  813. translation: "SonataUserBundle"
  814.  
  815. group:
  816. class: "Application\\Networking\\InitCmsBundle\\Admin\\Entity\\GroupAdmin"
  817. controller: "NetworkingInitCmsBundle:CRUD"
  818.  
  819. translation: "SonataUserBundle"
  820. profile:
  821. dashboard:
  822. blocks:
  823. - { 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!"} }
  824. - { position: left, type: sonata.order.block.recent_orders, settings: { title: Recent Orders, number: 5, mode: public }}
  825. - { position: right, type: sonata.timeline.block.timeline, settings: { max_per_page: 15 }}
  826. - { position: right, type: sonata.news.block.recent_posts, settings: { title: Recent Posts, number: 5, mode: public }}
  827. - { position: right, type: sonata.news.block.recent_comments, settings: { title: Recent Comments, number: 5, mode: public }}
  828. menu:
  829. - { route: 'sonata_user_profile_show', label: 'sonata_profile_title', domain: 'SonataUserBundle'}
  830. - { route: 'sonata_user_profile_edit', label: 'link_edit_profile', domain: 'SonataUserBundle'}
  831. - { route: 'sonata_user_profile_edit_authentication', label: 'link_edit_authentication', domain: 'SonataUserBundle'}
  832. form:
  833. type: sonata_user_profile
  834. handler: sonata.user.profile.form.handler.default
  835. name: sonata_user_profile_form
  836. validation_groups: [Profile]
  837.  
  838. sonata_media:
  839. buzz:
  840. connector: sonata.media.buzz.connector.curl
  841.  
  842. sphinxsearch:
  843. searchd:
  844. host: localhost
  845. port: 9312
  846. indexes:
  847. ImrgIndex: "ApplicationNetworkingInitCmsBundle:Page"
  848.  
  849. jms_serializer:
  850. metadata:
  851. directories:
  852. - { path: '%kernel.root_dir%/Resources/FOSUserBundle/serializer', namespace_prefix: 'FOS\UserBundle' }
  853. - { path: '%kernel.root_dir%/Resources/Networking/serializer', namespace_prefix: 'Networking\InitCmsBundle' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement