Browse Source

removed more boilerplate code

Keith Newman 10 years ago
parent
commit
9da265bdc0

+ 0 - 26
frameworks/PHP/clancats/.travis.yml

@@ -1,26 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
-
-env:
- - DB=mysql
-
-before_script:
- - mysql -e 'create database ccf2_phpunit_application'
- - mysql -e 'create database ccf2_phpunit_database'
- - composer self-update
- - composer install --prefer-source --no-interaction --dev
-
-script:
- - php cli phpunit::build
- - php cli doctor::security_key
- - phpunit --coverage-text
-
-matrix:
- allow_failures:
-  - php: hhvm

+ 0 - 18
frameworks/PHP/clancats/app/themes/Bootpack/blueprint.json

@@ -1,18 +0,0 @@
-{
-	"name": "Twitter Bootstrap with packtacular",
-	"version": "3.0.3",
-	"description": "Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.",
-	"homepage": "http://getbootstrap.com",
-	"keywords": [
-		"Twitter",
-		"Theme"
-	],
-	"license": "MIT",
-	"authors": [],
-	
-	"namespace": "Bootstrap",
-	
-	"wake": false,
-	"install": false,
-	"uninstall": false
-}

+ 0 - 36
frameworks/PHP/clancats/app/themes/Bootpack/classes/Theme.php

@@ -1,36 +0,0 @@
-<?php namespace Bootstrap;
-/**
- * Bootstrap Theme
- ** 
- *
- * @package		BootstrapTheme
- * @author		Mario Döring <[email protected]>
- * @version		2.0
- * @copyright 	2010 - 2014 ClanCats GmbH
- *
- */
-class Theme extends \Packtacular\Theme
-{		
-	/**
-	 * Returns the current view namespace 
-	 * You need to implement this method in your theme subclass.
-	 *
-	 * @return string
-	 */
-	public static function view_namespace()
-	{
-		return __NAMESPACE__;	
-	}
-	
-	/**
-	 * This the current public namespace
-	 * By default its simply the PUBLICPATH/assets/<theme_namespace>
-	 * You need to implement this method in your theme subclass.
-	 *
-	 * @return string
-	 */
-	public static function public_namespace()
-	{
-		return "assets/".__NAMESPACE__.'/';
-	}
-}

+ 0 - 65
frameworks/PHP/clancats/app/themes/Bootpack/config/theme.config.php

@@ -1,65 +0,0 @@
-<?php
-/**
- * CCFTheme default configuration
- */
-return array(
-    
-    'default' => array(
-        
-        /*
-         * the topic gets added to the title
-         */
-        'topic'     => 'no title',
-        
-        /*
-         * the html title template
-         */
-        'title'     => '%s | '.ClanCats::runtime( 'name' ),
-        
-        /*
-         * the default html description
-         */
-        'description'   => 'Change your default description under theme.config -> defatul.description.',
-        
-        /*
-         * sidebar ( if false full container gets used )
-         */
-        'sidebar'	=> false,
-        
-        /*
-         * Footer appended scripts
-         * When you have a view specifc script you can append them to the js var just like:
-         *
-         *     $theme->capture_append( 'js', function() {
-	     *         echo "<script>console.log( 'hello world' );</script>";
-         *     });
-         */
-        'js' => '',
-    ), 
-    
-    /*
-     * Assets configuration
-     *
-     * you can pack files to gether:
-     * <holder>@<pack>
-     */
-	'assets' => array(
-		// load bootstrap core
-		'css/bootstrap.min.css'		=> 'theme@style',
-		'css/style.css'				=> 'theme@style',
-
-		// add mixins
-		'less/mixins/mixins.less'		=> 'theme@style',
-		'less/mixins/background.less'	=> 'theme@style',
-		'less/mixins/css3.less'			=> 'theme@style',
-		'less/mixins/transform.less'		=> 'theme@style',
-
-		// Main style
-		'less/style.less' 				=> 'theme@style',
-
-		// js core
-		'jquery.js'						=> 'vendor@lib',
-		'js/bootstrap.min.js'			=> 'theme@core',
-		'js/application.js'				=> 'theme@app',
-	)
-);

+ 0 - 95
frameworks/PHP/clancats/app/themes/Bootpack/views/layout.php

@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta charset="<?php echo ClanCats::$config->charset; ?>">
-	<meta name="viewport" content="width=device-width, initial-scale=1.0">
-	
-	<title><?php echo $title; ?></title>
-	<meta name="description" content="<?php echo $description; ?>">
-	
-	<!-- styling -->
-	<?php echo CCAsset::code( 'css', 'vendor' ); ?>
-	<?php echo CCAsset::code( 'css', 'theme' ); ?>
-	<?php echo CCAsset::code( 'css' ); ?>
-
-	<!--[if lt IE 9]>
-	  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
-	  <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
-	<![endif]-->
-	
-	<!-- header scripts -->
-	<?php echo CCAsset::code( 'js', 'header' ); ?>
-</head>
-<body>
-<div id="header">
-	<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
-		<div class="container">
-			
-			<div class="navbar-header">
-				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#ccf-navbar">
-					<span class="sr-only">Toggle navigation</span>
-					<span class="icon-bar"></span>
-					<span class="icon-bar"></span>
-					<span class="icon-bar"></span>
-				</button>
-				<a class="navbar-brand" href="<?php echo to('/'); ?>"><?php echo App::name(); ?></a>
-			</div>
-			
-			<div class="collapse navbar-collapse" id="ccf-navbar">
-				<ul class="nav navbar-nav">
-					<?php if ( CCAuth::valid() ) : ?>
-					<li>
-						<a href="<?php echo to( '@auth.sign_out' ); ?>">Sign Out</a>
-					</li>
-					<?php else : ?>
-					<li>
-						<a href="<?php echo to( '@auth.sign_in' ); ?>">Sign In</a>
-					</li>
-					<li>
-						<a href="<?php echo to( '@auth.sign_up' ); ?>">Sign Up</a>
-					</li>
-					<?php endif; ?>
-					
-					<?php if ( ClanCats::in_development() ) : ?>
-					<li class="dropdown">
-						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dev Toolbox <b class="caret"></b></a>
-						<ul class="dropdown-menu">
-							<li><a href="<?php echo to('dev/session/'); ?>">Session Sandbox</a></li>
-							<li><a href="<?php echo to('dev/mail/'); ?>">Mail Sandbox</a></li>
-							<li><a href="<?php echo to('dev/common/phpinfo'); ?>">PHP Info</a></li>
-						</ul>
-					</li>
-					<?php endif; ?>
-				</ul>
-			</div><!-- /.navbar-collapse -->
-			
-		</div><!-- /.container-fluid -->
-	</nav>
-</div><!-- /#header -->
-
-<div id="main-container" class="container">
-	<?php echo UI\Alert::render(); ?>
-	<div>
-		<?php if ( $sidebar !== false ) : ?>
-		<div class="row">
-			<div class="col-md-3">
-				<?php echo $sidebar; ?>
-			</div>
-			<div class="col-md-9">
-				<?php echo $content; ?>
-			</div>
-		</div>
-		<?php else : ?>
-		<?php echo $content; ?>
-		<?php endif; ?>
-	</div>
-</div>
-
-<!-- footer scripts -->
-<?php echo CCAsset::code( 'js', 'vendor' ); ?>
-<?php echo CCAsset::code( 'js', 'theme' ); ?>
-<?php echo CCAsset::code( 'js' ); ?>
-<?php echo $js; ?>
-</body>
-
-</html>