about summary refs log tree commit diff stats
path: root/util/extract_panels.rb
blob: d524f6e95d63e685246c53b31d928d38c7585d5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'yaml'

mappath = ARGV[0]
outputpath = ARGV[1]

panels = []

File.readlines(mappath).each do |line|
  line.match(/node name=\"(.*)\" parent=\"Panels\/(.*)\" instance/) do |m|
    panels << {"id" => m[2] + "/" + m[1]}
  end
end

File.write(outputpath, panels.to_yaml)
1">'../includes/specialdates.php'); include("css/website.css"); include("css/bubbles.css"); if (sd_ifNoSpecialDay()) { if ($_GET['id'] == 'day') { include("css/day.css"); } else if ($_GET['id'] == 'night') { include("css/night.css"); } } else { include("css/holiday.php"); } if ($_GET['cat'] == 'home') { include('css/blog.php'); } else if ($_GET['cat'] == 'panel') { include('css/blog.php'); } ?>