Commit 89c9a125 authored by Tobias Munk's avatar Tobias Munk

updated & fixed tests

parent bb2f45b4
......@@ -11,3 +11,4 @@ web/bundles
docker-compose.override.yml
tests/codeception/_output
tests/codeception/_support/_generated
......@@ -6,6 +6,7 @@ paths:
support: codeception/_support
envs: codeception/_envs
settings:
#shuffle: true
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
......@@ -14,11 +15,9 @@ extensions:
- Codeception\Extension\RunFailed
modules:
config:
Db:
dsn: ''
user: ''
password: ''
dump: codeception/_data/dump.sql
Yii2:
configFile: 'codeception/_config/codeception-module.php'
cleanup: false
config:
test_entry_url: http://web:80/index.php
coverage:
......
......@@ -9,7 +9,7 @@ require($rootPath.'/src/config/env.php');
# TODO: review run webserver in YII_ENV=prod for acceptance tests, yii2-localurls has redirect issues in YII_ENV=test, see https://github.com/codemix/yii2-localeurls/issues/62
if (php_sapi_name() == 'cli' && getenv('YII_ENV') !== 'test') {
echo "Error: YII_ENV must be set to 'test'\n";
exit;
exit(1);
}
defined('YII_DEBUG') or define('YII_DEBUG', true);
......
<?php
use yii\db\Migration;
class m160720_000000_demo_data extends \dmstr\db\mysql\FileMigration
{
public $file = 'm161215_183747_app_0.8.2-1-ga18d13a_data.sql';
}
<?php
use yii\db\Migration;
class m160721_000000_users_and_auth extends \dmstr\db\mysql\FileMigration
{
}
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
TRUNCATE table `app_auth_assignment`;
TRUNCATE table `app_profile`;
TRUNCATE table `app_user`;
TRUNCATE table `app_social_account`;
INSERT INTO `app_user` (`id`, `username`, `email`, `password_hash`, `auth_key`, `confirmed_at`, `unconfirmed_email`, `blocked_at`, `registration_ip`, `created_at`, `updated_at`, `flags`)
VALUES
(1, 'admin', 'admin@h17n.de', '$2y$10$uN98TVi0OytDDgcpENV7IOWlWemn2TD/vij5hoN2QbZ/P8iGQkafy', 'ArSNskfLRoiDivKY98jaqgORDj597si4', 1463058272, NULL, NULL, NULL, 1463058272, 1475855889, 0),
(2, 'dev', 'dev@h17n.de', '$2y$10$8jo5HglYhJSgrl4iVVPSk.4pU3MOYSeyn1.jmtBgp0v3tRcQrtC1i', '33KED5Gw27sCnL3QyFe9svkaXL4pJUCx', 1463352048, NULL, NULL, '54.93.102.17', 1463349160, 1478617300, 0),
(3, 'editor', 'editor@h17n.de', '$2y$10$WzJWeCyCZi2n8w2nXIMbU.K7lJB8iMINcZIMutarHZ50qAGXsGIwy', 'HK7L1cW7VrpMGgvhHaQBnZGDu8zquCyM', 1467318745, NULL, NULL, '54.93.102.17', 1467318664, 1478617291, 0),
(4, 'preview', 'preview@h17n.de', '$2y$10$rfmrfvct3wD3akoVZY3l5OSidJ0xKMcoKeVlZZHfvT8fVZ4RYYj6m', 'WgWxMQCOMEyYgDDJ_mCBJcxvyL6h6SyI', 1467331347, NULL, NULL, '54.93.102.17', 1467331347, 1469693262, 0);
INSERT INTO `app_profile` (`user_id`, `name`, `public_email`, `gravatar_email`, `gravatar_id`, `location`, `website`, `bio`, `timezone`)
VALUES
(1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
LOCK TABLES `app_auth_assignment` WRITE; TRUNCATE TABLE `app_auth_assignment`;
/*!40000 ALTER TABLE `app_auth_assignment` DISABLE KEYS */;
INSERT INTO `app_auth_assignment` VALUES ('Developer','2',1467315311),('Editor','3',1467318765),('Preview','4',1467331484);
/*!40000 ALTER TABLE `app_auth_assignment` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- MySQL dump 10.13 Distrib 5.5.52, for debian-linux-gnu (x86_64)
--
-- Host: staging.chvip9o32iqg.eu-central-1.rds.amazonaws.com Database: doro-ee
-- ------------------------------------------------------
-- Server version 5.6.23-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Dumping data for table `app_auth_item`
--
LOCK TABLES `app_auth_item` WRITE; TRUNCATE TABLE `app_auth_item`;
/*!40000 ALTER TABLE `app_auth_item` DISABLE KEYS */;
INSERT INTO `app_auth_item` VALUES ('app',2,'All application controllers (without modules)',NULL,NULL,1467315829,1467315829),('app_site',2,'Main Site Controller',NULL,NULL,1463048457,1463048457),('backend',2,'Route',NULL,NULL,1467315450,1467315857),('backend_default',2,'Backend Dashboard',NULL,NULL,1463048457,1463048457),('docs',2,'Module',NULL,NULL,1470099425,1470099425),('Editor',1,'prototype editor',NULL,NULL,1463048457,1470099438),('filefly',2,'filyfly',NULL,NULL,1466785441,1466785441),('filefly_api_index',2,'filyfly/api/index',NULL,NULL,1466785441,1466785441),('filefly_default_index',2,'filyfly/default/index',NULL,NULL,1466785441,1466785441),('FileflyAdmin',1,NULL,NULL,NULL,1466785441,1466785441),('FileflyApi',1,NULL,NULL,NULL,1466785441,1466785441),('FileflyDefault',1,NULL,NULL,NULL,1466785441,1466785441),('FileflyPermissions',1,NULL,NULL,NULL,1467242026,1467242026),('Master',1,'Full backend access',NULL,NULL,1467314316,1479832968),('moxiemanager_default',2,'Moxiemanager',NULL,NULL,1463048454,1463048454),('moxiemanager_default_image',2,'Moxiemanager Public Images',NULL,NULL,1463048454,1463048454),('pages',2,'Pages Module',NULL,NULL,1463048455,1463048455),('pages_default_page',2,'CMS-Page Action',NULL,NULL,1463048457,1463048457),('Preview',1,'',NULL,NULL,1467331401,1469034041),('prototype',2,'Module',NULL,NULL,1463351107,1463351107),('prototype_render_twig',2,'Action (CMS page)',NULL,NULL,1463350937,1463350937),('Public',1,'Unauthenticated User',NULL,NULL,1463048457,1463048457),('resque',2,'Module',NULL,NULL,1467318093,1467318093),('settings',2,'Route',NULL,NULL,1467315669,1467315847),('settings-module',2,'Module',NULL,NULL,1467315605,1467315692),('translate-module',2,'Module',NULL,NULL,1467318323,1467318323),('translatemanager',2,'Route',NULL,NULL,1467318500,1467318500),('user',2,'Route',NULL,NULL,1467318564,1467318564),('user-module',2,'Module',NULL,NULL,1467318289,1467318579),('widgets',2,'Module (route)',NULL,NULL,1464109408,1467315725),('widgets_crud_widget',2,'WIdget content editing',NULL,NULL,1467318867,1467318867);
/*!40000 ALTER TABLE `app_auth_item` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_auth_item_child`
--
LOCK TABLES `app_auth_item_child` WRITE; TRUNCATE TABLE `app_auth_item_child`;
/*!40000 ALTER TABLE `app_auth_item_child` DISABLE KEYS */;
INSERT INTO `app_auth_item_child` VALUES ('Master','app'),('Editor','app_site'),('Preview','app_site'),('Master','backend'),('Editor','backend_default'),('Editor','docs'),('Master','docs'),('Master','Editor'),('FileflyAdmin','filefly'),('Master','filefly'),('FileflyApi','filefly_api_index'),('FileflyDefault','filefly_default_index'),('FileflyAdmin','FileflyPermissions'),('Editor','moxiemanager_default'),('Master','moxiemanager_default'),('Editor','pages'),('Master','pages'),('Preview','pages_default_page'),('Editor','prototype'),('Master','prototype'),('Editor','prototype_render_twig'),('Master','resque'),('settings-module','settings'),('Master','settings-module'),('Master','translate-module'),('user-module','user'),('Master','user-module'),('Master','widgets'),('Editor','widgets_crud_widget');
/*!40000 ALTER TABLE `app_auth_item_child` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_auth_rule`
--
LOCK TABLES `app_auth_rule` WRITE; TRUNCATE TABLE `app_auth_rule`;
/*!40000 ALTER TABLE `app_auth_rule` DISABLE KEYS */;
/*!40000 ALTER TABLE `app_auth_rule` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_hrzg_widget_content`
--
LOCK TABLES `app_hrzg_widget_content` WRITE; TRUNCATE TABLE `app_hrzg_widget_content`;
/*!40000 ALTER TABLE `app_hrzg_widget_content` DISABLE KEYS */;
INSERT INTO `app_hrzg_widget_content` VALUES (84,'0','',4,'{\"skin\":\"default\",\"ckbox\":true,\"title\":\"Senectus et netus et malesuada fames ac turpis\",\"subline\":\"Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.\",\"blocks\":[{\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"Examples\",\"button_url\":\"/de/p/titel-a-1004.html\",\"link_target\":false}]}','app/site/index','','main','020','','de','','','',NULL,NULL),(131,'0','',19,'{\"skin\":\"default text-center\",\"logo\":\"\",\"blocks\":[{\"title\":\"privacy \",\"link\":\"\"},{\"title\":\"imprint\",\"link\":\"\"},{\"title\":\"contact\",\"link\":\"\"},{\"title\":\"mail\",\"link\":\"\"},{\"title\":\"adress\",\"link\":\"\"},{\"title\":\"number\",\"link\":\"\"}]}','*','','_footer','050','','de','','','',NULL,NULL),(138,'0','',3,'{\"skin\":\"default\",\"headline\":\"Demo Aliquam tincidunt mauris\",\"subline\":\"mauris eu risus\",\"imageSource\":\"/_phd/test.png\"}','pages/default/page','1004','main','','','de','','','',NULL,NULL),(139,'0','',5,'{\"skin\":\"inverse\",\"ckbox\":true,\"title\":\"Malesuada fames ac turpis\",\"subline\":\"Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.\",\"blocks\":[{\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\"},{\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\"},{\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\"}]}','pages/default/page','1004','main','','','de','','','',NULL,NULL),(140,'0','',9,'{\"skin\":\"default\",\"ckbox\":true,\"blocks\":[{\"icon\":\"angle-down\",\"title\":\"Senectus et netus et malesuada fames ac turpis egestas.\",\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"E-Mail\",\"button_url\":\"mailto:c.beck@herzogkommunikation.de\"},{\"icon\":\"diamond\",\"title\":\"Senectus et netus et malesuada fames ac turpis egestas.\",\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"Button\",\"button_url\":\"\"},{\"icon\":\"empire\",\"title\":\"Senectus et netus et malesuada fames ac turpis egestas.\",\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"Button\",\"button_url\":\"\"},{\"icon\":\"volume-down\",\"title\":\"Senectus et netus et malesuada fames ac turpis egestas.\",\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"Button\",\"button_url\":\"\"}]}','pages/default/page','1004','main','','','de','','','',NULL,NULL),(141,'0','',4,'{\"skin\":\"default\",\"ckbox\":true,\"title\":\"Senectus et netus et malesuada fames ac turpis\",\"subline\":\"Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.\",\"blocks\":[{\"text_html\":\"<p><br></p><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"fhtruru\",\"button_url\":\"\",\"link_target\":false}]}','pages/default/page','1004','main','40','','de','','','',NULL,NULL),(143,'0','',22,'{\"skin\":\"inverse\",\"ckbox\":true,\"blocks\":[{\"image_url\":\"/_phd/test.png\",\"subline\":\"Fames ac turpis egestas\",\"headline\":\"Senectus et netus\",\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"Button\",\"button_url\":\"\",\"link_target\":false},{\"image_url\":\"/test.png\",\"subline\":\"Fames ac turpis egestas\",\"headline\":\"Senectus et netus\",\"text_html\":\"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\",\"button_text\":\"Button\",\"button_url\":\"\",\"link_target\":false}]}','pages/default/page','1004','main','','','de','','','',NULL,NULL),(151,'0','',13,'{\"skin\":\"default\",\"text\":\"Demo Aliquam tincidunt mauris\",\"image\":\"/_phd/test.png\"}','pages/default/page','1004','main','30','','de','','','',NULL,NULL),(154,'0','',2,'{\"skin\":\"default\",\"ckbox\":false,\"slides\":[{\"content\":\"<img src=\'/_phd/test.png\'/>\",\"caption\":\"1\"},{\"content\":\"<img src=\'/_phd/test.png\'/>\",\"caption\":\"Quisque a lectus.\"},{\"content\":\"<img src=\'/_phd/test.png\'/>\",\"caption\":\"fsafhjsag fvagsjFGGHS GFSJAGF HJSAJF\"},{\"content\":\"<img src=\'/_phd/test.png\'/>\",\"caption\":\"Quisque a lectus.\"}]}','pages/default/page','1004','main','50','','de','','','',NULL,NULL),(158,'0','',3,'{\"skin\":\"default\",\"headline\":\"Demo Aliquam tincidunt mauris\",\"subline\":\"mauris eu risus\",\"imageSource\":\"/test.png\"}','app/site/index','','top','','','de','','','',NULL,NULL),(159,'0','',4,'{\"skin\":\"default\",\"ckbox\":true,\"title\":\"Welcome to phd\",\"subline\":\"Application installed successfully.\",\"blocks\":[{\"text_html\":\"<p>Visit the German section of the demo page, to see some widget examples.</p>\",\"button_text\":\"Button\",\"button_url\":\"/de/p/titel-a-1004.html\",\"link_target\":false}]}','app/site/index','','main','','','en','','','',NULL,NULL),(160,'0','',4,'{\"skin\":\"default\",\"ckbox\":true,\"title\":\"Добро пожаловать в phd\",\"subline\":\"давай\",\"blocks\":[{\"text_html\":\"<p>Посетите немецкую секцию демонстрационную страницу, чтобы увидеть некоторые примеры виджетов.</p>\",\"button_text\":\"продолжить\",\"button_url\":\"/de/p/titel-a-1004.html\",\"link_target\":false}]}','app/site/index','','main','','','ru','','','',NULL,NULL),(161,'0','',17,'{\"headline\":\"Herzlich Willkommen\",\"subline\":\"bei uns\",\"youtube_id\":\"rpWrtXyEAN0\",\"imageSource\":\"/_phd/test.png\"}','pages/default/page','1019','header','','','en','','','',NULL,NULL);
/*!40000 ALTER TABLE `app_hrzg_widget_content` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_hrzg_widget_template`
--
LOCK TABLES `app_hrzg_widget_template` WRITE; TRUNCATE TABLE `app_hrzg_widget_template`;
/*!40000 ALTER TABLE `app_hrzg_widget_template` DISABLE KEYS */;
INSERT INTO `app_hrzg_widget_template` VALUES (2,'Slider','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Slider Widget\",\n \"type\": \"object\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"enum\": [\n \"default\",\n \"inverse\"\n ]\n },\n \"ckbox\": {\n \"title\": \"Container on\\/off\",\n \"type\": \"boolean\",\n \"format\": \"checkbox\"\n },\n \"slides\": {\n \"type\": \"array\",\n \"format\": \"tabs\",\n \"title\": \"Slides\",\n \"items\": {\n \"type\": \"object\",\n \"title\": \"Slide\",\n \"properties\": {\n \"content\": {\n \"type\": \"string\",\n \"title\": \"Image URL\",\n \"format\": \"string\",\n \"default\": \"<img src=\'#\'\\/>\",\n \"description\": \"please copy the IMAGE URL in place of the # - note: you have to keep the rest!\"\n },\n \"caption\": {\n \"type\": \"string\",\n \"title\": \"Beschreibung\",\n \"default\": \"Quisque a lectus.\"\n }\n }\n }\n }\n }\n}','{{ use (\'yii/bootstrap\') }}\r\n\r\n<div class=\"slider-image bg-{{ skin }}\">\r\n{% if ckbox == true %}\r\n <div class=\"container\">\r\n {% else %}\r\n <div>\r\n {% endif %} \r\n {{ carousel_widget(\r\n {\r\n id: \'header\',\r\n items: slides\r\n }\r\n) }}\r\n</div>\r\n\r\n\r\n\r\n '),(3,'Header Image','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Header Image Widget\",\n \"type\": \"object\",\n \"id\": \"jumbotron\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"title\": \"Widget Style\",\n \"enum\": [\n \"default\"\n ]\n },\n \"headline\": {\n \"type\": \"string\",\n \"title\": \"Headline\",\n \"default\": \"Demo Aliquam tincidunt mauris\"\n },\n \"subline\": {\n \"type\": \"string\",\n \"title\": \"Subline\",\n \"default\": \"mauris eu risus\"\n },\n \"imageSource\": {\n \"type\": \"string\",\n \"title\": \"Image URL\",\n \"default\": \"\\/_phd\\/test.png\"\n }\n }\n}','<div class=\"widget-content jumbotron text-center text-on-picture {{ skin }}\" style=\"background-image: url({{ imageSource }}); background-size: cover;\">\r\n <div class=\"container\">\r\n <h1> {{ headline }} </h1>\r\n <h2> {{ subline }} </h2>\r\n </div>\r\n</div>'),(4,'Content (with button)','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Content with Button Widget\",\n \"type\": \"object\",\n \"id\": \"jumbotron\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"title\": \"Widget Style\",\n \"enum\": [\n \"default\",\n \"inverse\",\n \"default text-center\",\n \"inverse text-center\"\n ]\n },\n \"ckbox\": {\n \"title\": \"Container on\\/off\",\n \"type\": \"boolean\",\n \"format\": \"checkbox\",\n \"default\": true\n },\n \"title\": {\n \"type\": \"string\",\n \"title\": \"Headline\",\n \"default\": \"Senectus et netus et malesuada fames ac turpis\"\n },\n \"subline\": {\n \"type\": \"string\",\n \"title\": \"Subline\",\n \"default\": \"Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.\"\n },\n \"blocks\": {\n \"type\": \"array\",\n \"format\": \"tabs\",\n \"title\": \"Text\",\n \"items\": {\n \"type\": \"object\",\n \"title\": \"Paragraph\",\n \"properties\": {\n \"text_html\": {\n \"type\": \"string\",\n \"title\": \"Text\",\n \"default\": \"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.<\\/p>\",\n \"format\": \"html\",\n \"options\": {\n \"wysiwyg\": true\n }\n },\n \"button_text\": {\n \"type\": \"string\",\n \"title\": \"Button Text\",\n \"default\": \"Button\"\n },\n \"button_url\": {\n \"type\": \"string\",\n \"title\": \"Link \\/ Mailto \\/ Anchor\",\n \"description\": \"Link: http:\\/\\/www.example.com \\/ Mailto: mailto:mail@info.com \\/ Anchor: #widget-NameID\"\n },\n \"link_target\": {\n \"type\": \"boolean\",\n \"format\": \"checkbox\",\n \"title\": \"Open in new window - on\\/off\"\n }\n }\n }\n }\n }\n}','<div class=\"widget-content call-to-action bg-{{ skin }}\">\r\n {% if ckbox == true %}\r\n <div class=\"container\">\r\n {% else %}\r\n <div class=\"no-container\">\r\n {% endif %} \r\n <h2>{{ title }}\r\n <br>\r\n <small>{{subline}}</small>\r\n </h2>\r\n {% for block in blocks %}\r\n {{ block.text_html|raw }}\r\n {% if (block.button_text) != \"\" %}\r\n <p>\r\n <a href=\"{{block.button_url}}\" class=\"btn btn-primary\">{{block.button_text}}</a>\r\n </p>\r\n {% endif %}\r\n {% endfor %}\r\n </div>\r\n</div>\r\n'),(5,'Content','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Content Widget\",\n \"type\": \"object\",\n \"id\": \"jumbotron\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"title\": \"Widget Style\",\n \"enum\": [\n \"default\",\n \"inverse\",\n \"default text-center\",\n \"inverse text-center\"\n ]\n },\n \"ckbox\": {\n \"title\": \"Container on\\/off\",\n \"type\": \"boolean\",\n \"format\": \"checkbox\",\n \"default\": true\n },\n \"title\": {\n \"title\": \"Headline\",\n \"type\": \"string\",\n \"default\": \"Malesuada fames ac turpis\"\n },\n \"subline\": {\n \"title\": \"Subline\",\n \"type\": \"string\",\n \"default\": \"Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.\"\n },\n \"blocks\": {\n \"type\": \"array\",\n \"format\": \"tabs\",\n \"title\": \"Text\",\n \"items\": {\n \"type\": \"object\",\n \"title\": \"Paragraph\",\n \"properties\": {\n \"text_html\": {\n \"title\": \"Paragraph\",\n \"type\": \"string\",\n \"default\": \"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.<\\/p>\",\n \"format\": \"html\",\n \"options\": {\n \"wysiwyg\": true\n }\n }\n }\n }\n }\n }\n}','<div class=\"widget-content content bg-{{ skin }}\">\r\n {% if ckbox == true %}\r\n <div class=\"container\">\r\n {% else %}\r\n <div class=\"no-container\">\r\n {% endif %} \r\n <h2>\r\n {{ title }}\r\n <br>\r\n <small>{{subline}}</small>\r\n </h2>\r\n \r\n {% for block in blocks %}\r\n {{ block.text_html|raw }}\r\n {% endfor %}\r\n \r\n </div>\r\n</div>'),(9,'Content Icon blocks (1-6)','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Content Icon blocks Widget\",\n \"type\": \"object\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"title\": \"Style skin\",\n \"enum\": [\n \"default\",\n \"inverse\",\n \"default text-center\",\n \"inverse text-center\"\n ]\n },\n \"ckbox\": {\n \"title\": \"Container on\\/off\",\n \"type\": \"boolean\",\n \"format\": \"checkbox\",\n \"default\": true\n },\n \"blocks\": {\n \"type\": \"array\",\n \"format\": \"tabs\",\n \"title\": \"Iconblock\",\n \"items\": {\n \"type\": \"object\",\n \"title\": \"Iconblock\",\n \"properties\": {\n \"icon\": {\n \"type\": \"string\",\n \"title\": \"Icon\",\n \"enum\": [\n \"500px\",\n \"adjust\",\n \"adn\",\n \"align-center\",\n \"align-justify\",\n \"align-left\",\n \"align-right\",\n \"amazon\",\n \"ambulance\",\n \"anchor\",\n \"android\",\n \"angellist\",\n \"angle-double-down\",\n \"angle-double-left\",\n \"angle-double-right\",\n \"angle-double-up\",\n \"angle-down\",\n \"angle-left\",\n \"angle-right\",\n \"angle-up\",\n \"apple\",\n \"archive\",\n \"area-chart\",\n \"arrow-circle-down\",\n \"arrow-circle-left\",\n \"arrow-circle-o-down\",\n \"arrow-circle-o-left\",\n \"arrow-circle-o-right\",\n \"arrow-circle-o-up\",\n \"arrow-circle-right\",\n \"arrow-circle-up\",\n \"arrow-down\",\n \"arrow-left\",\n \"arrow-right\",\n \"arrow-up\",\n \"arrows\",\n \"arrows-alt\",\n \"arrows-h\",\n \"arrows-v\",\n \"asterisk\",\n \"at\",\n \"automobile\",\n \"backward\",\n \"balance-scale\",\n \"ban\",\n \"bank\",\n \"bar-chart\",\n \"bar-chart-o\",\n \"barcode\",\n \"bars\",\n \"battery-0\",\n \"battery-1\",\n \"battery-2\",\n \"battery-3\",\n \"battery-4\",\n \"battery-empty\",\n \"battery-full\",\n \"battery-half\",\n \"battery-quarter\",\n \"battery-three-quarters\",\n \"bed\",\n \"beer\",\n \"behance\",\n \"behance-square\",\n \"bell\",\n \"bell-o\",\n \"bell-slash\",\n \"bell-slash-o\",\n \"bicycle\",\n \"binoculars\",\n \"birthday-cake\",\n \"bitbucket\",\n \"bitbucket-square\",\n \"bitcoin\",\n \"black-tie\",\n \"bluetooth\",\n \"bluetooth-b\",\n \"bold\",\n \"bolt\",\n \"bomb\",\n \"book\",\n \"bookmark\",\n \"bookmark-o\",\n \"briefcase\",\n \"btc\",\n \"bug\",\n \"building\",\n \"building-o\",\n \"bullhorn\",\n \"bullseye\",\n \"bus\",\n \"buysellads\",\n \"cab\",\n \"calculator\",\n \"calendar\",\n \"calendar-check-o\",\n \"calendar-minus-o\",\n \"calendar-o\",\n \"calendar-plus-o\",\n \"calendar-times-o\",\n \"camera\",\n \"camera-retro\",\n \"car\",\n \"caret-down\",\n \"caret-left\",\n \"caret-right\",\n \"caret-square-o-down\",\n \"caret-square-o-left\",\n \"caret-square-o-right\",\n \"caret-square-o-up\",\n \"caret-up\",\n \"cart-arrow-down\",\n \"cart-plus\",\n \"cc\",\n \"cc-amex\",\n \"cc-diners-club\",\n \"cc-discover\",\n \"cc-jcb\",\n \"cc-mastercard\",\n \"cc-paypal\",\n \"cc-stripe\",\n \"cc-visa\",\n \"certificate\",\n \"chain\",\n \"chain-broken\",\n \"check\",\n \"check-circle\",\n \"check-circle-o\",\n \"check-square\",\n \"check-square-o\",\n \"chevron-circle-down\",\n \"chevron-circle-left\",\n \"chevron-circle-right\",\n \"chevron-circle-up\",\n \"chevron-down\",\n \"chevron-left\",\n \"chevron-right\",\n \"chevron-up\",\n \"child\",\n \"chrome\",\n \"circle\",\n \"circle-o\",\n \"circle-o-notch\",\n \"circle-thin\",\n \"clipboard\",\n \"clock-o\",\n \"clone\",\n \"close\",\n \"cloud\",\n \"cloud-download\",\n \"cloud-upload\",\n \"cny\",\n \"code\",\n \"code-fork\",\n \"codepen\",\n \"codiepie\",\n \"coffee\",\n \"cog\",\n \"cogs\",\n \"columns\",\n \"comment\",\n \"comment-o\",\n \"commenting\",\n \"commenting-o\",\n \"comments\",\n \"comments-o\",\n \"compass\",\n \"compress\",\n \"connectdevelop\",\n \"contao\",\n \"copy\",\n \"copyright\",\n \"creative-commons\",\n \"credit-card\",\n \"credit-card-alt\",\n \"crop\",\n \"crosshairs\",\n \"css3\",\n \"cube\",\n \"cubes\",\n \"cut\",\n \"cutlery\",\n \"dashboard\",\n \"dashcube\",\n \"database\",\n \"dedent\",\n \"delicious\",\n \"desktop\",\n \"deviantart\",\n \"diamond\",\n \"digg\",\n \"dollar\",\n \"dot-circle-o\",\n \"download\",\n \"dribbble\",\n \"dropbox\",\n \"drupal\",\n \"edge\",\n \"edit\",\n \"eject\",\n \"ellipsis-h\",\n \"ellipsis-v\",\n \"empire\",\n \"envelope\",\n \"envelope-o\",\n \"envelope-square\",\n \"eraser\",\n \"eur\",\n \"euro\",\n \"exchange\",\n \"exclamation\",\n \"exclamation-circle\",\n \"exclamation-triangle\",\n \"expand\",\n \"expeditedssl\",\n \"external-link\",\n \"external-link-square\",\n \"eye\",\n \"eye-slash\",\n \"eyedropper\",\n \"facebook\",\n \"facebook-f\",\n \"facebook-official\",\n \"facebook-square\",\n \"fast-backward\",\n \"fast-forward\",\n \"fax\",\n \"feed\",\n \"female\",\n \"fighter-jet\",\n \"file\",\n \"file-archive-o\",\n \"file-audio-o\",\n \"file-code-o\",\n \"file-excel-o\",\n \"file-image-o\",\n \"file-movie-o\",\n \"file-o\",\n \"file-pdf-o\",\n \"file-photo-o\",\n \"file-picture-o\",\n \"file-powerpoint-o\",\n \"file-sound-o\",\n \"file-text\",\n \"file-text-o\",\n \"file-video-o\",\n \"file-word-o\",\n \"file-zip-o\",\n \"files-o\",\n \"film\",\n \"filter\",\n \"fire\",\n \"fire-extinguisher\",\n \"firefox\",\n \"flag\",\n \"flag-checkered\",\n \"flag-o\",\n \"flash\",\n \"flask\",\n \"flickr\",\n \"floppy-o\",\n \"folder\",\n \"folder-o\",\n \"folder-open\",\n \"folder-open-o\",\n \"font\",\n \"fonticons\",\n \"fort-awesome\",\n \"forumbee\",\n \"forward\",\n \"foursquare\",\n \"frown-o\",\n \"futbol-o\",\n \"gamepad\",\n \"gavel\",\n \"gbp\",\n \"ge\",\n \"gear\",\n \"gears\",\n \"genderless\",\n \"get-pocket\",\n \"gg\",\n \"gg-circle\",\n \"gift\",\n \"git\",\n \"git-square\",\n \"github\",\n \"github-alt\",\n \"github-square\",\n \"gittip\",\n \"glass\",\n \"globe\",\n \"google\",\n \"google-plus\",\n \"google-plus-square\",\n \"google-wallet\",\n \"graduation-cap\",\n \"gratipay\",\n \"group\",\n \"h-square\",\n \"hacker-news\",\n \"hand-grab-o\",\n \"hand-lizard-o\",\n \"hand-o-down\",\n \"hand-o-left\",\n \"hand-o-right\",\n \"hand-o-up\",\n \"hand-paper-o\",\n \"hand-peace-o\",\n \"hand-pointer-o\",\n \"hand-rock-o\",\n \"hand-scissors-o\",\n \"hand-spock-o\",\n \"hand-stop-o\",\n \"hashtag\",\n \"hdd-o\",\n \"header\",\n \"headphones\",\n \"heart\",\n \"heart-o\",\n \"heartbeat\",\n \"history\",\n \"home\",\n \"hospital-o\",\n \"hotel\",\n \"hourglass\",\n \"hourglass-1\",\n \"hourglass-2\",\n \"hourglass-3\",\n \"hourglass-end\",\n \"hourglass-half\",\n \"hourglass-o\",\n \"hourglass-start\",\n \"houzz\",\n \"html5\",\n \"i-cursor\",\n \"ils\",\n \"image\",\n \"inbox\",\n \"indent\",\n \"industry\",\n \"info\",\n \"info-circle\",\n \"inr\",\n \"instagram\",\n \"institution\",\n \"internet-explorer\",\n \"intersex\",\n \"ioxhost\",\n \"italic\",\n \"joomla\",\n \"jpy\",\n \"jsfiddle\",\n \"key\",\n \"keyboard-o\",\n \"krw\",\n \"language\",\n \"laptop\",\n \"lastfm\",\n \"lastfm-square\",\n \"leaf\",\n \"leanpub\",\n \"legal\",\n \"lemon-o\",\n \"level-down\",\n \"level-up\",\n \"life-bouy\",\n \"life-buoy\",\n \"life-ring\",\n \"life-saver\",\n \"lightbulb-o\",\n \"line-chart\",\n \"link\",\n \"linkedin\",\n \"linkedin-square\",\n \"linux\",\n \"list\",\n \"list-alt\",\n \"list-ol\",\n \"list-ul\",\n \"location-arrow\",\n \"lock\",\n \"long-arrow-down\",\n \"long-arrow-left\",\n \"long-arrow-right\",\n \"long-arrow-up\",\n \"magic\",\n \"magnet\",\n \"mail-forward\",\n \"mail-reply\",\n \"mail-reply-all\",\n \"male\",\n \"map\",\n \"map-marker\",\n \"map-o\",\n \"map-pin\",\n \"map-signs\",\n \"mars\",\n \"mars-double\",\n \"mars-stroke\",\n \"mars-stroke-h\",\n \"mars-stroke-v\",\n \"maxcdn\",\n \"meanpath\",\n \"medium\",\n \"medkit\",\n \"meh-o\",\n \"mercury\",\n \"microphone\",\n \"microphone-slash\",\n \"minus\",\n \"minus-circle\",\n \"minus-square\",\n \"minus-square-o\",\n \"mixcloud\",\n \"mobile\",\n \"mobile-phone\",\n \"modx\",\n \"money\",\n \"moon-o\",\n \"mortar-board\",\n \"motorcycle\",\n \"mouse-pointer\",\n \"music\",\n \"navicon\",\n \"neuter\",\n \"newspaper-o\",\n \"object-group\",\n \"object-ungroup\",\n \"odnoklassniki\",\n \"odnoklassniki-square\",\n \"opencart\",\n \"openid\",\n \"opera\",\n \"optin-monster\",\n \"outdent\",\n \"pagelines\",\n \"paint-brush\",\n \"paper-plane\",\n \"paper-plane-o\",\n \"paperclip\",\n \"paragraph\",\n \"paste\",\n \"pause\",\n \"pause-circle\",\n \"pause-circle-o\",\n \"paw\",\n \"paypal\",\n \"pencil\",\n \"pencil-square\",\n \"pencil-square-o\",\n \"percent\",\n \"phone\",\n \"phone-square\",\n \"photo\",\n \"picture-o\",\n \"pie-chart\",\n \"pied-piper\",\n \"pied-piper-alt\",\n \"pinterest\",\n \"pinterest-p\",\n \"pinterest-square\",\n \"plane\",\n \"play\",\n \"play-circle\",\n \"play-circle-o\",\n \"plug\",\n \"plus\",\n \"plus-circle\",\n \"plus-square\",\n \"plus-square-o\",\n \"power-off\",\n \"print\",\n \"product-hunt\",\n \"puzzle-piece\",\n \"qq\",\n \"qrcode\",\n \"question\",\n \"question-circle\",\n \"quote-left\",\n \"quote-right\",\n \"ra\",\n \"random\",\n \"rebel\",\n \"recycle\",\n \"reddit\",\n \"reddit-alien\",\n \"reddit-square\",\n \"refresh\",\n \"registered\",\n \"remove\",\n \"renren\",\n \"reorder\",\n \"repeat\",\n \"reply\",\n \"reply-all\",\n \"retweet\",\n \"rmb\",\n \"road\",\n \"rocket\",\n \"rotate-left\",\n \"rotate-right\",\n \"rouble\",\n \"rss\",\n \"rss-square\",\n \"rub\",\n \"ruble\",\n \"rupee\",\n \"safari\",\n \"save\",\n \"scissors\",\n \"scribd\",\n \"search\",\n \"search-minus\",\n \"search-plus\",\n \"sellsy\",\n \"send\",\n \"send-o\",\n \"server\",\n \"share\",\n \"share-alt\",\n \"share-alt-square\",\n \"share-square\",\n \"share-square-o\",\n \"shekel\",\n \"sheqel\",\n \"shield\",\n \"ship\",\n \"shirtsinbulk\",\n \"shopping-bag\",\n \"shopping-basket\",\n \"shopping-cart\",\n \"sign-in\",\n \"sign-out\",\n \"signal\",\n \"simplybuilt\",\n \"sitemap\",\n \"skyatlas\",\n \"skype\",\n \"slack\",\n \"sliders\",\n \"slideshare\",\n \"smile-o\",\n \"soccer-ball-o\",\n \"sort\",\n \"sort-alpha-asc\",\n \"sort-alpha-desc\",\n \"sort-amount-asc\",\n \"sort-amount-desc\",\n \"sort-asc\",\n \"sort-desc\",\n \"sort-down\",\n \"sort-numeric-asc\",\n \"sort-numeric-desc\",\n \"sort-up\",\n \"soundcloud\",\n \"space-shuttle\",\n \"spinner\",\n \"spoon\",\n \"spotify\",\n \"square\",\n \"square-o\",\n \"stack-exchange\",\n \"stack-overflow\",\n \"star\",\n \"star-half\",\n \"star-half-empty\",\n \"star-half-full\",\n \"star-half-o\",\n \"star-o\",\n \"steam\",\n \"steam-square\",\n \"step-backward\",\n \"step-forward\",\n \"stethoscope\",\n \"sticky-note\",\n \"sticky-note-o\",\n \"stop\",\n \"stop-circle\",\n \"stop-circle-o\",\n \"street-view\",\n \"strikethrough\",\n \"stumbleupon\",\n \"stumbleupon-circle\",\n \"subscript\",\n \"subway\",\n \"suitcase\",\n \"sun-o\",\n \"superscript\",\n \"support\",\n \"table\",\n \"tablet\",\n \"tachometer\",\n \"tag\",\n \"tags\",\n \"tasks\",\n \"taxi\",\n \"television\",\n \"tencent-weibo\",\n \"terminal\",\n \"text-height\",\n \"text-width\",\n \"th\",\n \"th-large\",\n \"th-list\",\n \"thumb-tack\",\n \"thumbs-down\",\n \"thumbs-o-down\",\n \"thumbs-o-up\",\n \"thumbs-up\",\n \"ticket\",\n \"times\",\n \"times-circle\",\n \"times-circle-o\",\n \"tint\",\n \"toggle-down\",\n \"toggle-left\",\n \"toggle-off\",\n \"toggle-on\",\n \"toggle-right\",\n \"toggle-up\",\n \"trademark\",\n \"train\",\n \"transgender\",\n \"transgender-alt\",\n \"trash\",\n \"trash-o\",\n \"tree\",\n \"trello\",\n \"tripadvisor\",\n \"trophy\",\n \"truck\",\n \"try\",\n \"tty\",\n \"tumblr\",\n \"tumblr-square\",\n \"turkish-lira\",\n \"tv\",\n \"twitch\",\n \"twitter\",\n \"twitter-square\",\n \"umbrella\",\n \"underline\",\n \"undo\",\n \"university\",\n \"unlink\",\n \"unlock\",\n \"unlock-alt\",\n \"unsorted\",\n \"upload\",\n \"usb\",\n \"usd\",\n \"user\",\n \"user-md\",\n \"user-plus\",\n \"user-secret\",\n \"user-times\",\n \"users\",\n \"venus\",\n \"venus-double\",\n \"venus-mars\",\n \"viacoin\",\n \"video-camera\",\n \"vimeo\",\n \"vimeo-square\",\n \"vine\",\n \"vk\",\n \"volume-down\",\n \"volume-off\",\n \"volume-up\",\n \"warning\",\n \"wechat\",\n \"weibo\",\n \"weixin\",\n \"whatsapp\",\n \"wheelchair\",\n \"wifi\",\n \"wikipedia-w\",\n \"windows\",\n \"won\",\n \"wordpress\",\n \"wrench\",\n \"xing\",\n \"xing-square\",\n \"y-combinator\",\n \"y-combinator-square\",\n \"yahoo\",\n \"yc\",\n \"yc-square\",\n \"yelp\",\n \"yen\",\n \"youtube\",\n \"youtube-play\",\n \"youtube-square\"\n ],\n \"format\": \"select\"\n },\n \"title\": {\n \"type\": \"string\",\n \"title\": \"Headline\",\n \"default\": \"Senectus et netus et malesuada fames ac turpis egestas.\"\n },\n \"text_html\": {\n \"type\": \"string\",\n \"title\": \"Text\",\n \"default\": \"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.<\\/p>\",\n \"format\": \"html\",\n \"options\": {\n \"wysiwyg\": true\n }\n },\n \"button_text\": {\n \"type\": \"string\",\n \"title\": \"Button Text\",\n \"default\": \"Button\"\n },\n \"button_url\": {\n \"type\": \"string\",\n \"title\": \"Link \\/ Mailto \\/ Anchor\",\n \"description\": \"Link: www.url.com \\/ Mailto: mailto:mail@info.com \\/ Anchor: #widget-NameID\"\n }\n }\n }\n }\n }\n}','<div class=\"widget-content blocks bg-{{ skin }}\">\r\n {% if ckbox == true %}\r\n <div class=\"container\">\r\n {% else %}\r\n <div class=\"no-container\">\r\n {% endif %}\r\n <div class=\"row\">\r\n {% for block in blocks %}\r\n {% if blocks|length == 4 %}\r\n <div class=\"col-lg-3 col-sm-6 col-md-6\">\r\n {% elseif blocks|length == 6 %}\r\n <div class=\"col-lg-2 col-sm-4 col-md-2\">\r\n {% else %} \r\n <div class=\"col-sm-{{ 12 / blocks|length }}\">\r\n {% endif %}\r\n <div class=\"icon\">\r\n <i class=\"fa fa-{{ block.icon }}\"></i>\r\n </div>\r\n <h3>{{ block.title }}</h3>\r\n {{ block.text_html|raw }}\r\n {% if (block.button_text) != \"\" %}\r\n <p>\r\n <a href=\"{{block.button_url}}\" class=\"btn btn-primary\">{{block.button_text}}</a>\r\n </p>\r\n {% endif %}\r\n </div>\r\n {% if (blocks|length == 4) and ((loop.index % 2) == 0) %}\r\n <div class=\"clearfix visible-sm-block visible-md-block\"></div>\r\n {% endif %}\r\n {% endfor %}\r\n </div>\r\n </div>\r\n</div>\r\n'),(13,'Separator','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Separator Widget\",\n \"type\": \"object\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"enum\": [\n \"default\"\n ]\n },\n \"text\": {\n \"type\": \"string\",\n \"title\": \"Text\",\n \"default\": \"Demo Aliquam tincidunt mauris\"\n },\n \"image\": {\n \"type\": \"string\",\n \"title\": \"Image Source\",\n \"default\": \"\\/_phd\\/test.png\"\n }\n }\n}','<div class=\"widget-content text-center text-on-picture separator-image bg-{{ skin }}\" style=\"background-image: url({{ image }}); background-size: cover;\">\r\n <div class=\"container\">\r\n <h2>\r\n {{ text }}\r\n </h2>\r\n </div>\r\n</div>'),(17,'Header Video','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Header Video Widget\",\n \"type\": \"object\",\n \"properties\": {\n \"headline\": {\n \"type\": \"string\",\n \"title\": \"Headline\",\n \"default\": \"Herzlich Willkommen\"\n },\n \"subline\": {\n \"type\": \"string\",\n \"title\": \"Subline\",\n \"default\": \"bei uns\"\n },\n \"youtube_id\": {\n \"type\": \"string\",\n \"title\": \"YouTube ID\",\n \"default\": \"a6J4I6j6ov8\"\n },\n \"imageSource\": {\n \"type\": \"string\",\n \"title\": \"Background Picture\",\n \"default\": \"\\/_phd\\/test.png\"\n }\n }\n}','<div class=\"hidden-sm hidden-xs\"style=\"position: relative\">\r\n <div class=\"embed-responsive embed-responsive-16by9 header-video\">\r\n <div id=\"background\">\r\n <iframe id=\'player\' width=\"100%\" height=\"100%\" src=\"https://www.youtube.com/embed/{{ youtube_id }}?rel=0&amp;controls=0&amp;showinfo=0&amp;autoplay=1&amp;loop=1&amp;playlist={{ youtube_id }}&amp;enablejsapi=1&version=3\" frameborder=\"0\"></iframe>\r\n </div>\r\n </div>\r\n <div class=\"video-front text-on-picture\">\r\n <h1>{{ headline }}</h1>\r\n <h2>{{ subline }}</h2>\r\n </div>\r\n <div class=\"video-overlay\"></div>\r\n</div>\r\n<div class=\"hidden-lg hidden-md widget-content text-on-picture text-center\" style=\"background-image: url({{ imageSource }}); background-size: cover;\">\r\n <h1>{{ headline }}</h1>\r\n <h2>{{ subline }}</h2>\r\n</div>'),(19,'Footer','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Footer Widget\",\n \"type\": \"object\",\n \"id\": \"footer\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"title\": \"Widget Style\",\n \"enum\": [\n \"default\",\n \"inverse\",\n \"default text-center\",\n \"inverse text-center\",\n \"default text-right\",\n \"inverse text-right\"\n ]\n },\n \"logo\": {\n \"type\": \"string\",\n \"title\": \"Logo URL\",\n \"description\": \"Logo will appear on the left side\"\n },\n \"blocks\": {\n \"type\": \"array\",\n \"format\": \"tabs\",\n \"title\": \"Link\",\n \"items\": {\n \"type\": \"object\",\n \"title\": \"Link\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"title\": \"Title\"\n },\n \"link\": {\n \"type\": \"string\",\n \"title\": \"Link URL\"\n }\n }\n }\n }\n }\n}','<div class=\"widget-content footer bg-{{ skin }}\">\r\n <div class=\"container\">\r\n <ul class=\"list-inline\">\r\n {% if (logo) != \"\" %}\r\n <span class=\"{{ skin }}-right\"><img class= \"footer-logo\" src=\"{{ logo }}\"></img></span>\r\n {% endif %}\r\n {% for block in blocks %}\r\n <li><a href=\"{{ block.link }}\">{{ block.title }}</a></li>\r\n {% endfor %}\r\n <li><a href=\"#\" data-toggle=\"modal\" data-target=\"#infoModal\"><img class=\"footer-logo-herzog\" src=\"/_phd/dmstr-logo.svg\" alt=\"icon dmstr\" data-pin-nopin=\"true\"></a></li>\r\n </ul>\r\n </div>\r\n</div>\r\n\r\n'),(22,'Content blocks (1-6)','hrzg\\widget\\widgets\\TwigTemplate','{\n \"title\": \"Content blocks Widget\",\n \"type\": \"object\",\n \"required\": [\n \"skin\"\n ],\n \"properties\": {\n \"skin\": {\n \"type\": \"string\",\n \"title\": \"Widget Style\",\n \"enum\": [\n \"default\",\n \"inverse\",\n \"default text-center\",\n \"inverse text-center\"\n ]\n },\n \"ckbox\": {\n \"title\": \"Container on\\/off\",\n \"type\": \"boolean\",\n \"format\": \"checkbox\",\n \"default\": true\n },\n \"blocks\": {\n \"type\": \"array\",\n \"title\": \"Contentblock\",\n \"format\": \"tabs\",\n \"items\": {\n \"type\": \"object\",\n \"title\": \"Contentblock\",\n \"properties\": {\n \"image_url\": {\n \"type\": \"string\",\n \"title\": \"Image URL\",\n \"default\": \"\\/_phd\\/test.png\"\n },\n \"subline\": {\n \"type\": \"string\",\n \"title\": \"Subline\",\n \"default\": \"Fames ac turpis egestas\"\n },\n \"headline\": {\n \"type\": \"string\",\n \"title\": \"Headline\",\n \"default\": \"Senectus et netus\"\n },\n \"text_html\": {\n \"type\": \"string\",\n \"title\": \"Text\",\n \"default\": \"<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.<\\/p>\",\n \"format\": \"html\",\n \"options\": {\n \"wysiwyg\": true\n }\n },\n \"button_text\": {\n \"type\": \"string\",\n \"title\": \"Button Text\",\n \"default\": \"Button\"\n },\n \"button_url\": {\n \"type\": \"string\",\n \"title\": \"Link \\/ Mailto \\/ Anchor\",\n \"description\": \"Link: www.url.com \\/ Mailto: mailto:mail@info.com \\/ Anchor: #widget-NameID\"\n },\n \"link_target\": {\n \"type\": \"boolean\",\n \"format\": \"checkbox\",\n \"title\": \"Open in new window\"\n }\n }\n }\n }\n }\n}','<div class=\"widget-content blocks bg-{{ skin }}\">\r\n {% if ckbox == true %}\r\n <div class=\"container\">\r\n {% else %}\r\n <div class=\"no-container\">\r\n {% endif %}\r\n <div class=\"row\">\r\n {% for block in blocks %}\r\n {% if blocks|length == 4 %}\r\n <div class=\"col-lg-3 col-sm-6 col-md-6\">\r\n {% elseif blocks|length == 6 %}\r\n <div class=\"col-lg-2 col-sm-4 col-md-2\">\r\n {% else %} \r\n <div class=\"col-sm-{{ 12 / blocks|length }}\">\r\n {% endif %}\r\n <div class=\"img-responsive\">\r\n <img src=\"{{ block.image_url }}\" class=\"img-responsive\"/>\r\n </div>\r\n <div class=\"blocks-headline\">\r\n <h4>{{ block.subline}}</h4>\r\n <h3>{{ block.headline}}</h3>\r\n </div>\r\n {{ block.text_html|raw }}\r\n {% if (block.button_text) != \"\" %}\r\n <p>\r\n <a href=\"{{block.button_url}}\" class=\"btn btn-primary\">{{block.button_text}}</a>\r\n </p>\r\n {% endif %}\r\n </div>\r\n {% if (blocks|length == 4) and ((loop.index % 2) == 0) %}\r\n <div class=\"clearfix visible-sm-block visible-md-block\"></div>\r\n {% endif %}\r\n {% endfor %}\r\n </div>\r\n </div>\r\n</div>\r\n');
/*!40000 ALTER TABLE `app_hrzg_widget_template` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_html`
--
LOCK TABLES `app_html` WRITE; TRUNCATE TABLE `app_html`;
/*!40000 ALTER TABLE `app_html` DISABLE KEYS */;
/*!40000 ALTER TABLE `app_html` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_language`
--
LOCK TABLES `app_language` WRITE; TRUNCATE TABLE `app_language`;
/*!40000 ALTER TABLE `app_language` DISABLE KEYS */;
INSERT INTO `app_language` VALUES ('af-ZA','af','za','Afrikaans','Afrikaans',0),('ar-AR','ar','ar','‏العربية‏','Arabic',0),('az-AZ','az','az','Azərbaycan dili','Azerbaijani',0),('be-BY','be','by','Беларуская','Belarusian',0),('bg-BG','bg','bg','Български','Bulgarian',0),('bn-IN','bn','in','বাংলা','Bengali',0),('bs-BA','bs','ba','Bosanski','Bosnian',0),('ca-ES','ca','es','Català','Catalan',0),('cs-CZ','cs','cz','Čeština','Czech',0),('cy-GB','cy','gb','Cymraeg','Welsh',0),('da-DK','da','dk','Dansk','Danish',0),('de-DE','de','de','Deutsch','German',0),('el-GR','el','gr','Ελληνικά','Greek',0),('en-GB','en','gb','English (UK)','English (UK)',1),('en-PI','en','pi','English (Pirate)','English (Pirate)',0),('en-UD','en','ud','English (Upside Down)','English (Upside Down)',0),('en-US','en','us','English (US)','English (US)',1),('eo-EO','eo','eo','Esperanto','Esperanto',0),('es-ES','es','es','Español (España)','Spanish (Spain)',0),('es-LA','es','la','Español','Spanish',0),('et-EE','et','ee','Eesti','Estonian',0),('eu-ES','eu','es','Euskara','Basque',0),('fa-IR','fa','ir','‏فارسی‏','Persian',0),('fb-LT','fb','lt','Leet Speak','Leet Speak',0),('fi-FI','fi','fi','Suomi','Finnish',0),('fo-FO','fo','fo','Føroyskt','Faroese',0),('fr-CA','fr','ca','Français (Canada)','French (Canada)',0),('fr-FR','fr','fr','Français (France)','French (France)',0),('fy-NL','fy','nl','Frysk','Frisian',0),('ga-IE','ga','ie','Gaeilge','Irish',0),('gl-ES','gl','es','Galego','Galician',0),('he-IL','he','il','‏עברית‏','Hebrew',0),('hi-IN','hi','in','हिन्दी','Hindi',0),('hr-HR','hr','hr','Hrvatski','Croatian',0),('hu-HU','hu','hu','Magyar','Hungarian',0),('hy-AM','hy','am','Հայերեն','Armenian',0),('id-ID','id','id','Bahasa Indonesia','Indonesian',0),('is-IS','is','is','Íslenska','Icelandic',0),('it-IT','it','it','Italiano','Italian',0),('ja-JP','ja','jp','日本語','Japanese',0),('ka-GE','ka','ge','ქართული','Georgian',0),('km-KH','km','kh','ភាសាខ្មែរ','Khmer',0),('ko-KR','ko','kr','한국어','Korean',0),('ku-TR','ku','tr','Kurdî','Kurdish',0),('la-VA','la','va','lingua latina','Latin',0),('lt-LT','lt','lt','Lietuvių','Lithuanian',0),('lv-LV','lv','lv','Latviešu','Latvian',0),('mk-MK','mk','mk','Македонски','Macedonian',0),('ml-IN','ml','in','മലയാളം','Malayalam',0),('ms-MY','ms','my','Bahasa Melayu','Malay',0),('nb-NO','nb','no','Norsk (bokmål)','Norwegian (bokmal)',0),('ne-NP','ne','np','नेपाली','Nepali',0),('nl-NL','nl','nl','Nederlands','Dutch',0),('nn-NO','nn','no','Norsk (nynorsk)','Norwegian (nynorsk)',0),('pa-IN','pa','in','ਪੰਜਾਬੀ','Punjabi',0),('pl-PL','pl','pl','Polski','Polish',0),('ps-AF','ps','af','‏پښتو‏','Pashto',0),('pt-BR','pt','br','Português (Brasil)','Portuguese (Brazil)',0),('pt-PT','pt','pt','Português (Portugal)','Portuguese (Portugal)',0),('ro-RO','ro','ro','Română','Romanian',0),('ru-RU','ru','ru','Русский','Russian',0),('sk-SK','sk','sk','Slovenčina','Slovak',0),('sl-SI','sl','si','Slovenščina','Slovenian',0),('sq-AL','sq','al','Shqip','Albanian',0),('sr-RS','sr','rs','Српски','Serbian',0),('sv-SE','sv','se','Svenska','Swedish',0),('sw-KE','sw','ke','Kiswahili','Swahili',0),('ta-IN','ta','in','தமிழ்','Tamil',0),('te-IN','te','in','తెలుగు','Telugu',0),('th-TH','th','th','ภาษาไทย','Thai',0),('tl-PH','tl','ph','Filipino','Filipino',0),('tr-TR','tr','tr','Türkçe','Turkish',0),('uk-UA','uk','ua','Українська','Ukrainian',0),('vi-VN','vi','vn','Tiếng Việt','Vietnamese',0),('xx-XX','xx','xx','Fejlesztő','Developer',0),('zh-CN','zh','cn','中文(简体)','Simplified Chinese (China)',0),('zh-HK','zh','hk','中文(香港)','Traditional Chinese (Hong Kong)',0),('zh-TW','zh','tw','中文(台灣)','Traditional Chinese (Taiwan)',0);
/*!40000 ALTER TABLE `app_language` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_language_source`
--
LOCK TABLES `app_language_source` WRITE; TRUNCATE TABLE `app_language_source`;
/*!40000 ALTER TABLE `app_language_source` DISABLE KEYS */;
/*!40000 ALTER TABLE `app_language_source` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_language_translate`
--
LOCK TABLES `app_language_translate` WRITE; TRUNCATE TABLE `app_language_translate`;
/*!40000 ALTER TABLE `app_language_translate` DISABLE KEYS */;
/*!40000 ALTER TABLE `app_language_translate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_less`
--
LOCK TABLES `app_less` WRITE; TRUNCATE TABLE `app_less`;
/*!40000 ALTER TABLE `app_less` DISABLE KEYS */;
INSERT INTO `app_less` VALUES (14,'doro-main','// Main LESS file\r\n\r\n// Theme\r\n// see http://bootswatch.com\r\n//\r\n// available themes: \r\n// cerulean,cosmo,cyborg,darkly,flatly,journal,lumen,paper,readable,\r\n// sandstone,simplex,slate,spacelab,superhero,united,yeti\r\n@theme: \'united\';\r\n\r\n// Framework and base theme\r\n@import \"/app/vendor/bower/bootstrap/less/bootstrap.less\";\r\n@import \"/app/vendor/thomaspark/bootswatch/@{theme}/variables.less\";\r\n@import \"/app/vendor/thomaspark/bootswatch/@{theme}/bootswatch.less\";\r\n\r\n// Theme customizations\r\n@icon-font-path: \'//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/\';\r\n@navbar-border-radius: 0px;\r\n@navbar-margin-bottom: 0px;\r\n@import \"open-color\";\r\n//@body-bg: #ddd;\r\n// @brand-primary: @oc-red-4;\r\n\r\n// Style for widget templates\r\n@import \"doro-widgets\";\r\n\r\n.alert{\r\n margin-bottom: 0px;\r\n}\r\n\r\n// h1 {\r\n// font-size: 50px;\r\n// }\r\n'),(18,'doro-widgets','.widget-content {\r\n padding: 3em 0;\r\n &.bg-inverse {\r\n background: @well-bg;\r\n }\r\n &.jumbotron {\r\n color: white;\r\n background: @brand-primary;\r\n background-size: cover;\r\n padding: 300px 0;\r\n margin-bottom: 0px;\r\n @media (max-width: @screen-xs-max) {\r\n padding: 90px 0;\r\n h1 {\r\n font-size: 30px;\r\n } \r\n }\r\n }\r\n &.content {\r\n line-height: 1.5em;\r\n }\r\n &.blocks {\r\n .icon {\r\n font-size: 6em;\r\n }\r\n [class^=\"col-\"] {\r\n margin-bottom: 3em;\r\n }\r\n }\r\n .no-container {\r\n padding: 0 2em;\r\n }\r\n}\r\n\r\n.text-on-picture {\r\n color: white;\r\n text-shadow: 0 0 1px rgba(0,0,0,0.05),0 1px 2px rgba(0,0,0,0.3),\r\n}\r\n \r\n.footer {\r\n .footer-logo {\r\n max-height: 30px;\r\n margin-right: 50px;\r\n }\r\n .footer-logo-herzog {\r\n height: 1.6em; \r\n }\r\n .text-right-right {\r\n float: left; \r\n }\r\n}\r\n\r\n\r\n.video-front{\r\n text-align: center;\r\n z-index: 2;\r\n position: absolute;\r\n top:40%;\r\n width: 100%;\r\n h1{\r\n @media (max-width: @screen-xs-max) {\r\n font-size: 30px;\r\n }\r\n }\r\n \r\n}\r\n.video-overlay{\r\n position: absolute;\r\n top: 0;\r\n height: 100%;\r\n width: 100%;\r\n z-index: 1;\r\n}\r\n\r\n.embed-responsive{\r\n height: 100%;\r\n}\r\n\r\n.slider-image {\r\n .item {\r\n max-height: 500px;\r\n }\r\n .carousel-caption{\r\n padding-bottom: 50px;\r\n }\r\n .carousel-indicators {\r\n li {\r\n background-color: rgba(255,255,255,0.3);\r\n border: 0px;\r\n height: 15px;\r\n width: 15px;\r\n margin: 0px;\r\n } \r\n .active {\r\n background-color: rgba(255,255,255,1);\r\n height: 15px;\r\n width: 15px;\r\n }\r\n }\r\n}\r\n.separator-image {\r\n h2 {\r\n padding: 100px 0;\r\n }\r\n}\r\n\r\n@media (max-width: 400px) {\r\n .separator-image {\r\n h2 {\r\n padding: 60px 0;\r\n }\r\n } \r\n .list-inline {\r\n margin-bottom: 10px;\r\n }\r\n}'),(19,'open-color','// see https://github.com/yeun/open-color\r\n//\r\n// ???? ???? ???? ???? ????\r\n// v 1.4.0\r\n//\r\n// ???????????????????????????????????\r\n\r\n\r\n// General\r\n// ???????????????????????????????????\r\n\r\n@oc-white: #ffffff;\r\n@oc-black: #000000;\r\n\r\n\r\n// Gray\r\n// ???????????????????????????????????\r\n\r\n@oc-gray-list: #f8f9fa, #f1f3f5, #e9ecef, #dee2e6, #ced4da, #adb5bd, #868e96, #495057, #343a40, #212529;\r\n\r\n@oc-gray-0: extract(@oc-gray-list, 1);\r\n@oc-gray-1: extract(@oc-gray-list, 2);\r\n@oc-gray-2: extract(@oc-gray-list, 3);\r\n@oc-gray-3: extract(@oc-gray-list, 4);\r\n@oc-gray-4: extract(@oc-gray-list, 5);\r\n@oc-gray-5: extract(@oc-gray-list, 6);\r\n@oc-gray-6: extract(@oc-gray-list, 7);\r\n@oc-gray-7: extract(@oc-gray-list, 8);\r\n@oc-gray-8: extract(@oc-gray-list, 9);\r\n@oc-gray-9: extract(@oc-gray-list, 10);\r\n\r\n\r\n// Red\r\n// ???????????????????????????????????\r\n\r\n@oc-red-list: #fff5f5, #ffe3e3, #ffc9c9, #ffa8a8, #ff8787, #ff6b6b, #fa5252, #f03e3e, #e03131, #c92a2a;\r\n\r\n@oc-red-0: extract(@oc-red-list, 1);\r\n@oc-red-1: extract(@oc-red-list, 2);\r\n@oc-red-2: extract(@oc-red-list, 3);\r\n@oc-red-3: extract(@oc-red-list, 4);\r\n@oc-red-4: extract(@oc-red-list, 5);\r\n@oc-red-5: extract(@oc-red-list, 6);\r\n@oc-red-6: extract(@oc-red-list, 7);\r\n@oc-red-7: extract(@oc-red-list, 8);\r\n@oc-red-8: extract(@oc-red-list, 9);\r\n@oc-red-9: extract(@oc-red-list, 10);\r\n\r\n\r\n// Pink\r\n// ???????????????????????????????????\r\n\r\n@oc-pink-list: #fff0f6, #ffdeeb, #fcc2d7, #faa2c1, #f783ac, #f06595, #e64980, #d6336c, #c2255c, #a61e4d;\r\n\r\n@oc-pink-0: extract(@oc-pink-list, 1);\r\n@oc-pink-1: extract(@oc-pink-list, 2);\r\n@oc-pink-2: extract(@oc-pink-list, 3);\r\n@oc-pink-3: extract(@oc-pink-list, 4);\r\n@oc-pink-4: extract(@oc-pink-list, 5);\r\n@oc-pink-5: extract(@oc-pink-list, 6);\r\n@oc-pink-6: extract(@oc-pink-list, 7);\r\n@oc-pink-7: extract(@oc-pink-list, 8);\r\n@oc-pink-8: extract(@oc-pink-list, 9);\r\n@oc-pink-9: extract(@oc-pink-list, 10);\r\n\r\n\r\n// Grape\r\n// ???????????????????????????????????\r\n\r\n@oc-grape-list: #f8f0fc, #f3d9fa, #eebefa, #e599f7, #da77f2, #cc5de8, #be4bdb, #ae3ec9, #9c36b5, #862e9c;\r\n\r\n@oc-grape-0: extract(@oc-grape-list, 1);\r\n@oc-grape-1: extract(@oc-grape-list, 2);\r\n@oc-grape-2: extract(@oc-grape-list, 3);\r\n@oc-grape-3: extract(@oc-grape-list, 4);\r\n@oc-grape-4: extract(@oc-grape-list, 5);\r\n@oc-grape-5: extract(@oc-grape-list, 6);\r\n@oc-grape-6: extract(@oc-grape-list, 7);\r\n@oc-grape-7: extract(@oc-grape-list, 8);\r\n@oc-grape-8: extract(@oc-grape-list, 9);\r\n@oc-grape-9: extract(@oc-grape-list, 10);\r\n\r\n\r\n// Violet\r\n// ???????????????????????????????????\r\n\r\n@oc-violet-list: #f3f0ff, #e5dbff, #d0bfff, #b197fc, #9775fa, #845ef7, #7950f2, #7048e8, #6741d9, #5f3dc4;\r\n\r\n@oc-violet-0: extract(@oc-violet-list, 1);\r\n@oc-violet-1: extract(@oc-violet-list, 2);\r\n@oc-violet-2: extract(@oc-violet-list, 3);\r\n@oc-violet-3: extract(@oc-violet-list, 4);\r\n@oc-violet-4: extract(@oc-violet-list, 5);\r\n@oc-violet-5: extract(@oc-violet-list, 6);\r\n@oc-violet-6: extract(@oc-violet-list, 7);\r\n@oc-violet-7: extract(@oc-violet-list, 8);\r\n@oc-violet-8: extract(@oc-violet-list, 9);\r\n@oc-violet-9: extract(@oc-violet-list, 10);\r\n\r\n\r\n// Indigo\r\n// ???????????????????????????????????\r\n\r\n@oc-indigo-list: #edf2ff, #dbe4ff, #bac8ff, #91a7ff, #748ffc, #5c7cfa, #4c6ef5, #4263eb, #3b5bdb, #364fc7;\r\n\r\n@oc-indigo-0: extract(@oc-indigo-list, 1);\r\n@oc-indigo-1: extract(@oc-indigo-list, 2);\r\n@oc-indigo-2: extract(@oc-indigo-list, 3);\r\n@oc-indigo-3: extract(@oc-indigo-list, 4);\r\n@oc-indigo-4: extract(@oc-indigo-list, 5);\r\n@oc-indigo-5: extract(@oc-indigo-list, 6);\r\n@oc-indigo-6: extract(@oc-indigo-list, 7);\r\n@oc-indigo-7: extract(@oc-indigo-list, 8);\r\n@oc-indigo-8: extract(@oc-indigo-list, 9);\r\n@oc-indigo-9: extract(@oc-indigo-list, 10);\r\n\r\n\r\n// Blue\r\n// ???????????????????????????????????\r\n\r\n@oc-blue-list: #e8f7ff, #ccedff, #a3daff, #72c3fc, #4dadf7, #329af0, #228ae6, #1c7cd6, #1b6ec2, #1862ab;\r\n\r\n@oc-blue-0: extract(@oc-blue-list, 1);\r\n@oc-blue-1: extract(@oc-blue-list, 2);\r\n@oc-blue-2: extract(@oc-blue-list, 3);\r\n@oc-blue-3: extract(@oc-blue-list, 4);\r\n@oc-blue-4: extract(@oc-blue-list, 5);\r\n@oc-blue-5: extract(@oc-blue-list, 6);\r\n@oc-blue-6: extract(@oc-blue-list, 7);\r\n@oc-blue-7: extract(@oc-blue-list, 8);\r\n@oc-blue-8: extract(@oc-blue-list, 9);\r\n@oc-blue-9: extract(@oc-blue-list, 10);\r\n\r\n\r\n// Cyan\r\n// ???????????????????????????????????\r\n\r\n@oc-cyan-list: #e3fafc, #c5f6fa, #99e9f2, #66d9e8, #3bc9db, #22b8cf, #15aabf, #1098ad, #0c8599, #0b7285;\r\n\r\n@oc-cyan-0: extract(@oc-cyan-list, 1);\r\n@oc-cyan-1: extract(@oc-cyan-list, 2);\r\n@oc-cyan-2: extract(@oc-cyan-list, 3);\r\n@oc-cyan-3: extract(@oc-cyan-list, 4);\r\n@oc-cyan-4: extract(@oc-cyan-list, 5);\r\n@oc-cyan-5: extract(@oc-cyan-list, 6);\r\n@oc-cyan-6: extract(@oc-cyan-list, 7);\r\n@oc-cyan-7: extract(@oc-cyan-list, 8);\r\n@oc-cyan-8: extract(@oc-cyan-list, 9);\r\n@oc-cyan-9: extract(@oc-cyan-list, 10);\r\n\r\n\r\n// Teal\r\n// ???????????????????????????????????\r\n\r\n@oc-teal-list: #e6fcf5, #c3fae8, #96f2d7, #63e6be, #38d9a9, #20c997, #12b886, #0ca678, #099268, #087f5b;\r\n\r\n@oc-teal-0: extract(@oc-teal-list, 1);\r\n@oc-teal-1: extract(@oc-teal-list, 2);\r\n@oc-teal-2: extract(@oc-teal-list, 3);\r\n@oc-teal-3: extract(@oc-teal-list, 4);\r\n@oc-teal-4: extract(@oc-teal-list, 5);\r\n@oc-teal-5: extract(@oc-teal-list, 6);\r\n@oc-teal-6: extract(@oc-teal-list, 7);\r\n@oc-teal-7: extract(@oc-teal-list, 8);\r\n@oc-teal-8: extract(@oc-teal-list, 9);\r\n@oc-teal-9: extract(@oc-teal-list, 10);\r\n\r\n\r\n// Green\r\n// ???????????????????????????????????\r\n\r\n@oc-green-list: #ebfbee, #d3f9d8, #b2f2bb, #8ce99a, #69db7c, #51cf66, #40c057, #37b24d, #2f9e44, #2b8a3e;\r\n\r\n@oc-green-0: extract(@oc-green-list, 1);\r\n@oc-green-1: extract(@oc-green-list, 2);\r\n@oc-green-2: extract(@oc-green-list, 3);\r\n@oc-green-3: extract(@oc-green-list, 4);\r\n@oc-green-4: extract(@oc-green-list, 5);\r\n@oc-green-5: extract(@oc-green-list, 6);\r\n@oc-green-6: extract(@oc-green-list, 7);\r\n@oc-green-7: extract(@oc-green-list, 8);\r\n@oc-green-8: extract(@oc-green-list, 9);\r\n@oc-green-9: extract(@oc-green-list, 10);\r\n\r\n\r\n// Lime\r\n// ???????????????????????????????????\r\n\r\n@oc-lime-list: #f4fce3, #e9fac8, #d8f5a2, #c0eb75, #a9e34b, #94d82d, #82c91e, #74b816, #66a80f, #5c940d;\r\n\r\n@oc-lime-0: extract(@oc-lime-list, 1);\r\n@oc-lime-1: extract(@oc-lime-list, 2);\r\n@oc-lime-2: extract(@oc-lime-list, 3);\r\n@oc-lime-3: extract(@oc-lime-list, 4);\r\n@oc-lime-4: extract(@oc-lime-list, 5);\r\n@oc-lime-5: extract(@oc-lime-list, 6);\r\n@oc-lime-6: extract(@oc-lime-list, 7);\r\n@oc-lime-7: extract(@oc-lime-list, 8);\r\n@oc-lime-8: extract(@oc-lime-list, 9);\r\n@oc-lime-9: extract(@oc-lime-list, 10);\r\n\r\n\r\n// Yellow\r\n// ???????????????????????????????????\r\n\r\n@oc-yellow-list: #fff9db, #fff3bf, #ffec99, #ffe066, #ffd43b, #fcc419, #fab005, #f59f00, #f08c00, #e67700;\r\n\r\n@oc-yellow-0: extract(@oc-yellow-list, 1);\r\n@oc-yellow-1: extract(@oc-yellow-list, 2);\r\n@oc-yellow-2: extract(@oc-yellow-list, 3);\r\n@oc-yellow-3: extract(@oc-yellow-list, 4);\r\n@oc-yellow-4: extract(@oc-yellow-list, 5);\r\n@oc-yellow-5: extract(@oc-yellow-list, 6);\r\n@oc-yellow-6: extract(@oc-yellow-list, 7);\r\n@oc-yellow-7: extract(@oc-yellow-list, 8);\r\n@oc-yellow-8: extract(@oc-yellow-list, 9);\r\n@oc-yellow-9: extract(@oc-yellow-list, 10);\r\n\r\n\r\n// Orange\r\n// ???????????????????????????????????\r\n\r\n@oc-orange-list: #fff4e6, #ffe8cc, #ffd8a8, #ffc078, #ffa94d, #ff922b, #fd7e14, #f76707, #e8590c, #d9480f;\r\n\r\n@oc-orange-0: extract(@oc-orange-list, 1);\r\n@oc-orange-1: extract(@oc-orange-list, 2);\r\n@oc-orange-2: extract(@oc-orange-list, 3);\r\n@oc-orange-3: extract(@oc-orange-list, 4);\r\n@oc-orange-4: extract(@oc-orange-list, 5);\r\n@oc-orange-5: extract(@oc-orange-list, 6);\r\n@oc-orange-6: extract(@oc-orange-list, 7);\r\n@oc-orange-7: extract(@oc-orange-list, 8);\r\n@oc-orange-8: extract(@oc-orange-list, 9);\r\n@oc-orange-9: extract(@oc-orange-list, 10);');
/*!40000 ALTER TABLE `app_less` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_settings`
--
LOCK TABLES `app_settings` WRITE; TRUNCATE TABLE `app_settings`;
/*!40000 ALTER TABLE `app_settings` DISABLE KEYS */;
INSERT INTO `app_settings` VALUES (1,'string','pages','availableGlobalRoutes','/backend/default/index\r\n/settings/default\r\n/help\r\n/guide\r\n/pages/default\r\n/moxiemanager/default\r\n/crud\r\n/filefly\r\n/filefly/test\r\n/prototype\r\n/prototype/html\r\n/prototype/less\r\n/prototype/twig\r\n/widgets\r\n/widgets/crud/widget\r\n/widgets/crud/widget-template\r\n/translatemanager/language\r\n/user/admin\r\n/rbac/role\r\n/rbac/permission\r\n/redirects\r\n/resque\r\n/audit\r\n/user/settings\r\n/user/profile',1,'2016-05-13 22:27:14','2016-12-15 18:07:05'),(2,'string','pages','availableRoutes','/pages/default/page',1,'2016-05-15 22:09:50','2016-07-20 11:34:02'),(3,'string','app.assets','registerPrototypeAssetKey','doro',1,'2016-05-25 14:50:40','2016-11-10 04:18:04'),(4,'object','widgets','availablePhpClasses','{\"hrzg\\\\widget\\\\widgets\\\\TwigTemplate\": \"Twig layout\"}',1,'2016-05-25 23:14:09',NULL),(5,'string','help','markdownUrl','https://git.hrzg.de/dmstr/docs-phd5/raw/master/help',1,'2016-06-29 23:21:21','2016-08-03 19:22:08'),(6,'string','help','forkUrl','https://git.hrzg.de/dmstr/docs-phd5/edit/master/help',1,'2016-06-29 23:22:26','2016-08-03 19:22:18'),(7,'string','help','defaultIndexFile','index.md',1,'2016-06-29 23:22:58','2016-08-03 16:45:46'),(8,'string','pages','availableViews','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php',1,'2016-07-20 02:38:22',NULL),(9,'string','guide','markdownUrl','https://git.hrzg.de/dmstr/docs-phd5/raw/master/guide',1,'2016-08-03 16:06:19','2016-08-03 19:22:40'),(10,'string','guide','defaultIndexFile','index.md',1,'2016-08-03 16:44:26','2016-08-03 16:45:30'),(11,'string','guide','forkUrl','https://git.hrzg.de/dmstr/docs-phd5/edit/master/guide',1,'2016-08-03 19:23:00','2016-08-03 19:23:22');
/*!40000 ALTER TABLE `app_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `app_twig`
--
LOCK TABLES `app_twig` WRITE; TRUNCATE TABLE `app_twig`;
/*!40000 ALTER TABLE `app_twig` DISABLE KEYS */;
INSERT INTO `app_twig` VALUES (4,'de/pages/default/page/1004','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'main\'}) }}'),(5,'de/pages/default/page/1011','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'main\'}) }}\r\n'),(7,'de/site/index','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'top\'}) }}\r\n{{ cell_widget({id: \'main\'}) }}'),(8,'de/pages/default/page/1006','{{ use (\'hrzg/widget/widgets\') }}\r\n\r\n{{ widget_container_widget({id: \'main\'}) }}\r\n'),(11,'de/pages/default/page/1021','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ widget_container_widget({id: \'header\'}) }}\r\n<div class=\"container\">\r\n {{ widget_container_widget({id: \'container\'}) }}\r\n</div>'),(12,'en/site/index','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'main\'}) }}'),(14,'en/prototype/default/test','{{ use (\'hrzg/filemanager/widgets\') }}\r\n\r\n{{ file_manager_widget_widget({\r\n \'handlerUrl\': \'/en/filefly/api\'\r\n}) }}'),(15,'en/pages/default/page/1019','{{ use (\'hrzg/widget/widgets\') }}\r\n\r\n{{ cell_widget({id: \'header\'}) }}\r\n\r\n<div class=\"container\">\r\n \r\n <div class=\"row\">\r\n <div class=\"col-sm-6\">{{ cell_widget({id: \'left\'}) }}</div>\r\n <div class=\"col-sm-6\">{{ cell_widget({id: \'right\'}) }}</div>\r\n </div>\r\n\r\n</div>\r\n'),(16,'ru/site/index','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'main\'}) }}'),(17,'en/pages/default/page/1002','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'main\'}) }}\r\n'),(19,'de/pages/default/page/1043','{{ use (\'hrzg/widget/widgets\') }}\r\n{{ cell_widget({id: \'main\'}) }}'),(20,'en/prototype/less/index#main-top','<div class=\"box\">\r\n <div class=\"box-body\">\r\n <p>\r\n <a href=\"/settings\" target=\"_blank\" class=\"btn btn-info\">\r\n Settings\r\n </a>\r\n </p>\r\n </div>\r\n</div>'),(21,'en/prototype/twig/update#main-top','<p>\r\n <a href=\"https://github.com/yiisoft/yii2-twig/tree/master/docs/guide\" target=\"_blank\" class=\"btn btn-info\">\r\n Twig Syntax\r\n </a>\r\n</p>');
/*!40000 ALTER TABLE `app_twig` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `dmstr_page`
--
LOCK TABLES `dmstr_page` WRITE; TRUNCATE TABLE `dmstr_page`;
/*!40000 ALTER TABLE `dmstr_page` DISABLE KEYS */;
INSERT INTO `dmstr_page` VALUES (100,1000,2,3,1,'','Dashboard','dashboard',NULL,'/backend/default/index','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-dashboard',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 18:41:09','2016-05-16 09:40:42'),(101,1000,4,5,1,'','Pages','pages',NULL,'/pages/default','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-list-alt',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-13 11:16:16','2016-07-28 03:25:43'),(102,1000,14,15,1,'','LESS Themes','prototype-less',NULL,'/prototype/less','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-pencil-square',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 18:51:34','2016-09-30 03:18:36'),(103,1000,27,28,2,'','Static HTML','prototype-html',NULL,'/prototype/html','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-edit',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-13 11:16:19','2016-07-20 11:37:26'),(104,1000,16,17,1,'','Translations','translatemanager',NULL,'/translatemanager/language','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-globe',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 18:16:16','2016-05-16 09:44:40'),(105,1000,20,21,1,'','Users &amp; Roles','user',NULL,'/user/admin','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-user',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 18:16:16','2016-11-03 01:06:27'),(106,1000,33,34,2,'','Developer Guide','guide',NULL,'/guide','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-bookmark',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-08-03 16:01:19','2016-08-03 16:02:33'),(107,1000,12,13,1,'','Twig Layouts','twig',NULL,'/prototype/twig','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-newspaper-o',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-16 00:34:43','2016-09-30 03:18:27'),(108,1000,18,19,1,'','Application Settings','settings',NULL,'/settings/default','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-cogs',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-13 11:16:14','2016-11-03 01:05:43'),(109,1000,24,35,1,'','Developer','developer',NULL,'','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-server',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-07-20 11:36:20','2016-09-30 03:23:09'),(110,1000,31,32,2,'','Jobs','jobs',NULL,'/resque','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-cogs',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-16 09:54:07','2016-05-16 09:54:07'),(111,1000,25,26,2,'','Redirects','redirects',NULL,'/redirects','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-arrows-alt',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-16 09:52:36','2016-05-16 09:52:36'),(112,1000,6,7,1,'','Widget Content','widgets-content',NULL,'/widgets/crud/widget','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-file-text',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-25 20:34:20','2016-09-30 03:20:31'),(113,1000,8,9,1,'','Widget Templates','widget-templates',NULL,'/widgets/crud/widget-template','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-file-code-o',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-25 20:35:04','2016-09-30 03:18:17'),(114,1000,29,30,2,'','Audit','audit',NULL,'/audit','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-search-plus',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-16 09:51:22','2016-05-16 09:51:22'),(115,1000,10,11,1,'','Media Files','moxiemanager',NULL,'/filefly/test','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-file-image-o',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-25 22:29:42','2016-12-15 18:07:22'),(116,1000,22,23,1,'','Help','help',NULL,'/help','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'fa fa-question',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-06-29 23:25:33','2016-09-30 03:24:07'),(1000,1000,1,36,0,'','Backend','backend',NULL,'/backend','','','','{}',NULL,NULL,'*',NULL,NULL,NULL,'',1,1,0,0,0,1,1,1,1,1,1,1,0,'2016-05-15 18:16:16','2016-05-13 11:09:59'),(1001,1001,1,8,0,'doros zuhause','root_en','root',NULL,'/pages/default/page','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php','doro, home, dorolein','das ist doro, doro ist eine ganz tolle webseite','{}',NULL,NULL,'en',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 22:32:46','2016-11-25 14:45:12'),(1003,1003,1,4,0,'home is home','root_de','root',NULL,'','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php','root root root','das ist testroot','{}',NULL,NULL,'de',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 22:54:23','2016-12-06 09:00:44'),(1004,1003,2,3,1,'Titel \"A\"','Testseite A','test-a',NULL,'/pages/default/page','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php','testseite, a, test, test','dies ist eine testseite','{}',NULL,NULL,'de',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-05-15 22:54:36','2016-12-06 11:14:37'),(1019,1001,3,4,2,'','Test B','test-b',NULL,'/pages/default/page','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php','','','{}',NULL,NULL,'en',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-06-28 14:04:24','2016-07-20 11:53:50'),(1035,1001,2,7,1,'','Folder','folder-1',NULL,'','','','','{}',NULL,NULL,'en',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-08-01 23:18:32','2016-08-01 23:18:32'),(1044,1044,1,2,0,'','root_ru','root',NULL,'','','','','{}',NULL,NULL,'ru',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-11-08 15:09:28','2016-11-08 15:09:28'),(1045,1001,5,6,2,'','Test C','test-c',NULL,'/pages/default/page','@vendor/dmstr/yii2-prototype-module/src/views/render/twig.php','','','{}',NULL,NULL,'en',NULL,NULL,NULL,'',1,1,0,0,0,1,0,1,1,1,1,1,0,'2016-11-10 04:03:27','2016-11-10 04:03:27');
/*!40000 ALTER TABLE `dmstr_page` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping data for table `dmstr_redirect`
--
LOCK TABLES `dmstr_redirect` WRITE; TRUNCATE TABLE `dmstr_redirect`;
/*!40000 ALTER TABLE `dmstr_redirect` DISABLE KEYS */;
INSERT INTO `dmstr_redirect` VALUES (1,'path','','','/redirect-test-en','/en/site/index',301,'2016-08-02 15:22:49','2016-08-02 18:32:31'),(2,'domain','http://example.com','http://www.example.com','','',301,'2016-08-02 18:27:40','2016-12-15 18:18:31');
/*!40000 ALTER TABLE `dmstr_redirect` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2016-12-15 18:37:48
\ No newline at end of file
......@@ -28,7 +28,7 @@ class E2eTester extends \Codeception\Actor
$this->fillField('input[name="login-form[login]"]', $username);
$this->fillField('input[name="login-form[password]"]', $password);
$this->click('#login-form button');
$this->waitForElementNotVisible('#login-form', 5);
$this->waitForElementNotVisible('#login-form', 10);
}
public function dontSeeHorizontalScrollbars(){
......
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Acceptance extends \Codeception\Module
{
}
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Cli extends \Codeception\Module
{
}
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class E2e extends \Codeception\Module
{
}
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Functional extends \Codeception\Module
{
}
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Unit extends \Codeception\Module
{
}
class_name: E2eTester
modules:
enabled:
#- \Helper\E2e
- \Helper\E2e
- WebDriver
- Asserts
config:
WebDriver:
browser: firefox
host: firefox
port: 4444
window_size: 1024x768
restart: true
url: http://web:80/
env:
firefox:
modules:
config:
WebDriver:
browser: firefox
port: 4444
host: firefox
# Can be configured as Docker selenium container
chrome:
modules:
config:
WebDriver:
browser: chrome
host: chrome
# Can be configured from modern.ie and selenium java standalone driver
ie:
modules:
config:
WebDriver:
browser: 'internet explorer'
host: 192.168.99.1
port: 14444
window_size: 1024x768
restart: true
url: http://192.168.99.1:32779/
<?php
// @group mandatory
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that access control works');
$routesWithAccessControl = [
'/backend',
'/backend/default/view-config',
'/prototype',
'/prototype/html',
'/prototype/less',
'/prototype/less/create',
'/settings',
'/settings/default/create',
'/translatemanager',
'/rbac',
'/user',
'/pages'
];
foreach ($routesWithAccessControl AS $route) {
$I->amOnPage($route);
$I->canSeeCurrentUrlMatches('|user/login|');
}
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that access control UI works');
$I->amOnPage('/');
$I->dontSeeLink('/de/backend', '.nav');
$I->dontSee('','.glyphicon.glyphicon-cog');
$I->login('admin', 'admin1');
$I->see('','.glyphicon.glyphicon-cog');
<?php
// @group mandatory
$I = new FunctionalTester($scenario);
$I->wantTo('Click backend links');
$I->amGoingTo('start in the backend');
$I->login('admin', 'admin1');
$url = '/backend';
$I->amOnPage($url);
$links = $I->grabMultiple('section.content a[href^="/"]', 'href');
foreach ($links as $i => $url) {
switch ($url) {
case '/debug':
case '/treemanager':
continue 2;
break;
}
$I->amGoingTo('check '.$url);
$I->amOnPage($url);
$I->cantSeeElement('.site-error');
$I->cantSeeElement('.alert-warning .alert');
}
<?php
// @group mandatory
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that error page works');
$I->amOnPage('/_this_page_does_not_exist_');
$I->seeResponseCodeIs(404);
$I->see('Not Found');
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that language urls work');
$I->expect('a 404 error for a non-existant language');
$I->amOnPage('/xx');
$I->canSeeResponseCodeIs(404);
$I->expect('a redirect if no language is set');
$I->amOnPage('/');
$I->canSeeResponseCodeIs(200);
$I->amOnPage('/de');
$I->canSeeResponseCodeIs(200);
$I->amOnPage('/en');
$I->canSeeResponseCodeIs(200);
// Note: extended redirect testing needs to be run in acceptance tests
......@@ -29,7 +29,9 @@ $I->seeResponseCodeIs(200);
$I->expectTo('see backend elements');
$I->see('admin');
$I->see('Backend','h1');
$I->see('ID','h3');
$I->seeLink('guide');
$I->seeLink('help');
$I->see('Widget Content','h4');
$I->see('Pages','h4');
$I->see('Application Settings','h4');
$I->see('Auto-detected modules', 'h3');
$I->see('filefly','a.btn-app');
$I->see('redirects','a.btn-app');
<?php
// @group mandatory
$rootPath = realpath(__DIR__.'/../../..');
$I = new FunctionalTester($scenario);
$I->wantTo('check application versioning');
$I->dontSeeFileFound('version', $rootPath);
$I->seeFileFound('version', $rootPath.'/src');
$I->openFile($rootPath.'/src/version');
$I->dontSeeInThisFile('dev');
$I->dontSeeInThisFile('dirty');
<?php
$config = require(dirname(__DIR__) . '/_config/test.php');
new yii\web\Application($config);
<?php
use yii\codeception\TestCase;
class ControllerTest extends TestCase
class ControllerTest extends \Codeception\Test\Unit
{
public $appConfig = '@tests/codeception/_config/test.php';
/**
* @group mandatory
*/
......@@ -16,7 +11,8 @@ class ControllerTest extends TestCase
$this->assertNotNull(Yii::$app);
}
public function testController(){
public function testController()
{
$this->assertNotFalse(Yii::$app->createController('site/index'));
}
}
<?php
namespace tests\codeception\unit\models;
use dektrium\user\models\User;
class UserTest extends \Codeception\Test\Unit
{
public function testUserLoginLogout()
{
$identity = User::findIdentity(1);
$this->assertTrue(\Yii::$app->user->login($identity, 0));
$this->assertTrue(\Yii::$app->user->logout());
}
public function testNonExistingUserModel()
{
$identity = User::findIdentity(99999);
$this->assertNull($identity);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment