<?php
/**
* Module Prestashop PrettySlider
*
* @author    Prestacrea
* @copyright Prestacrea
* @license   See PDF documentation
* @website   http://www.prestacrea.com
*/

Configuration::updateValue('MPS_SCROLL', 'scroll');
Configuration::updateValue('MPS_EASING', 'swing');
Configuration::updateValue('MPS_SPEED', 1000);
Configuration::updateValue('MPS_AUTOSCROLL', 'true');
Configuration::updateValue('MPS_PAGINATION', 1);
Configuration::updateValue('MPS_ARROWS', 0);
Configuration::updateValue('MPS_RESPONSIVE', 1);
Configuration::updateValue('MPS_EDITORIAL', 1);
Configuration::updateValue('MPS_INLINE', 0);
Configuration::updateValue('MPS_HEIGHT', 280);
Configuration::updateValue('MPS_SLIDERWIDTH', 0);
Configuration::updateValue('MPS_FONTFAMILY', 'Arial');
Configuration::updateValue('MPS_FONTSIZE', 12);
Configuration::updateValue('MPS_MAINCOLOR', '888888');
Configuration::updateValue('MPS_ALTCOLOR', '444444');
Configuration::updateValue('MPS_FONTCOLOR', '666666');
Configuration::updateValue('MPS_SLIDERBGCOLOR', 'ffffff');
Configuration::updateValue('MPS_CAPTIONBGCOLOR', 'ffffff');
Configuration::updateValue('MPS_EDITORIALBGCOLOR', 'ffffff');

Db::getInstance()->Execute('CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'prettyslider (`id_slide` int(10) NOT NULL AUTO_INCREMENT, PRIMARY KEY(`id_slide`)) ENGINE=MyISAM default CHARSET=utf8');

Db::getInstance()->Execute('CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'prettyslider_lang (`id_slide` int(10) NOT NULL AUTO_INCREMENT, `id_shop` int(10) unsigned NOT NULL, `id_lang` int(10) NOT NULL, `title` varchar(255) NOT NULL, `subtitle` varchar(255) NOT NULL, `link` varchar(255) NOT NULL, `position` int(10) NOT NULL, `active` int(10) NOT NULL, PRIMARY KEY(`id_lang`, `id_slide`)) ENGINE=MyISAM default CHARSET=utf8');

Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider (`id_slide`) VALUES ("1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider (`id_slide`) VALUES ("2")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider (`id_slide`) VALUES ("3")');

Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("1", "1", "1", "", "", "index.php", "1", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("1", "1", "2", "", "", "index.php", "1", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("1", "1", "3", "", "", "index.php", "1", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("1", "1", "4", "", "", "index.php", "1", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("1", "1", "5", "", "", "index.php", "1", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("2", "1", "1", "", "", "index.php", "2", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("2", "1", "2", "", "", "index.php", "2", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("2", "1", "3", "", "", "index.php", "2", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("2", "1", "4", "", "", "index.php", "2", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("2", "1", "5", "", "", "index.php", "2", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("3", "1", "1", "", "", "index.php", "3", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("3", "1", "2", "", "", "index.php", "3", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("3", "1", "3", "", "", "index.php", "3", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("3", "1", "4", "", "", "index.php", "3", "1")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_lang (`id_slide`, `id_shop`, `id_lang`, `title`, `subtitle`, `link`, `position`, `active`) VALUES ("3", "1", "5", "", "", "index.php", "3", "1")');

Db::getInstance()->Execute('CREATE TABLE IF NOT EXISTS '._DB_PREFIX_.'prettyslider_editor (`id_lang` int(2) NOT NULL, `id_shop` int(10) unsigned NOT NULL, `editor` text NOT NULL, PRIMARY KEY(`id_lang`, `id_shop`)) ENGINE=MyISAM default CHARSET=utf8');

Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_editor (`id_lang`, `id_shop`, `editor`) VALUES ("1", "1", "<h1>BOUTIQUE DE DEMONSTRATION THEME PRESTASHOP SPORTFITNESS</h1><p>Ce thème, idéal pour la vente d\'articles de sport, inclut le module CategoriesTopMenu qui affiche un menu de catégories horizontal, le module PrettySlider qui ajoute un slide et un éditorial sur la page d\'accueil, le module CustomBlocks qui ajoute des blocs éditables sur les pages de la boutique et le module FooterCustom qui affiche un footer large personnalisable.</p>")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_editor (`id_lang`, `id_shop`, `editor`) VALUES ("2", "1", "<h1>BOUTIQUE DE DEMONSTRATION THEME PRESTASHOP SPORTFITNESS</h1><p>Ce thème, idéal pour la vente d\'articles de sport, inclut le module CategoriesTopMenu qui affiche un menu de catégories horizontal, le module PrettySlider qui ajoute un slide et un éditorial sur la page d\'accueil, le module CustomBlocks qui ajoute des blocs éditables sur les pages de la boutique et le module FooterCustom qui affiche un footer large personnalisable.</p>")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_editor (`id_lang`, `id_shop`, `editor`) VALUES ("3", "1", "<h1>BOUTIQUE DE DEMONSTRATION THEME PRESTASHOP SPORTFITNESS</h1><p>Ce thème, idéal pour la vente d\'articles de sport, inclut le module CategoriesTopMenu qui affiche un menu de catégories horizontal, le module PrettySlider qui ajoute un slide et un éditorial sur la page d\'accueil, le module CustomBlocks qui ajoute des blocs éditables sur les pages de la boutique et le module FooterCustom qui affiche un footer large personnalisable.</p>")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_editor (`id_lang`, `id_shop`, `editor`) VALUES ("4", "1", "<h1>BOUTIQUE DE DEMONSTRATION THEME PRESTASHOP SPORTFITNESS</h1><p>Ce thème, idéal pour la vente d\'articles de sport, inclut le module CategoriesTopMenu qui affiche un menu de catégories horizontal, le module PrettySlider qui ajoute un slide et un éditorial sur la page d\'accueil, le module CustomBlocks qui ajoute des blocs éditables sur les pages de la boutique et le module FooterCustom qui affiche un footer large personnalisable.</p>")');
Db::getInstance()->Execute('INSERT IGNORE INTO '._DB_PREFIX_.'prettyslider_editor (`id_lang`, `id_shop`, `editor`) VALUES ("5", "1", "<h1>BOUTIQUE DE DEMONSTRATION THEME PRESTASHOP SPORTFITNESS</h1><p>Ce thème, idéal pour la vente d\'articles de sport, inclut le module CategoriesTopMenu qui affiche un menu de catégories horizontal, le module PrettySlider qui ajoute un slide et un éditorial sur la page d\'accueil, le module CustomBlocks qui ajoute des blocs éditables sur les pages de la boutique et le module FooterCustom qui affiche un footer large personnalisable.</p>")');
