Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambe committed Mar 24, 2014
0 parents commit 6922096
Show file tree
Hide file tree
Showing 100 changed files with 10,279 additions and 0 deletions.
Empty file added .gitignore
Empty file.
7 changes: 7 additions & 0 deletions app/admin/application.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

/**
* application.php - Write your custom code below.
*/

?>
Empty file added app/admin/index.php
Empty file.
104 changes: 104 additions & 0 deletions app/config/application.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<?php defined('DS') or die('No direct script access.');

return array(

/*
* Edit this file in order to configure your application
* settings or preferences.
*
*/

/* --------------------------------------------------------------- */
// Theme textdomain
/* --------------------------------------------------------------- */
'textdomain' => 'themosis',

/* --------------------------------------------------------------- */
// Global Javascript namespace of your application
/* --------------------------------------------------------------- */
'namespace' => 'themosis',

/* --------------------------------------------------------------- */
// Set wordpress admin ajax file without the PHP extension
/* --------------------------------------------------------------- */
'ajaxurl' => 'admin-ajax',

/* --------------------------------------------------------------- */
// Encoding
/* --------------------------------------------------------------- */
'encoding' => 'UTF-8',

/* --------------------------------------------------------------- */
// Rewrite - If you want to modify default Wordpress paths.
// If you change this parameter, you need to go to the 'Permalinks'
// tab in the Wordpress admin and update the structure by saving
// the changes.
/* --------------------------------------------------------------- */
'rewrite' => false,

/* --------------------------------------------------------------- */
// Allow to define the path for the login page
/* --------------------------------------------------------------- */
'loginurl' => 'login',

/* --------------------------------------------------------------- */
// Cleanup Header
/* --------------------------------------------------------------- */
'cleanup' => true,

/* --------------------------------------------------------------- */
// Add custom htaccess settings.
// The settings are a mix of Themosis parameters and HTML5 Boilerplate
// htaccess settings.
// Will overwrite your htacess settings each time
// you go to the permalinks settings page in the admin.
// If you edit your main .htaccess file and you want to avoid the
// framework to overwrite your settings, set this to "false".
/* --------------------------------------------------------------- */
'htaccess' => true,

/* --------------------------------------------------------------- */
// Restrict access to the Wordpress Admin for users with a
// specific role.
// Once the theme is activated, you can only log in by going
// to 'wp-login.php' or 'login' (if permalinks changed) urls.
// By default, allows 'administrator', 'editor', 'author',
// 'contributor' and 'subscriber' to access the ADMIN area.
// Edit this configuration in order to limit access.
/* --------------------------------------------------------------- */
'access' => array(
'administrator',
'editor',
'author',
'contributor',
'subscriber'
),

/* --------------------------------------------------------------- */
// Application classes's alias
/* --------------------------------------------------------------- */
'aliases' => array(
'Themosis\\Ajax\\Ajax' => 'Ajax',
'Themosis\\Asset\\Asset' => 'Asset',
'Themosis\\Configuration\\Application' => 'Application',
'Themosis\\Model\\BaseModel' => 'BaseModel',
'Themosis\\Field\\Field' => 'Field',
'Themosis\\Html\\Form' => 'Form',
'Themosis\\Metabox\\Meta' => 'Meta',
'Themosis\\Metabox\\Metabox' => 'Metabox',
'Themosis\\Page\\Option' => 'Option',
'Themosis\\Page\\Page' => 'Page',
'Themosis\\PostType\\PostType' => 'PostType',
'Themosis\\Route\\Route' => 'Route',
'Themosis\\Session\\Session' => 'Session',
'Themosis\\Taxonomy\\TaxField' => 'TaxField',
'Themosis\\Taxonomy\\TaxMeta' => 'TaxMeta',
'Themosis\\Taxonomy\\Taxonomy' => 'Taxonomy',
'Themosis\\User\\User' => 'User',
'Themosis\\View\\Loop' => 'Loop',
'Themosis\\View\\View' => 'View'
)

);

?>
16 changes: 16 additions & 0 deletions app/config/constants.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php defined('DS') or die('No direct script access.');

return array(

/*
* Edit this file in order to configure your application's
* constants.
*
* The key is the constant NAME (be sure to write it capitals)
* and key's value is the constant VALUE.
*/
'APPVERSION' => '1.0'

);

?>
30 changes: 30 additions & 0 deletions app/config/errors.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php defined('DS') or die('No direct script access.');

return array(

/*
* Edit this file in order to configure your application
* errors settings
*
*/

/* --------------------------------------------------------------- */
// Display errors - Turn it 'off' for production
/* --------------------------------------------------------------- */
'display' => false,

/* --------------------------------------------------------------- */
// Listen to PHP shutdown event and display last errors
// Turn it "on" ONLY during development.
/* --------------------------------------------------------------- */
'shutdown' => false,

/* --------------------------------------------------------------- */
// Errors reporting - Use INT values only
// 0 - Production | -1 - Development
/* --------------------------------------------------------------- */
'report' => 0

);

?>
Empty file added app/index.php
Empty file.
Empty file added app/models/index.php
Empty file.
Empty file added app/widgets/index.php
Empty file.
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "themosis/themosis",
"description": "The Themosis framework plugin.",
"keywords": ["themosis", "framework", "wordpress"],
"license": "GPL-2.0+",
"authors":[
{
"name": "Julien Lambé",
"email": "[email protected]",
"homepage": "http://www.themosis.com/"
}
],
"require": {
"symfony/http-foundation": "2.4.2"
},
"autoload": {
"psr-0": {
"Themosis": "src/"
}
}
}
Loading

0 comments on commit 6922096

Please sign in to comment.