marv 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +58 -52
- data/Gemfile +2 -1
- data/Gemfile.lock +7 -7
- data/VERSION +1 -1
- data/layouts/config/router.php.erb +25 -0
- data/layouts/plugin/functions/plugin.php.erb +94 -0
- data/layouts/{default → plugin}/images/screenshot.png +0 -0
- data/layouts/{bramble → plugin}/javascripts/admin.coffee +0 -0
- data/layouts/{bramble → plugin}/javascripts/admin.js +0 -0
- data/layouts/{bramble/javascripts/theme.coffee → plugin/javascripts/plugin.coffee} +0 -0
- data/layouts/{bramble/javascripts/theme.js → plugin/javascripts/plugin.js} +0 -0
- data/layouts/plugin/stylesheets/plugin.scss +1 -0
- data/layouts/{default → theme}/functions/functions.php.erb +0 -0
- data/layouts/theme/images/screenshot.png +0 -0
- data/layouts/{default → theme}/includes/filters-admin.php.erb +0 -0
- data/layouts/{default → theme}/includes/filters.php.erb +0 -0
- data/layouts/{default → theme}/includes/helpers.php.erb +0 -0
- data/layouts/{default → theme}/javascripts/admin.coffee +0 -0
- data/layouts/{default → theme}/javascripts/admin.js +0 -0
- data/layouts/{default → theme}/javascripts/theme.coffee +0 -0
- data/layouts/{default → theme}/javascripts/theme.js +0 -0
- data/layouts/{default → theme}/stylesheets/_header.scss.erb +0 -0
- data/layouts/{bramble → theme}/stylesheets/style.scss.erb +0 -0
- data/layouts/{default → theme}/templates/404.php.erb +0 -0
- data/layouts/{default → theme}/templates/archive.php.erb +0 -0
- data/layouts/{default → theme}/templates/author.php.erb +0 -0
- data/layouts/{default → theme}/templates/footer.php +0 -0
- data/layouts/{default → theme}/templates/header.php +0 -0
- data/layouts/{default → theme}/templates/index.php +0 -0
- data/layouts/{default → theme}/templates/page.php +0 -0
- data/layouts/{default → theme}/templates/partials/comments.php.erb +0 -0
- data/layouts/{default → theme}/templates/partials/content-none.php.erb +0 -0
- data/layouts/{default → theme}/templates/partials/content-page.php +0 -0
- data/layouts/{default → theme}/templates/partials/content-single.php +0 -0
- data/layouts/{default → theme}/templates/partials/content.php.erb +0 -0
- data/layouts/{default → theme}/templates/partials/searchform.php.erb +0 -0
- data/layouts/{default → theme}/templates/partials/sidebar.php +0 -0
- data/layouts/{default → theme}/templates/search.php.erb +0 -0
- data/layouts/{default → theme}/templates/single.php +0 -0
- data/lib/marv/builder.rb +1 -1
- data/lib/marv/cli.rb +5 -5
- data/lib/marv/server.rb +65 -79
- data/marv.gemspec +44 -45
- metadata +57 -45
- data/layouts/bramble/functions/functions.php.erb +0 -112
- data/layouts/bramble/images/screenshot.png +0 -0
- data/layouts/bramble/includes/options.php.erb +0 -1339
- data/layouts/bramble/stylesheets/_header.scss.erb +0 -16
- data/layouts/bramble/templates/sample-template.php +0 -25
- data/layouts/config/rack-config.ru +0 -38
- data/layouts/default/stylesheets/style.scss.erb +0 -4
- 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
|
data/lib/marv/version.rb
DELETED