source: projects/web/trunk/template/layout-top.html.erb @ 4475

Revision 4475, 3.7 KB checked in by daisuke, 13 years ago (diff)

add +1/like button on toppage

Line 
1<%
2require 'bin/render_rss.rb'
3header=File.open("template/header.tmpl")
4footer=File.open("template/footer.tmpl")
5%><%= header.read %>
6
7<script type="text/javascript" src="/js/dlwin.js"></script>
8
9<div id="wrapper">
10<!-- start page -->
11<div id="page">
12  <!-- start content -->
13  <div id="content">
14
15<%= yield %>
16
17<!-- Vine Linux News -->
18<%= render_rss_table("news/news.rdf", 5) %>
19<!-- Vine Linux News -->
20
21<!-- Vine Linux Magazine -->
22<%= render_rss_table("vlmagazine/vlmagazine.rdf", 8) %>
23<!-- Vine Linux Magazine -->
24
25<!-- Vine Linux Events -->
26<%= render_rss_table("events/events.rdf", 5) %>
27<!-- Vine Linux Events -->
28
29  </div><!-- end content -->
30
31  <div id="sidebar1" class="sidebar">
32    <ul>
33      <li>
34        <!-- Google +1 -->
35        <g:plusone></g:plusone>
36        <!-- Facebook Like! -->
37        <iframe src="http://www.facebook.com/plugins/like.php?app_id=250950618257737&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FVine-Linux%2F137362693010812&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
38      </li>
39
40      <li>
41<!-- SiteSearch Google -->
42<form action="http://www.google.co.jp/cse" id="cse-search-box">
43  <div>
44    <input type="hidden" name="cx" value="partner-pub-0334540465096658:xkym6qy6e3r" />
45    <input type="hidden" name="ie" value="UTF-8" />
46    <input type="text" name="q" size="23" />
47    <input type="submit" name="sa" value="&#x691c;&#x7d22;" />
48  </div>
49</form>
50<script type="text/javascript" src="http://www.google.co.jp/cse/brand?form=cse-search-box&amp;lang=ja"></script> 
51<!-- SiteSearch Google -->
52      </li>
53      <li>
54        <h2>スポンサード リンク</h2>
55<script type="text/javascript"><!--
56google_ad_client = "pub-0334540465096658";
57/* vinelinux sidebar top */
58google_ad_slot = "1289280287";
59google_ad_width = 300;
60google_ad_height = 250;
61//-->
62</script>
63<script type="text/javascript"
64src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
65</script>
66      </li>
67
68      <li>
69<%= render_rss_sidebarlist("errata/5x/errata5x.rdf") %>
70      </li>
71
72      <li>
73<%= render_rss_sidebarlist("vineplus5news.rdf") %>
74      </li>
75
76      <li>
77<%= render_rss_sidebarlist("vineseednews.rdf") %>
78      </li>
79
80      <li>
81          <h2><a href="/donation.html">ドネーション</a></h2>
82<!-- Donation by PayPal -->
83<div class="paypal-sidebar">
84<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
85<input type="hidden" name="cmd" value="_s-xclick" />
86<input type="hidden" name="hosted_button_id" value="5823496" />
87<table>
88<tr><td><input type="hidden" name="on0" value="Vine Linux を支援する" />
89Vine Linux を支援する</td></tr><tr><td><select name="os0">
90         <option value="1500">1500 ¥1,500</option>
91         <option value="3000">3000 ¥3,000</option>
92         <option value="5000">5000 ¥5,000</option>
93         <option value="10000">10000 ¥10,000</option>
94         <option value="20,000">20,000 ¥20,000</option>
95         <option value="30,000">30,000 ¥30,000</option>
96</select> </td></tr>
97</table>
98<input type="hidden" name="currency_code" value="JPY" />
99<input type="image"
100       src="https://www.paypal.com/ja_JP/JP/i/btn/btn_paynowCC_LG.gif"
101       border="0" name="submit"
102       alt="PayPal - オンラインで安全・簡単にお支払い" />
103<img alt="" border="0" src="https://www.paypal.com/ja_JP/i/scr/pixel.gif"
104     width="1" height="1" />
105</form>
106</div>
107                        </li>
108                </ul>
109        </div>
110        <!-- end sidebars -->
111
112<%= footer.read %>
Note: See TracBrowser for help on using the repository browser.