<?php declare_module('tim', array('name' => __('Theme Option Manager'), 'author' => 'Tendoo Luminax Group', 'description' => __('This module let you customize your theme.'), 'has_widget' => TRUE, 'has_api' => TRUE, 'has_icon' => TRUE, 'handle' => 'INDEX', 'compatible' => 1.3, 'version' => 0.3)); push_module_action('tim', array('action' => 'tim_manage', 'action_name' => __('Manage Theme Option'), 'action_description' => __('This permission let you manage theme options'), 'mod_namespace' => 'tim'));
`ID` int(11) NOT NULL AUTO_INCREMENT, `WIDGET_TITLE` varchar(200), `WIDGET_NAMESPACE` text NOT NULL, `WIDGET_MODNAMESPACE` varchar(200) NOT NULL, `WIDGET_NAME` varchar(200) NOT NULL, `WIDGET_ETAT` varchar(200), `WIDGET_PARAMETERS` text, `AUTEUR` int(11) NOT NULL, `DATE` varchar(200) NOT NULL, `IS_CODE` int(11) NOT NULL, PRIMARY KEY (`ID`) );'); push_module_sql('tendoo_widget_administrator', 'CREATE TABLE IF NOT EXISTS `' . DB_ROOT . 'tendoo_widget_administrator_bottom` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `WIDGET_TITLE` varchar(200), `WIDGET_NAMESPACE` text NOT NULL, `WIDGET_MODNAMESPACE` varchar(200) NOT NULL, `WIDGET_NAME` varchar(200) NOT NULL, `WIDGET_ETAT` varchar(200), `WIDGET_PARAMETERS` text, `AUTEUR` int(11) NOT NULL, `DATE` varchar(200) NOT NULL, `IS_CODE` int(11) NOT NULL, PRIMARY KEY (`ID`) );'); // Default Optinos push_module_sql('tendoo_widget_administrator', "INSERT INTO `" . DB_ROOT . "tendoo_widget_administrator_right` \n\t(ID,WIDGET_TITLE,WIDGET_NAMESPACE,WIDGET_MODNAMESPACE,WIDGET_NAME,WIDGET_ETAT,WIDGET_PARAMETERS,AUTEUR,DATE,IS_CODE) values\n\t(1, 'Mots clés disponibles', 'tags', 'blogster', 'Afficher les mots clés', '1', '9', 4, '" . get_instance()->date->datetime() . "', 0),\n\t(2, 'Meta.', 'syslink', 'blogster', 'Liens Système', '1', '', 4, '2014-06-01 10:20:50', 0),\n\t(3, 'Catégories Disponibles', 'aflecatdi', 'blogster', 'Afficher les categorie disponible', '1', '20', 4, '2014-06-01 10:20:50', 0);"); push_module_sql('tendoo_widget_administrator', "\n\tINSERT INTO `" . DB_ROOT . "tendoo_widget_administrator_left` \n\t(ID,WIDGET_TITLE,WIDGET_NAMESPACE,WIDGET_MODNAMESPACE,WIDGET_NAME,WIDGET_ETAT,WIDGET_PARAMETERS,AUTEUR,DATE,IS_CODE) values\n\t(1, 'Mots clés disponibles', 'tags', 'blogster', 'Afficher les mots clés', '1', '9', 4, '" . get_instance()->date->datetime() . "', 0),\n\t(2, 'Meta.', 'syslink', 'blogster', 'Liens Système', '1', '', 4, '2014-06-01 10:20:50', 0),\n\t(3, 'Catégories Disponibles', 'aflecatdi', 'blogster', 'Afficher les categorie disponible', '1', '20', 4, '2014-06-01 10:20:50', 0);\n\t"); push_module_sql('tendoo_widget_administrator', "\n\tINSERT INTO `" . DB_ROOT . "tendoo_widget_administrator_bottom`\n\t(ID,WIDGET_TITLE,WIDGET_NAMESPACE,WIDGET_MODNAMESPACE,WIDGET_NAME,WIDGET_ETAT,WIDGET_PARAMETERS,AUTEUR,DATE,IS_CODE) values\n\t(1, 'Mots clés disponibles', 'tags', 'blogster', 'Afficher les mots clés', '1', '9', 4, '" . get_instance()->date->datetime() . "', 0),\n\t(2, 'Meta.', 'syslink', 'blogster', 'Liens Système', '1', '', 4, '2014-06-01 10:20:50', 0),\n\t(3, 'Catégories Disponibles', 'aflecatdi', 'blogster', 'Afficher les categorie disponible', '1', '20', 4, '2014-06-01 10:20:50', 0);\n\t"); push_module_action('tendoo_widget_administrator', array('action' => 'manage_widgets', 'action_name' => 'Gestion des widgets', 'action_description' => 'Cette action permet de créer et d\'administrer un widget.', 'mod_namespace' => 'tendoo_widget_administrator'));
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; '); push_module_sql('blogster', 'CREATE TABLE IF NOT EXISTS `' . DB_ROOT . 'tendoo_news_setting` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `EVERYONEPOST` int(11) NOT NULL, `APPROVEBEFOREPOST` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; '); push_module_sql('blogster', 'CREATE TABLE IF NOT EXISTS `' . DB_ROOT . 'tendoo_news_category` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `CATEGORY_NAME` varchar(100) NOT NULL, `URL_TITLE` varchar(200) NOT NULL, `DESCRIPTION` text NOT NULL, `DATE` datetime NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; '); push_module_sql('blogster', "INSERT INTO `" . DB_ROOT . "tendoo_news` \n\t(ID,TITLE,URL_TITLE,CONTENT,DATE,AUTEUR,ETAT,IMAGE,THUMB) values\n\t(1, 'Welcome on tendoo " . get('core_id') . "', 'welcome-on-tendoo-cms', 'Hi, here is your first post. You can edit it through dahsboard.', '" . get_instance()->date->datetime() . "', '1' , '1', '" . img_url('Hub_back.png') . "', '" . img_url('Hub_back.png') . "')"); push_module_sql('blogster', "INSERT INTO `" . DB_ROOT . "tendoo_news_category` \n\t(ID,CATEGORY_NAME,URL_TITLE,DESCRIPTION,DATE) values\n\t(1, 'Unamed category', 'unamed-cateogry', 'This is your first category.', '" . get_instance()->date->datetime() . "')"); push_module_sql('blogster', "INSERT INTO `" . DB_ROOT . "tendoo_news_keywords` \n\t(ID,TITLE,URL_TITLE,DESCRIPTION,AUTEUR) values\n\t(1, 'tendoo', 'tendoo', 'You can use more than one keyword', '1')"); push_module_sql('blogster', "INSERT INTO `" . DB_ROOT . "tendoo_news_ref_category` \n\t(ID,NEWS_REF_ID,CATEGORY_REF_ID) values\n\t(1, '1', '1')"); push_module_sql('blogster', "INSERT INTO `" . DB_ROOT . "tendoo_news_ref_keywords` \n\t(ID,NEWS_REF_ID,KEYWORDS_REF_ID) values\n\t(1, '1', '1')"); push_module_action('blogster', array('action' => 'publish_posts', 'action_name' => __('Publish Posts'), 'action_description' => __('This permission let you create a post'))); push_module_action('blogster', array('action' => 'delete_posts', 'action_name' => __('Delete Posts'), 'action_description' => __('This permission let you delete posts'))); push_module_action('blogster', array('action' => 'edit_posts', 'action_name' => __('Edit Posts'), 'action_description' => __('This permission is used to edit posts'))); push_module_action('blogster', array('action' => 'category_manage', 'action_name' => __('Manage Category'), 'action_description' => __('This permissions let you manage category'))); push_module_action('blogster', array('action' => 'blogster_setting', 'action_name' => __('Manage Blogster Settings'), 'action_description' => __('In order to access blogster settings'))); push_module_action('blogster', array('action' => 'blogster_manage_comments', 'action_name' => __('Manage Comments'), 'action_description' => __('In order to manage comments'))); push_module_action('blogster', array('action' => 'blogster_manage_tags', 'action_name' => __('Manage Tags'), 'action_description' => __('This permission let you manage tags')));
<?php declare_module('tendoo_contents', array('name' => 'Media Library', 'author' => 'Tendoo Luminax Group', 'description' => 'Media Manager for Tendoo CMS.', 'has_widget' => TRUE, 'has_api' => TRUE, 'has_icon' => TRUE, 'handle' => 'APP', 'compatible' => 1.4, 'version' => 0.4)); push_module_sql('tendoo_contents', 'CREATE TABLE IF NOT EXISTS `' . DB_ROOT . 'tendoo_contents` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `TITLE` varchar(200) NOT NULL, `DESCRIPTION` varchar(200) NOT NULL, `FILE_NAME` text NOT NULL, `FILE_TYPE` varchar(200) NOT NULL, `DATE` varchar(200) NOT NULL, `AUTHOR` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;'); push_module_action('tendoo_contents', array('action' => 'delete_media', 'action_name' => 'Delete Media File', 'action_description' => 'This let you delete media file.', 'mod_namespace' => 'tendoo_contents')); push_module_action('tendoo_contents', array('action' => 'upload_media', 'action_name' => 'Send Files', 'action_description' => 'This let you upload media file.', 'mod_namespace' => 'tendoo_contents'));
<?php declare_module('pages_editor', array('name' => __('Page Editor'), 'author' => 'Tendoo Luminax Group', 'description' => __('This module let your create static page for your website'), 'has_widget' => TRUE, 'has_api' => TRUE, 'has_icon' => TRUE, 'handle' => 'STATIC', 'compatible' => 1.3, 'version' => 0.5, 'self_url_handle' => TRUE)); push_module_sql('pages_editor', 'CREATE TABLE IF NOT EXISTS `' . DB_ROOT . 'tendoo_pages` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `TITLE` varchar(255) NOT NULL, `FILE_NAME` varchar(255), `TITLE_URL` varchar(255), `DESCRIPTION` text, `CONTROLLER_REF_CNAME` varchar(255) NOT NULL, `PAGE_PARENT` int(11) NOT NULL, `DATE` datetime NOT NULL, `EDITION_DATE` datetime NOT NULL, `STATUS` varchar(255) NOT NULL, `AUTHOR` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;'); push_module_action('pages_editor', array('action' => 'create_page', 'action_name' => __('Create Pages'), 'action_description' => __('This permission let you create static pages.'), 'mod_namespace' => 'pages_editor')); push_module_action('pages_editor', array('action' => 'delete_page', 'action_name' => __('Delete Pages'), 'action_description' => __('This permission let you delete pages.'), 'mod_namespace' => 'pages_editor')); push_module_action('pages_editor', array('action' => 'edit_pages', 'action_name' => __('Edit Pages'), 'action_description' => __('This permission let you edit pages.'), 'mod_namespace' => 'pages_editor'));