site-skel 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/.gitignore +2 -0
  2. data/.gitmodules +3 -0
  3. data/README.markdown +37 -0
  4. data/Rakefile +13 -0
  5. data/VERSION +1 -0
  6. data/bin/site-skel +78 -0
  7. data/common/images/lightbox-blank.gif +0 -0
  8. data/common/images/lightbox-btn-close.gif +0 -0
  9. data/common/images/lightbox-btn-next.gif +0 -0
  10. data/common/images/lightbox-btn-prev.gif +0 -0
  11. data/common/images/lightbox-ico-loading.gif +0 -0
  12. data/common/javascripts/application.js +23 -0
  13. data/common/javascripts/jquery-extensions.js +184 -0
  14. data/common/javascripts/jquery.lightbox.min.js +41 -0
  15. data/common/javascripts/jquery.min.js +19 -0
  16. data/common/javascripts/pngfix.js +34 -0
  17. data/common/javascripts/sifr.js +18 -0
  18. data/common/javascripts/swfobject.js +230 -0
  19. data/common/stylesheets/ie.css +0 -0
  20. data/common/stylesheets/ie6.css +0 -0
  21. data/common/stylesheets/jquery.lightbox.css +101 -0
  22. data/common/stylesheets/main.css +55 -0
  23. data/common/stylesheets/sifr.css +79 -0
  24. data/common/stylesheets/zero.css +48 -0
  25. data/layouts/default/index.html +32 -0
  26. data/layouts/php/_offsite/lib/common/contact_form.php +45 -0
  27. data/layouts/php/_offsite/lib/common/helpers.php +9 -0
  28. data/layouts/php/_offsite/lib/common/template.php +42 -0
  29. data/layouts/php/_offsite/res/sifr-flash/Options.as +8 -0
  30. data/layouts/php/_offsite/res/sifr-flash/SifrStyleSheet.as +78 -0
  31. data/layouts/php/_offsite/res/sifr-flash/sIFR.as +555 -0
  32. data/layouts/php/_offsite/res/sifr-flash/sifr.fla +0 -0
  33. data/layouts/php/_offsite/tpl/_footer.php +5 -0
  34. data/layouts/php/_offsite/tpl/_header.php +39 -0
  35. data/layouts/php/all.php +31 -0
  36. data/layouts/php/index.php +4 -0
  37. data/layouts/php/tpl/.gitignore +0 -0
  38. data/lib/.gitignore +0 -0
  39. data/site-skel.gemspec +82 -0
  40. data/variants/default/footer.html +1 -0
  41. data/variants/default/header.html +1 -0
  42. data/variants/default/main.css +1 -0
  43. metadata +99 -0
@@ -0,0 +1,5 @@
1
+
2
+ <%= @footer %>
3
+
4
+ </body>
5
+ </html>
@@ -0,0 +1,39 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+ <html>
5
+
6
+ <head>
7
+
8
+ <title></title>
9
+
10
+ <meta name="description" content="" />
11
+ <meta name="keywords" content="" />
12
+
13
+ <?= javascript_include_tag('sifr.js') ?>
14
+ <?= javascript_include_tag('swfobject.js') ?>
15
+ <?= javascript_include_tag('jquery.min.js') ?>
16
+ <?= javascript_include_tag('jquery.lightbox.min.js') ?>
17
+ <?= javascript_include_tag('jquery-extensions.js') ?>
18
+ <?= javascript_include_tag('application.js') ?>
19
+
20
+ <!--[if lt IE 7]>
21
+ <?= javascript_include_tag('pngfix.js', array('defer' => 'defer')) ?>
22
+ <![endif]-->
23
+
24
+ <?= stylesheet_link_tag('main.css') ?>
25
+ <?= stylesheet_link_tag('sifr.css') ?>
26
+
27
+ <!--[if IE]>
28
+ <?= stylesheet_link_tag('ie.css') ?>
29
+ <![endif]-->
30
+
31
+ <!--[if lte IE 6]>
32
+ <?= stylesheet_link_tag('ie6.css') ?>
33
+ <![endif]-->
34
+
35
+ </head>
36
+
37
+ <body>
38
+
39
+ <%= @header %>
@@ -0,0 +1,31 @@
1
+ <?php
2
+ define('SITE_ENV', $_SERVER['SERVER_PORT'] == 80 ? 'production' : 'development');
3
+
4
+ switch (SITE_ENV) {
5
+ case 'development':
6
+ define('DEBUG', true);
7
+ break;
8
+ case 'production':
9
+ define('DEBUG', false);
10
+ break;
11
+ }
12
+
13
+ define('OFFSITE_ROOT', dirname(__FILE__) . '/_offsite');
14
+ define('LIB_ROOT', OFFSITE_ROOT . '/lib');
15
+ define('TPL_DIR', 'tpl');
16
+ define('TPL_ROOT', OFFSITE_ROOT . '/tpl');
17
+
18
+ if (($p = strpos($_SERVER['REQUEST_URI'], '?')) !== false) {
19
+ $_SERVER['REQUEST_PATH'] = substr($_SERVER['REQUEST_URI'], 0, $p);
20
+ } else {
21
+ $_SERVER['REQUEST_PATH'] = $_SERVER['REQUEST_URI'];
22
+ }
23
+
24
+ set_include_path('.' . PATH_SEPARATOR . LIB_ROOT);
25
+
26
+ $_TPL = array();
27
+
28
+ require 'php-helpers/helpers.php'; // or helpers-5.3.php if you're running 5.3.x
29
+ require 'common/helpers.php';
30
+ require 'common/template.php';
31
+ ?>
@@ -0,0 +1,4 @@
1
+ <? require 'all.php'; ?>
2
+ <? display_template(':_header') ?>
3
+
4
+ <? display_template(':_footer') ?>
File without changes
data/lib/.gitignore ADDED
File without changes
data/site-skel.gemspec ADDED
@@ -0,0 +1,82 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{site-skel}
8
+ s.version = "0.1.4"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Jason Frame"]
12
+ s.date = %q{2009-12-20}
13
+ s.default_executable = %q{site-skel}
14
+ s.email = %q{jason@onehackoranother.com}
15
+ s.executables = ["site-skel"]
16
+ s.extra_rdoc_files = [
17
+ "README.markdown"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ ".gitmodules",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "bin/site-skel",
26
+ "common/images/lightbox-blank.gif",
27
+ "common/images/lightbox-btn-close.gif",
28
+ "common/images/lightbox-btn-next.gif",
29
+ "common/images/lightbox-btn-prev.gif",
30
+ "common/images/lightbox-ico-loading.gif",
31
+ "common/javascripts/.DS_Store",
32
+ "common/javascripts/application.js",
33
+ "common/javascripts/jquery-extensions.js",
34
+ "common/javascripts/jquery.lightbox.min.js",
35
+ "common/javascripts/jquery.min.js",
36
+ "common/javascripts/pngfix.js",
37
+ "common/javascripts/sifr.js",
38
+ "common/javascripts/swfobject.js",
39
+ "common/stylesheets/.DS_Store",
40
+ "common/stylesheets/ie.css",
41
+ "common/stylesheets/ie6.css",
42
+ "common/stylesheets/jquery.lightbox.css",
43
+ "common/stylesheets/main.css",
44
+ "common/stylesheets/sifr.css",
45
+ "common/stylesheets/zero.css",
46
+ "layouts/default/index.html",
47
+ "layouts/php/_offsite/lib/common/contact_form.php",
48
+ "layouts/php/_offsite/lib/common/helpers.php",
49
+ "layouts/php/_offsite/lib/common/template.php",
50
+ "layouts/php/_offsite/res/.DS_Store",
51
+ "layouts/php/_offsite/res/sifr-flash/Options.as",
52
+ "layouts/php/_offsite/res/sifr-flash/SifrStyleSheet.as",
53
+ "layouts/php/_offsite/res/sifr-flash/sIFR.as",
54
+ "layouts/php/_offsite/res/sifr-flash/sifr.fla",
55
+ "layouts/php/_offsite/tpl/_footer.php",
56
+ "layouts/php/_offsite/tpl/_header.php",
57
+ "layouts/php/all.php",
58
+ "layouts/php/index.php",
59
+ "layouts/php/tpl/.gitignore",
60
+ "lib/.gitignore",
61
+ "site-skel.gemspec",
62
+ "variants/default/footer.html",
63
+ "variants/default/header.html",
64
+ "variants/default/main.css"
65
+ ]
66
+ s.homepage = %q{http://github.com/jaz303/site-skel/}
67
+ s.rdoc_options = ["--charset=UTF-8"]
68
+ s.require_paths = ["lib"]
69
+ s.rubygems_version = %q{1.3.5}
70
+ s.summary = %q{Generate skeleton web sites based on predefined layouts and variants. Support for static HTML, PHP and Javascript.}
71
+
72
+ if s.respond_to? :specification_version then
73
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
74
+ s.specification_version = 3
75
+
76
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
77
+ else
78
+ end
79
+ else
80
+ end
81
+ end
82
+
@@ -0,0 +1 @@
1
+ </div>
@@ -0,0 +1 @@
1
+ <div id='container'>
@@ -0,0 +1 @@
1
+ #container { width: 800px; margin: 0 auto; }
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: site-skel
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Jason Frame
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-20 00:00:00 +00:00
13
+ default_executable: site-skel
14
+ dependencies: []
15
+
16
+ description:
17
+ email: jason@onehackoranother.com
18
+ executables:
19
+ - site-skel
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.markdown
24
+ files:
25
+ - .gitignore
26
+ - .gitmodules
27
+ - README.markdown
28
+ - Rakefile
29
+ - VERSION
30
+ - bin/site-skel
31
+ - common/images/lightbox-blank.gif
32
+ - common/images/lightbox-btn-close.gif
33
+ - common/images/lightbox-btn-next.gif
34
+ - common/images/lightbox-btn-prev.gif
35
+ - common/images/lightbox-ico-loading.gif
36
+ - common/javascripts/.DS_Store
37
+ - common/javascripts/application.js
38
+ - common/javascripts/jquery-extensions.js
39
+ - common/javascripts/jquery.lightbox.min.js
40
+ - common/javascripts/jquery.min.js
41
+ - common/javascripts/pngfix.js
42
+ - common/javascripts/sifr.js
43
+ - common/javascripts/swfobject.js
44
+ - common/stylesheets/.DS_Store
45
+ - common/stylesheets/ie.css
46
+ - common/stylesheets/ie6.css
47
+ - common/stylesheets/jquery.lightbox.css
48
+ - common/stylesheets/main.css
49
+ - common/stylesheets/sifr.css
50
+ - common/stylesheets/zero.css
51
+ - layouts/default/index.html
52
+ - layouts/php/_offsite/lib/common/contact_form.php
53
+ - layouts/php/_offsite/lib/common/helpers.php
54
+ - layouts/php/_offsite/lib/common/template.php
55
+ - layouts/php/_offsite/res/.DS_Store
56
+ - layouts/php/_offsite/res/sifr-flash/Options.as
57
+ - layouts/php/_offsite/res/sifr-flash/SifrStyleSheet.as
58
+ - layouts/php/_offsite/res/sifr-flash/sIFR.as
59
+ - layouts/php/_offsite/res/sifr-flash/sifr.fla
60
+ - layouts/php/_offsite/tpl/_footer.php
61
+ - layouts/php/_offsite/tpl/_header.php
62
+ - layouts/php/all.php
63
+ - layouts/php/index.php
64
+ - layouts/php/tpl/.gitignore
65
+ - lib/.gitignore
66
+ - site-skel.gemspec
67
+ - variants/default/footer.html
68
+ - variants/default/header.html
69
+ - variants/default/main.css
70
+ has_rdoc: true
71
+ homepage: http://github.com/jaz303/site-skel/
72
+ licenses: []
73
+
74
+ post_install_message:
75
+ rdoc_options:
76
+ - --charset=UTF-8
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ version:
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: "0"
90
+ version:
91
+ requirements: []
92
+
93
+ rubyforge_project:
94
+ rubygems_version: 1.3.5
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: Generate skeleton web sites based on predefined layouts and variants. Support for static HTML, PHP and Javascript.
98
+ test_files: []
99
+