marv 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/CHANGELOG.md +58 -52
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +7 -7
  4. data/VERSION +1 -1
  5. data/layouts/config/router.php.erb +25 -0
  6. data/layouts/plugin/functions/plugin.php.erb +94 -0
  7. data/layouts/{default → plugin}/images/screenshot.png +0 -0
  8. data/layouts/{bramble → plugin}/javascripts/admin.coffee +0 -0
  9. data/layouts/{bramble → plugin}/javascripts/admin.js +0 -0
  10. data/layouts/{bramble/javascripts/theme.coffee → plugin/javascripts/plugin.coffee} +0 -0
  11. data/layouts/{bramble/javascripts/theme.js → plugin/javascripts/plugin.js} +0 -0
  12. data/layouts/plugin/stylesheets/plugin.scss +1 -0
  13. data/layouts/{default → theme}/functions/functions.php.erb +0 -0
  14. data/layouts/theme/images/screenshot.png +0 -0
  15. data/layouts/{default → theme}/includes/filters-admin.php.erb +0 -0
  16. data/layouts/{default → theme}/includes/filters.php.erb +0 -0
  17. data/layouts/{default → theme}/includes/helpers.php.erb +0 -0
  18. data/layouts/{default → theme}/javascripts/admin.coffee +0 -0
  19. data/layouts/{default → theme}/javascripts/admin.js +0 -0
  20. data/layouts/{default → theme}/javascripts/theme.coffee +0 -0
  21. data/layouts/{default → theme}/javascripts/theme.js +0 -0
  22. data/layouts/{default → theme}/stylesheets/_header.scss.erb +0 -0
  23. data/layouts/{bramble → theme}/stylesheets/style.scss.erb +0 -0
  24. data/layouts/{default → theme}/templates/404.php.erb +0 -0
  25. data/layouts/{default → theme}/templates/archive.php.erb +0 -0
  26. data/layouts/{default → theme}/templates/author.php.erb +0 -0
  27. data/layouts/{default → theme}/templates/footer.php +0 -0
  28. data/layouts/{default → theme}/templates/header.php +0 -0
  29. data/layouts/{default → theme}/templates/index.php +0 -0
  30. data/layouts/{default → theme}/templates/page.php +0 -0
  31. data/layouts/{default → theme}/templates/partials/comments.php.erb +0 -0
  32. data/layouts/{default → theme}/templates/partials/content-none.php.erb +0 -0
  33. data/layouts/{default → theme}/templates/partials/content-page.php +0 -0
  34. data/layouts/{default → theme}/templates/partials/content-single.php +0 -0
  35. data/layouts/{default → theme}/templates/partials/content.php.erb +0 -0
  36. data/layouts/{default → theme}/templates/partials/searchform.php.erb +0 -0
  37. data/layouts/{default → theme}/templates/partials/sidebar.php +0 -0
  38. data/layouts/{default → theme}/templates/search.php.erb +0 -0
  39. data/layouts/{default → theme}/templates/single.php +0 -0
  40. data/lib/marv/builder.rb +1 -1
  41. data/lib/marv/cli.rb +5 -5
  42. data/lib/marv/server.rb +65 -79
  43. data/marv.gemspec +44 -45
  44. metadata +57 -45
  45. data/layouts/bramble/functions/functions.php.erb +0 -112
  46. data/layouts/bramble/images/screenshot.png +0 -0
  47. data/layouts/bramble/includes/options.php.erb +0 -1339
  48. data/layouts/bramble/stylesheets/_header.scss.erb +0 -16
  49. data/layouts/bramble/templates/sample-template.php +0 -25
  50. data/layouts/config/rack-config.ru +0 -38
  51. data/layouts/default/stylesheets/style.scss.erb +0 -4
  52. data/lib/marv/version.rb +0 -3
@@ -1,16 +0,0 @@
1
- /*!
2
- * Theme Name: <%= config[:name].capitalize %>
3
- * Theme URI: <%= config[:uri] %>
4
- * Author: <%= config[:author] %>
5
- * Author URI: <%= config[:author_uri] %>
6
- * Description: <%= if config[:description] then config[:description] else 'Bramble Framework child theme for Wordpress, made with Marv.' end %>
7
- * Version: <%= if config[:version_number] then config[:version_number] else '0.1' end %>
8
- * Template: bramble-framework
9
- * License: <%= if config[:license_name] then config[:license_name] else 'GPLv3' end %>
10
- * License URI: <%= if config[:license_uri] then config[:license_uri] else 'http://www.gnu.org/copyleft/gpl.html' end %>
11
- * Tags: <%= config[:tags].join(", ") if config[:tags] %>
12
- <%- unless config[:comments].nil? || config[:comments].empty? -%>
13
- *
14
- * <%= config[:comments] %>
15
- <%- end -%>
16
- */
@@ -1,25 +0,0 @@
1
- <?php
2
-
3
- /**
4
- *
5
- * Template Name: Sample Template
6
- *
7
- **/
8
-
9
- get_header(); ?>
10
-
11
- <div id="content">
12
-
13
- <?php bramble_content_before(); ?>
14
-
15
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
16
-
17
- <?php get_template_part( 'content', get_post_format() ); ?>
18
-
19
- <?php endwhile; endif; ?>
20
-
21
- <?php bramble_content_after(); ?>
22
-
23
- </div>
24
-
25
- <?php get_footer(); ?>
@@ -1,38 +0,0 @@
1
- # config.ru for Rackup + Wordpress
2
-
3
- require 'rack-legacy'
4
-
5
- module Rack
6
- module Legacy
7
- # patch Php from rack-legacy to write pid file and customize server
8
- class Php
9
- def initialize app, public_dir=Dir.getwd, php_exe='php', quiet=true
10
- @app = app; @public_dir = public_dir
11
- server = TCPServer.new('127.0.0.1', 0)
12
- port = server.addr[1]
13
- server.close()
14
- @proxy = Rack::ReverseProxy.new do
15
- reverse_proxy_options preserve_host: false
16
- reverse_proxy /^.*$/, "http://localhost:#{port}"
17
- end
18
- @php = ChildProcess.build php_exe,
19
- '-S', "localhost:#{port}", '-t', public_dir
20
- @php.io.inherit! unless quiet
21
- @php.start
22
- at_exit {@php.stop if @php.alive?}
23
-
24
- # Write PHP proccess id to file
25
- ::File.open(::File.join(@public_dir, 'php.pid'), 'w') do |file|
26
- file.write(@php.pid)
27
- end
28
-
29
- puts "Visit http://localhost:#{port}";
30
- end
31
- end
32
- end
33
- end
34
-
35
- use Rack::Legacy::Index
36
- use Rack::Legacy::Php
37
- use Rack::Legacy::Cgi
38
- run Rack::File.new Dir.getwd
@@ -1,4 +0,0 @@
1
- // WordPress theme header
2
- @import "header";
3
-
4
- // This is your master stylesheet
@@ -1,3 +0,0 @@
1
- module Marv
2
- VERSION = "0.3.1"
3
- end