Version20160804174600.php 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Application\Migrations\Schema\V111;
  4. use Application\Migrations\AbstractMigrationChamilo;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Chamilo\CoreBundle\Entity\SystemTemplate;
  7. /**
  8. * Class Version20160804174600
  9. * Set doctype html5 for system templates
  10. * @package Application\Migrations\Schema\V111
  11. */
  12. class Version20160804174600 extends AbstractMigrationChamilo
  13. {
  14. /**
  15. * @param Schema $schema
  16. */
  17. public function up(Schema $schema)
  18. {
  19. $em = $this->getEntityManager();
  20. $templateTitleCourseTitle = '
  21. <!DOCTYPE html>
  22. <html>
  23. <head>
  24. {CSS}
  25. <style type="text/css">
  26. .gris_title {
  27. color: silver;
  28. }
  29. h1 {
  30. text-align: right;
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  36. border="0" cellpadding="15" cellspacing="6">
  37. <tbody>
  38. <tr>
  39. <td style="vertical-align: middle; width: 50%;" colspan="1" rowspan="1">
  40. <h1>TITULUS 1<br>
  41. <span class="gris_title">TITULUS 2</span><br>
  42. </h1>
  43. </td>
  44. <td style="width: 50%;">
  45. <img style="width: 100px; height: 100px;" alt="Chamilo logo" src="{COURSE_DIR}images/logo_chamilo.png">
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. <p>
  51. <br><br>
  52. </p>
  53. </body>
  54. </html>
  55. ';
  56. $templateTitleTeacher = '
  57. <!DOCTYPE html>
  58. <html>
  59. <head>
  60. {CSS}
  61. <style type="text/css">
  62. .text {
  63. font-weight: normal;
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  69. border="0" cellpadding="15" cellspacing="6">
  70. <tbody>
  71. <tr>
  72. <td></td>
  73. <td style="height: 33%;"></td>
  74. <td></td>
  75. </tr>
  76. <tr>
  77. <td style="width: 25%;"></td>
  78. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right; font-weight: bold;"
  79. colspan="1" rowspan="1">
  80. <span class="text">
  81. <br>
  82. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.</span>
  83. </td>
  84. <td style="width: 25%; font-weight: bold;">
  85. <img style="width: 180px; height: 241px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_case.png ">
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <p>
  91. <br><br>
  92. </p>
  93. </body>
  94. </html>
  95. ';
  96. $templateTitleLeftList = '
  97. <!DOCTYPE html>
  98. <html>
  99. <head>
  100. {CSS}
  101. </head>
  102. <body>
  103. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  104. border="0" cellpadding="15" cellspacing="6">
  105. <tbody>
  106. <tr>
  107. <td style="width: 66%;"></td>
  108. <td style="vertical-align: bottom; width: 33%;" colspan="1" rowspan="4">&nbsp;<img
  109. style="width: 180px; height: 248px;" alt="trainer"
  110. src="{COURSE_DIR}images/trainer/trainer_reads.png "><br>
  111. </td>
  112. </tr>
  113. <tr align="right">
  114. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
  115. Lorem
  116. ipsum dolor sit amet.
  117. </td>
  118. </tr>
  119. <tr align="right">
  120. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
  121. Vivamus
  122. a quam.&nbsp;<br>
  123. </td>
  124. </tr>
  125. <tr align="right">
  126. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
  127. Proin
  128. a est stibulum ante ipsum.
  129. </td>
  130. </tr>
  131. </tbody>
  132. </table>
  133. <p><br>
  134. <br>
  135. </p>
  136. </body>
  137. </html>
  138. ';
  139. $templateTitleLeftRightList = '
  140. <!DOCTYPE html>
  141. <html>
  142. <head>
  143. {CSS}
  144. </head>
  145. <body>
  146. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; height: 400px; width: 720px;"
  147. border="0" cellpadding="15" cellspacing="6">
  148. <tbody>
  149. <tr>
  150. <td></td>
  151. <td style="vertical-align: top;" colspan="1" rowspan="4">&nbsp;<img style="width: 180px; height: 294px;"
  152. alt="Trainer"
  153. src="{COURSE_DIR}images/trainer/trainer_join_hands.png "><br>
  154. </td>
  155. <td></td>
  156. </tr>
  157. <tr>
  158. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
  159. Lorem
  160. ipsum dolor sit amet.
  161. </td>
  162. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
  163. Convallis
  164. ut.&nbsp;Cras dui magna.
  165. </td>
  166. </tr>
  167. <tr>
  168. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
  169. Vivamus
  170. a quam.&nbsp;<br>
  171. </td>
  172. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
  173. Etiam
  174. lacinia stibulum ante.<br>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
  179. Proin
  180. a est stibulum ante ipsum.
  181. </td>
  182. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
  183. Consectetuer
  184. adipiscing elit. <br>
  185. </td>
  186. </tr>
  187. </tbody>
  188. </table>
  189. <p><br>
  190. <br>
  191. </p>
  192. </body>
  193. </html>
  194. ';
  195. $templateTitleRightList = '
  196. <!DOCTYPE html>
  197. <html>
  198. <head>
  199. {CSS}
  200. </head>
  201. <body style="direction: ltr;">
  202. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  203. border="0" cellpadding="15" cellspacing="6">
  204. <tbody>
  205. <tr>
  206. <td style="vertical-align: bottom; width: 50%;" colspan="1" rowspan="4"><img
  207. style="width: 300px; height: 199px;" alt="trainer"
  208. src="{COURSE_DIR}images/trainer/trainer_points_right.png"><br>
  209. </td>
  210. <td style="width: 50%;"></td>
  211. </tr>
  212. <tr>
  213. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
  214. Convallis
  215. ut.&nbsp;Cras dui magna.
  216. </td>
  217. </tr>
  218. <tr>
  219. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
  220. Etiam
  221. lacinia.<br>
  222. </td>
  223. </tr>
  224. <tr>
  225. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
  226. Consectetuer
  227. adipiscing elit. <br>
  228. </td>
  229. </tr>
  230. </tbody>
  231. </table>
  232. <p><br>
  233. <br>
  234. </p>
  235. </body>
  236. </html>
  237. ';
  238. $templateTitleDiagram = '
  239. <!DOCTYPE html>
  240. <html>
  241. <head>
  242. {CSS}
  243. </head>
  244. <body>
  245. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  246. border="0" cellpadding="15" cellspacing="6">
  247. <tbody>
  248. <tr>
  249. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; height: 33%; width: 33%;">
  250. <br>
  251. Etiam
  252. lacinia stibulum ante.
  253. Convallis
  254. ut.&nbsp;Cras dui magna.
  255. </td>
  256. <td colspan="1" rowspan="3">
  257. <img style="width: 350px; height: 267px;" alt="Alaska chart"
  258. src="{COURSE_DIR}images/diagrams/alaska_chart.png "></td>
  259. </tr>
  260. <tr>
  261. <td colspan="1" rowspan="1">
  262. <img style="width: 300px; height: 199px;" alt="trainer"
  263. src="{COURSE_DIR}images/trainer/trainer_points_right.png "></td>
  264. </tr>
  265. <tr>
  266. </tr>
  267. </tbody>
  268. </table>
  269. <p><br>
  270. <br>
  271. </p>
  272. </body>
  273. </html>
  274. ';
  275. $templateTitleDesc = '
  276. <!DOCTYPE html>
  277. <html>
  278. <head>
  279. {CSS}
  280. </head>
  281. <body>
  282. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  283. border="0" cellpadding="15" cellspacing="6">
  284. <tbody>
  285. <tr>
  286. <td style="width: 50%; vertical-align: top;">
  287. <img style="width: 48px; height: 49px; float: left;" alt="01" src="{COURSE_DIR}images/small/01.png "
  288. hspace="5"><br>Lorem ipsum dolor sit amet<br><br><br>
  289. <img style="width: 48px; height: 49px; float: left;" alt="02" src="{COURSE_DIR}images/small/02.png "
  290. hspace="5">
  291. <br>Ut enim ad minim veniam<br><br><br>
  292. <img style="width: 48px; height: 49px; float: left;" alt="03" src="{COURSE_DIR}images/small/03.png "
  293. hspace="5">Duis aute irure dolor in reprehenderit<br><br><br>
  294. <img style="width: 48px; height: 49px; float: left;" alt="04" src="{COURSE_DIR}images/small/04.png "
  295. hspace="5">Neque porro quisquam est
  296. </td>
  297. <td style="vertical-align: top; width: 50%; text-align: right;" colspan="1" rowspan="1">
  298. <img style="width: 300px; height: 291px;" alt="Gearbox" src="{COURSE_DIR}images/diagrams/gearbox.jpg "><br>
  299. </td>
  300. </tr>
  301. <tr></tr>
  302. </tbody>
  303. </table>
  304. <p><br>
  305. <br>
  306. </p>
  307. </body>
  308. </html>
  309. ';
  310. $templateTitleCycle = '
  311. <!DOCTYPE html>
  312. <html>
  313. <head>
  314. {CSS}
  315. <style>
  316. .title {
  317. color: white;
  318. font-weight: bold;
  319. }
  320. </style>
  321. </head>
  322. <body>
  323. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  324. border="0" cellpadding="8" cellspacing="6">
  325. <tbody>
  326. <tr>
  327. <td style="text-align: center; vertical-align: bottom; height: 10%;" colspan="3" rowspan="1">
  328. <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/top_arrow.png ">
  329. </td>
  330. </tr>
  331. <tr>
  332. <td style="height: 5%; width: 45%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
  333. <span class="title">Lorem ipsum</span>
  334. </td>
  335. <td style="height: 5%; width: 10%;"></td>
  336. <td style="height: 5%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
  337. <span class="title">Sed ut perspiciatis</span>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
  342. <ul>
  343. <li>dolor sit amet</li>
  344. <li>consectetur adipisicing elit</li>
  345. <li>sed do eiusmod tempor&nbsp;</li>
  346. <li>adipisci velit, sed quia non numquam</li>
  347. <li>eius modi tempora incidunt ut labore et dolore magnam</li>
  348. </ul>
  349. </td>
  350. <td style="width: 10%;"></td>
  351. <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
  352. <ul>
  353. <li>ut enim ad minim veniam</li>
  354. <li>quis nostrud exercitation</li>
  355. <li>ullamco laboris nisi ut</li>
  356. <li> Quis autem vel eum iure reprehenderit qui in ea</li>
  357. <li>voluptate velit esse quam nihil molestiae consequatur,</li>
  358. </ul>
  359. </td>
  360. </tr>
  361. <tr align="center">
  362. <td style="height: 10%; vertical-align: top;" colspan="3" rowspan="1">
  363. <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/bottom_arrow.png ">&nbsp;&nbsp;
  364. &nbsp; &nbsp; &nbsp;
  365. </td>
  366. </tr>
  367. </tbody>
  368. </table>
  369. <p><br>
  370. <br>
  371. </p>
  372. </body>
  373. </html>
  374. ';
  375. $templateTitleTimeline = '
  376. <!DOCTYPE html>
  377. <html>
  378. <head>
  379. {CSS}
  380. <style>
  381. .title {
  382. font-weight: bold;
  383. text-align: center;
  384. }
  385. </style>
  386. </head>
  387. <body>
  388. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  389. border="0" cellpadding="8" cellspacing="5">
  390. <tbody>
  391. <tr class="title">
  392. <td style="vertical-align: top; height: 3%; background-color: rgb(224, 224, 224);">Lorem ipsum</td>
  393. <td style="height: 3%;"></td>
  394. <td style="vertical-align: top; height: 3%; background-color: rgb(237, 237, 237);">Perspiciatis</td>
  395. <td style="height: 3%;"></td>
  396. <td style="vertical-align: top; height: 3%; background-color: rgb(245, 245, 245);">Nemo enim</td>
  397. </tr>
  398. <tr>
  399. <td style="vertical-align: top; width: 30%; background-color: rgb(224, 224, 224);">
  400. <ul>
  401. <li>dolor sit amet</li>
  402. <li>consectetur</li>
  403. <li>adipisicing elit</li>
  404. </ul>
  405. <br>
  406. </td>
  407. <td>
  408. <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
  409. </td>
  410. <td style="vertical-align: top; width: 30%; background-color: rgb(237, 237, 237);">
  411. <ul>
  412. <li>ut labore</li>
  413. <li>et dolore</li>
  414. <li>magni dolores</li>
  415. </ul>
  416. </td>
  417. <td>
  418. <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
  419. </td>
  420. <td style="vertical-align: top; background-color: rgb(245, 245, 245); width: 30%;">
  421. <ul>
  422. <li>neque porro</li>
  423. <li>quisquam est</li>
  424. <li>qui dolorem&nbsp;&nbsp;</li>
  425. </ul>
  426. <br><br>
  427. </td>
  428. </tr>
  429. </tbody>
  430. </table>
  431. <p><br>
  432. <br>
  433. </p>
  434. </body>
  435. </html>
  436. ';
  437. $templateTitleTable = '
  438. <!DOCTYPE html>
  439. <html>
  440. <head>
  441. {CSS}
  442. <style type="text/css">
  443. .title {
  444. font-weight: bold;
  445. text-align: center;
  446. }
  447. .items {
  448. text-align: right;
  449. }
  450. </style>
  451. </head>
  452. <body>
  453. <br/>
  454. <h2>A table</h2>
  455. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px;"
  456. border="1" cellpadding="5" cellspacing="0">
  457. <tbody>
  458. <tr class="title">
  459. <td>City</td>
  460. <td>2005</td>
  461. <td>2006</td>
  462. <td>2007</td>
  463. <td>2008</td>
  464. </tr>
  465. <tr class="items">
  466. <td>Lima</td>
  467. <td>10,40</td>
  468. <td>8,95</td>
  469. <td>9,19</td>
  470. <td>9,76</td>
  471. </tr>
  472. <tr class="items">
  473. <td>New York</td>
  474. <td>18,39</td>
  475. <td>17,52</td>
  476. <td>16,57</td>
  477. <td>16,60</td>
  478. </tr>
  479. <tr class="items">
  480. <td>Barcelona</td>
  481. <td>0,10</td>
  482. <td>0,10</td>
  483. <td>0,05</td>
  484. <td>0,05</td>
  485. </tr>
  486. <tr class="items">
  487. <td>Paris</td>
  488. <td>3,38</td>
  489. <td>3,63</td>
  490. <td>3,63</td>
  491. <td>3,54</td>
  492. </tr>
  493. </tbody>
  494. </table>
  495. <br>
  496. </body>
  497. </html>
  498. ';
  499. $templateTitleAudio = '
  500. <!DOCTYPE html>
  501. <html>
  502. <head>
  503. {CSS}
  504. </head>
  505. <body>
  506. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  507. border="0" cellpadding="15" cellspacing="6">
  508. <tbody>
  509. <tr>
  510. <td>
  511. <div align="center">
  512. <span style="text-align: center;">
  513. <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
  514. width="300" height="20" bgcolor="#FFFFFF" src="{REL_PATH}main/inc/lib/mediaplayer/player.swf"
  515. allowfullscreen="false" allowscriptaccess="always"
  516. flashvars="file={COURSE_DIR}audio/ListeningComprehension.mp3&amp;autostart=true"></embed>
  517. </span></div>
  518. <br>
  519. </td>
  520. <td colspan="1" rowspan="3"><br>
  521. <img style="width: 300px; height: 341px; float: right;" alt="image"
  522. src="{COURSE_DIR}images/diagrams/head_olfactory_nerve.png "><br></td>
  523. </tr>
  524. <tr>
  525. <td colspan="1" rowspan="1">
  526. <img style="width: 180px; height: 271px;" alt="trainer"
  527. src="{COURSE_DIR}images/trainer/trainer_glasses.png"><br></td>
  528. </tr>
  529. <tr>
  530. </tr>
  531. </tbody>
  532. </table>
  533. <p><br>
  534. <br>
  535. </p>
  536. </body>
  537. </html>
  538. ';
  539. $templateTitleVideo = '
  540. <!DOCTYPE html>
  541. <html>
  542. <head>
  543. {CSS}
  544. </head>
  545. <body>
  546. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;"
  547. border="0" cellpadding="15" cellspacing="6">
  548. <tbody>
  549. <tr>
  550. <td style="width: 50%; vertical-align: top;">
  551. <div style="text-align: center;" id="player810625-parent">
  552. <div style="border-style: none; overflow: hidden; width: 320px; height: 240px; background-color: rgb(220, 220, 220);">
  553. <div id="player810625">
  554. <div id="player810625-config"
  555. style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">
  556. url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240
  557. loop=false play=false downloadable=false fullscreen=true displayNavigation=true
  558. displayDigits=true align=left dispPlaylist=none playlistThumbs=false
  559. </div>
  560. </div>
  561. <embed
  562. type="application/x-shockwave-flash"
  563. src="{REL_PATH}main/inc/lib/mediaplayer/player.swf"
  564. width="320"
  565. height="240"
  566. id="single"
  567. name="single"
  568. quality="high"
  569. allowfullscreen="true"
  570. flashvars="width=320&height=240&autostart=false&file={REL_PATH}main/default_course_document/video/flv/example.flv&repeat=false&image=&showdownload=false&link={REL_PATH}main/default_course_document/video/flv/example.flv&showdigits=true&shownavigation=true&logo="
  571. />
  572. </div>
  573. </div>
  574. </td>
  575. <td style="background: transparent url({IMG_DIR}faded_grey.png) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 50%;">
  576. <h3><br>
  577. </h3>
  578. <h3>Lorem ipsum dolor sit amet</h3>
  579. <ul>
  580. <li>consectetur adipisicing elit</li>
  581. <li>sed do eiusmod tempor incididunt</li>
  582. <li>ut labore et dolore magna aliqua</li>
  583. </ul>
  584. <h3>Ut enim ad minim veniam</h3>
  585. <ul>
  586. <li>quis nostrud exercitation ullamco</li>
  587. <li>laboris nisi ut aliquip ex ea commodo consequat</li>
  588. <li>Excepteur sint occaecat cupidatat non proident</li>
  589. </ul>
  590. </td>
  591. </tr>
  592. </tbody>
  593. </table>
  594. <p><br>
  595. <br>
  596. </p>
  597. <style type="text/css">body {
  598. }</style><!-- to fix a strange bug appearing with firefox when editing this template -->
  599. </body>
  600. </html>
  601. ';
  602. $templateTitleFlash = '
  603. <!DOCTYPE html>
  604. <html>
  605. <head>
  606. {CSS}
  607. </head>
  608. <body>
  609. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 100%; height: 400px;"
  610. border="0" cellpadding="15" cellspacing="6">
  611. <tbody>
  612. <tr>
  613. <td align="center">
  614. <embed width="700" height="300" type="application/x-shockwave-flash"
  615. pluginspage="http://www.macromedia.com/go/getflashplayer"
  616. src="{COURSE_DIR}flash/SpinEchoSequence.swf" play="true" loop="true" menu="true"></embed>
  617. </span><br/>
  618. </td>
  619. </tr>
  620. </tbody>
  621. </table>
  622. <p><br>
  623. <br>
  624. </p>
  625. </body>
  626. </html>
  627. ';
  628. $templates = [
  629. 'TemplateTitleCourseTitle' => $templateTitleCourseTitle,
  630. 'TemplateTitleTeacher' => $templateTitleTeacher,
  631. 'TemplateTitleLeftList' => $templateTitleLeftList,
  632. 'TemplateTitleLeftRightList' => $templateTitleLeftRightList,
  633. 'TemplateTitleRightList' => $templateTitleRightList,
  634. 'TemplateTitleDiagram' => $templateTitleDiagram,
  635. 'TemplateTitleDesc' => $templateTitleDesc,
  636. 'TemplateTitleCycle' => $templateTitleCycle,
  637. 'TemplateTitleTimeline' => $templateTitleTimeline,
  638. 'TemplateTitleTable' => $templateTitleTable,
  639. 'TemplateTitleAudio' => $templateTitleAudio,
  640. 'TemplateTitleVideo' => $templateTitleVideo,
  641. 'TemplateTitleFlash' => $templateTitleFlash
  642. ];
  643. foreach ($templates as $title => $content) {
  644. /** @var SystemTemplate $tpl */
  645. $tpl = $em
  646. ->getRepository('ChamiloCoreBundle:SystemTemplate')
  647. ->findOneBy(['title' => $title]);
  648. if (!empty($tpl)) {
  649. $tpl->setContent($content);
  650. $em->merge($tpl);
  651. }
  652. }
  653. $em->flush();
  654. }
  655. /**
  656. * @param Schema $schema
  657. */
  658. public function down(Schema $schema)
  659. {
  660. $em = $this->getEntityManager();
  661. $templateTitleCourseTitle = '
  662. <head>
  663. {CSS}
  664. <style type="text/css">
  665. .gris_title {
  666. color: silver;
  667. }
  668. h1
  669. {
  670. text-align: right;
  671. }
  672. </style>
  673. </head>
  674. <body>
  675. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  676. <tbody>
  677. <tr>
  678. <td style="vertical-align: middle; width: 50%;" colspan="1" rowspan="1">
  679. <h1>TITULUS 1<br>
  680. <span class="gris_title">TITULUS 2</span><br>
  681. </h1>
  682. </td>
  683. <td style="width: 50%;">
  684. <img style="width: 100px; height: 100px;" alt="Chamilo logo" src="{COURSE_DIR}images/logo_chamilo.png"></td>
  685. </tr>
  686. </tbody>
  687. </table>
  688. <p><br>
  689. <br>
  690. </p>
  691. </body>
  692. ';
  693. $templateTitleTeacher = '
  694. <head>
  695. {CSS}
  696. <style type="text/css">
  697. .text
  698. {
  699. font-weight: normal;
  700. }
  701. </style>
  702. </head>
  703. <body>
  704. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  705. <tbody>
  706. <tr>
  707. <td></td>
  708. <td style="height: 33%;"></td>
  709. <td></td>
  710. </tr>
  711. <tr>
  712. <td style="width: 25%;"></td>
  713. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right; font-weight: bold;" colspan="1" rowspan="1">
  714. <span class="text">
  715. <br>
  716. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.</span>
  717. </td>
  718. <td style="width: 25%; font-weight: bold;">
  719. <img style="width: 180px; height: 241px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_case.png "></td>
  720. </tr>
  721. </tbody>
  722. </table>
  723. <p><br>
  724. <br>
  725. </p>
  726. </body>
  727. ';
  728. $templateTitleLeftList = '
  729. <head>
  730. {CSS}
  731. </head>
  732. <body>
  733. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  734. <tbody>
  735. <tr>
  736. <td style="width: 66%;"></td>
  737. <td style="vertical-align: bottom; width: 33%;" colspan="1" rowspan="4">&nbsp;<img style="width: 180px; height: 248px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_reads.png "><br>
  738. </td>
  739. </tr>
  740. <tr align="right">
  741. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">Lorem
  742. ipsum dolor sit amet.
  743. </td>
  744. </tr>
  745. <tr align="right">
  746. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
  747. Vivamus
  748. a quam.&nbsp;<br>
  749. </td>
  750. </tr>
  751. <tr align="right">
  752. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 66%;">
  753. Proin
  754. a est stibulum ante ipsum.</td>
  755. </tr>
  756. </tbody>
  757. </table>
  758. <p><br>
  759. <br>
  760. </p>
  761. </body>
  762. ';
  763. $templateTitleLeftRightList = '
  764. <head>
  765. {CSS}
  766. </head>
  767. <body>
  768. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; height: 400px; width: 720px;" border="0" cellpadding="15" cellspacing="6">
  769. <tbody>
  770. <tr>
  771. <td></td>
  772. <td style="vertical-align: top;" colspan="1" rowspan="4">&nbsp;<img style="width: 180px; height: 294px;" alt="Trainer" src="{COURSE_DIR}images/trainer/trainer_join_hands.png "><br>
  773. </td>
  774. <td></td>
  775. </tr>
  776. <tr>
  777. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">Lorem
  778. ipsum dolor sit amet.
  779. </td>
  780. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
  781. Convallis
  782. ut.&nbsp;Cras dui magna.</td>
  783. </tr>
  784. <tr>
  785. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
  786. Vivamus
  787. a quam.&nbsp;<br>
  788. </td>
  789. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
  790. Etiam
  791. lacinia stibulum ante.<br>
  792. </td>
  793. </tr>
  794. <tr>
  795. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: right;">
  796. Proin
  797. a est stibulum ante ipsum.</td>
  798. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 33%; text-align: left;">
  799. Consectetuer
  800. adipiscing elit. <br>
  801. </td>
  802. </tr>
  803. </tbody>
  804. </table>
  805. <p><br>
  806. <br>
  807. </p>
  808. </body>
  809. ';
  810. $templateTitleRightList = '
  811. <head>
  812. {CSS}
  813. </head>
  814. <body style="direction: ltr;">
  815. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  816. <tbody>
  817. <tr>
  818. <td style="vertical-align: bottom; width: 50%;" colspan="1" rowspan="4"><img style="width: 300px; height: 199px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_points_right.png"><br>
  819. </td>
  820. <td style="width: 50%;"></td>
  821. </tr>
  822. <tr>
  823. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
  824. Convallis
  825. ut.&nbsp;Cras dui magna.</td>
  826. </tr>
  827. <tr>
  828. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
  829. Etiam
  830. lacinia.<br>
  831. </td>
  832. </tr>
  833. <tr>
  834. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; width: 50%;">
  835. Consectetuer
  836. adipiscing elit. <br>
  837. </td>
  838. </tr>
  839. </tbody>
  840. </table>
  841. <p><br>
  842. <br>
  843. </p>
  844. </body>
  845. ';
  846. $templateTitleDiagram = '
  847. <head>
  848. {CSS}
  849. </head>
  850. <body>
  851. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  852. <tbody>
  853. <tr>
  854. <td style="background: transparent url({IMG_DIR}faded_grey.png ) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; text-align: left; height: 33%; width: 33%;">
  855. <br>
  856. Etiam
  857. lacinia stibulum ante.
  858. Convallis
  859. ut.&nbsp;Cras dui magna.</td>
  860. <td colspan="1" rowspan="3">
  861. <img style="width: 350px; height: 267px;" alt="Alaska chart" src="{COURSE_DIR}images/diagrams/alaska_chart.png "></td>
  862. </tr>
  863. <tr>
  864. <td colspan="1" rowspan="1">
  865. <img style="width: 300px; height: 199px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_points_right.png "></td>
  866. </tr>
  867. <tr>
  868. </tr>
  869. </tbody>
  870. </table>
  871. <p><br>
  872. <br>
  873. </p>
  874. </body>
  875. ';
  876. $templateTitleDesc = '
  877. <head>
  878. {CSS}
  879. </head>
  880. <body>
  881. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  882. <tbody>
  883. <tr>
  884. <td style="width: 50%; vertical-align: top;">
  885. <img style="width: 48px; height: 49px; float: left;" alt="01" src="{COURSE_DIR}images/small/01.png " hspace="5"><br>Lorem ipsum dolor sit amet<br><br><br>
  886. <img style="width: 48px; height: 49px; float: left;" alt="02" src="{COURSE_DIR}images/small/02.png " hspace="5">
  887. <br>Ut enim ad minim veniam<br><br><br>
  888. <img style="width: 48px; height: 49px; float: left;" alt="03" src="{COURSE_DIR}images/small/03.png " hspace="5">Duis aute irure dolor in reprehenderit<br><br><br>
  889. <img style="width: 48px; height: 49px; float: left;" alt="04" src="{COURSE_DIR}images/small/04.png " hspace="5">Neque porro quisquam est</td>
  890. <td style="vertical-align: top; width: 50%; text-align: right;" colspan="1" rowspan="1">
  891. <img style="width: 300px; height: 291px;" alt="Gearbox" src="{COURSE_DIR}images/diagrams/gearbox.jpg "><br></td>
  892. </tr><tr></tr>
  893. </tbody>
  894. </table>
  895. <p><br>
  896. <br>
  897. </p>
  898. </body>
  899. ';
  900. $templateTitleCycle = '
  901. <head>
  902. {CSS}
  903. <style>
  904. .title
  905. {
  906. color: white; font-weight: bold;
  907. }
  908. </style>
  909. </head>
  910. <body>
  911. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="8" cellspacing="6">
  912. <tbody>
  913. <tr>
  914. <td style="text-align: center; vertical-align: bottom; height: 10%;" colspan="3" rowspan="1">
  915. <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/top_arrow.png ">
  916. </td>
  917. </tr>
  918. <tr>
  919. <td style="height: 5%; width: 45%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
  920. <span class="title">Lorem ipsum</span>
  921. </td>
  922. <td style="height: 5%; width: 10%;"></td>
  923. <td style="height: 5%; vertical-align: top; background-color: rgb(153, 153, 153); text-align: center;">
  924. <span class="title">Sed ut perspiciatis</span>
  925. </td>
  926. </tr>
  927. <tr>
  928. <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
  929. <ul>
  930. <li>dolor sit amet</li>
  931. <li>consectetur adipisicing elit</li>
  932. <li>sed do eiusmod tempor&nbsp;</li>
  933. <li>adipisci velit, sed quia non numquam</li>
  934. <li>eius modi tempora incidunt ut labore et dolore magnam</li>
  935. </ul>
  936. </td>
  937. <td style="width: 10%;"></td>
  938. <td style="background-color: rgb(204, 204, 255); width: 45%; vertical-align: top;">
  939. <ul>
  940. <li>ut enim ad minim veniam</li>
  941. <li>quis nostrud exercitation</li><li>ullamco laboris nisi ut</li>
  942. <li> Quis autem vel eum iure reprehenderit qui in ea</li>
  943. <li>voluptate velit esse quam nihil molestiae consequatur,</li>
  944. </ul>
  945. </td>
  946. </tr>
  947. <tr align="center">
  948. <td style="height: 10%; vertical-align: top;" colspan="3" rowspan="1">
  949. <img style="width: 250px; height: 76px;" alt="arrow" src="{COURSE_DIR}images/diagrams/bottom_arrow.png ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
  950. </td>
  951. </tr>
  952. </tbody>
  953. </table>
  954. <p><br>
  955. <br>
  956. </p>
  957. </body>
  958. ';
  959. $templateTitleTimeline = '
  960. <head>
  961. {CSS}
  962. <style>
  963. .title
  964. {
  965. font-weight: bold; text-align: center;
  966. }
  967. </style>
  968. </head>
  969. <body>
  970. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="8" cellspacing="5">
  971. <tbody>
  972. <tr class="title">
  973. <td style="vertical-align: top; height: 3%; background-color: rgb(224, 224, 224);">Lorem ipsum</td>
  974. <td style="height: 3%;"></td>
  975. <td style="vertical-align: top; height: 3%; background-color: rgb(237, 237, 237);">Perspiciatis</td>
  976. <td style="height: 3%;"></td>
  977. <td style="vertical-align: top; height: 3%; background-color: rgb(245, 245, 245);">Nemo enim</td>
  978. </tr>
  979. <tr>
  980. <td style="vertical-align: top; width: 30%; background-color: rgb(224, 224, 224);">
  981. <ul>
  982. <li>dolor sit amet</li>
  983. <li>consectetur</li>
  984. <li>adipisicing elit</li>
  985. </ul>
  986. <br>
  987. </td>
  988. <td>
  989. <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
  990. </td>
  991. <td style="vertical-align: top; width: 30%; background-color: rgb(237, 237, 237);">
  992. <ul>
  993. <li>ut labore</li>
  994. <li>et dolore</li>
  995. <li>magni dolores</li>
  996. </ul>
  997. </td>
  998. <td>
  999. <img style="width: 32px; height: 32px;" alt="arrow" src="{COURSE_DIR}images/small/arrow.png ">
  1000. </td>
  1001. <td style="vertical-align: top; background-color: rgb(245, 245, 245); width: 30%;">
  1002. <ul>
  1003. <li>neque porro</li>
  1004. <li>quisquam est</li>
  1005. <li>qui dolorem&nbsp;&nbsp;</li>
  1006. </ul>
  1007. <br><br>
  1008. </td>
  1009. </tr>
  1010. </tbody>
  1011. </table>
  1012. <p><br>
  1013. <br>
  1014. </p>
  1015. </body>
  1016. ';
  1017. $templateTitleTable = '
  1018. <head>
  1019. {CSS}
  1020. <style type="text/css">
  1021. .title
  1022. {
  1023. font-weight: bold; text-align: center;
  1024. }
  1025. .items
  1026. {
  1027. text-align: right;
  1028. }
  1029. </style>
  1030. </head>
  1031. <body>
  1032. <br />
  1033. <h2>A table</h2>
  1034. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px;" border="1" cellpadding="5" cellspacing="0">
  1035. <tbody>
  1036. <tr class="title">
  1037. <td>City</td>
  1038. <td>2005</td>
  1039. <td>2006</td>
  1040. <td>2007</td>
  1041. <td>2008</td>
  1042. </tr>
  1043. <tr class="items">
  1044. <td>Lima</td>
  1045. <td>10,40</td>
  1046. <td>8,95</td>
  1047. <td>9,19</td>
  1048. <td>9,76</td>
  1049. </tr>
  1050. <tr class="items">
  1051. <td>New York</td>
  1052. <td>18,39</td>
  1053. <td>17,52</td>
  1054. <td>16,57</td>
  1055. <td>16,60</td>
  1056. </tr>
  1057. <tr class="items">
  1058. <td>Barcelona</td>
  1059. <td>0,10</td>
  1060. <td>0,10</td>
  1061. <td>0,05</td>
  1062. <td>0,05</td>
  1063. </tr>
  1064. <tr class="items">
  1065. <td>Paris</td>
  1066. <td>3,38</td>
  1067. <td >3,63</td>
  1068. <td>3,63</td>
  1069. <td>3,54</td>
  1070. </tr>
  1071. </tbody>
  1072. </table>
  1073. <br>
  1074. </body>
  1075. ';
  1076. $templateTitleAudio = '
  1077. <head>
  1078. {CSS}
  1079. </head>
  1080. <body>
  1081. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  1082. <tbody>
  1083. <tr>
  1084. <td>
  1085. <div align="center">
  1086. <span style="text-align: center;">
  1087. <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="300" height="20" bgcolor="#FFFFFF" src="{REL_PATH}main/inc/lib/mediaplayer/player.swf" allowfullscreen="false" allowscriptaccess="always" flashvars="file={COURSE_DIR}audio/ListeningComprehension.mp3&amp;autostart=true"></embed>
  1088. </span></div>
  1089. <br>
  1090. </td>
  1091. <td colspan="1" rowspan="3"><br>
  1092. <img style="width: 300px; height: 341px; float: right;" alt="image" src="{COURSE_DIR}images/diagrams/head_olfactory_nerve.png "><br></td>
  1093. </tr>
  1094. <tr>
  1095. <td colspan="1" rowspan="1">
  1096. <img style="width: 180px; height: 271px;" alt="trainer" src="{COURSE_DIR}images/trainer/trainer_glasses.png"><br></td>
  1097. </tr>
  1098. <tr>
  1099. </tr>
  1100. </tbody>
  1101. </table>
  1102. <p><br>
  1103. <br>
  1104. </p>
  1105. </body>
  1106. ';
  1107. $templateTitleVideo = '
  1108. <head>
  1109. {CSS}
  1110. </head>
  1111. <body>
  1112. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 720px; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  1113. <tbody>
  1114. <tr>
  1115. <td style="width: 50%; vertical-align: top;">
  1116. <div style="text-align: center;" id="player810625-parent">
  1117. <div style="border-style: none; overflow: hidden; width: 320px; height: 240px; background-color: rgb(220, 220, 220);">
  1118. <div id="player810625">
  1119. <div id="player810625-config" style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false</div>
  1120. </div>
  1121. <embed
  1122. type="application/x-shockwave-flash"
  1123. src="{REL_PATH}main/inc/lib/mediaplayer/player.swf"
  1124. width="320"
  1125. height="240"
  1126. id="single"
  1127. name="single"
  1128. quality="high"
  1129. allowfullscreen="true"
  1130. flashvars="width=320&height=240&autostart=false&file={REL_PATH}main/default_course_document/video/flv/example.flv&repeat=false&image=&showdownload=false&link={REL_PATH}main/default_course_document/video/flv/example.flv&showdigits=true&shownavigation=true&logo="
  1131. />
  1132. </div>
  1133. </div>
  1134. </td>
  1135. <td style="background: transparent url({IMG_DIR}faded_grey.png) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 50%;">
  1136. <h3><br>
  1137. </h3>
  1138. <h3>Lorem ipsum dolor sit amet</h3>
  1139. <ul>
  1140. <li>consectetur adipisicing elit</li>
  1141. <li>sed do eiusmod tempor incididunt</li>
  1142. <li>ut labore et dolore magna aliqua</li>
  1143. </ul>
  1144. <h3>Ut enim ad minim veniam</h3>
  1145. <ul>
  1146. <li>quis nostrud exercitation ullamco</li>
  1147. <li>laboris nisi ut aliquip ex ea commodo consequat</li>
  1148. <li>Excepteur sint occaecat cupidatat non proident</li>
  1149. </ul>
  1150. </td>
  1151. </tr>
  1152. </tbody>
  1153. </table>
  1154. <p><br>
  1155. <br>
  1156. </p>
  1157. <style type="text/css">body{}</style><!-- to fix a strange bug appearing with firefox when editing this template -->
  1158. </body>
  1159. ';
  1160. $templateTitleFlash = '
  1161. <head>
  1162. {CSS}
  1163. </head>
  1164. <body>
  1165. <center>
  1166. <table style="background: transparent url({IMG_DIR}faded_blue_horizontal.png ) repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; text-align: left; width: 100%; height: 400px;" border="0" cellpadding="15" cellspacing="6">
  1167. <tbody>
  1168. <tr>
  1169. <td align="center">
  1170. <embed width="700" height="300" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="{COURSE_DIR}flash/SpinEchoSequence.swf" play="true" loop="true" menu="true"></embed></span><br />
  1171. </td>
  1172. </tr>
  1173. </tbody>
  1174. </table>
  1175. <p><br>
  1176. <br>
  1177. </p>
  1178. </center>
  1179. </body>
  1180. ';
  1181. $templates = [
  1182. 'TemplateTitleCourseTitle' => $templateTitleCourseTitle,
  1183. 'TemplateTitleTeacher' => $templateTitleTeacher,
  1184. 'TemplateTitleLeftList' => $templateTitleLeftList,
  1185. 'TemplateTitleLeftRightList' => $templateTitleLeftRightList,
  1186. 'TemplateTitleRightList' => $templateTitleRightList,
  1187. 'TemplateTitleDiagram' => $templateTitleDiagram,
  1188. 'TemplateTitleDesc' => $templateTitleDesc,
  1189. 'TemplateTitleCycle' => $templateTitleCycle,
  1190. 'TemplateTitleTimeline' => $templateTitleTimeline,
  1191. 'TemplateTitleTable' => $templateTitleTable,
  1192. 'TemplateTitleAudio' => $templateTitleAudio,
  1193. 'TemplateTitleVideo' => $templateTitleVideo,
  1194. 'TemplateTitleFlash' => $templateTitleFlash
  1195. ];
  1196. foreach ($templates as $title => $content) {
  1197. /** @var SystemTemplate $tpl */
  1198. $tpl = $em
  1199. ->getRepository('ChamiloCoreBundle:SystemTemplate')
  1200. ->findOneBy(['title' => $title]);
  1201. if (!empty($tpl)) {
  1202. $tpl->setContent($content);
  1203. $em->merge($tpl);
  1204. }
  1205. }
  1206. $em->flush();
  1207. }
  1208. }