Browse Source

Update social buttons.

zhixin 11 years ago
parent
commit
71f868ac50

+ 0 - 1
docs/_includes/footer.html

@@ -2,7 +2,6 @@
 ================================================== -->
 <footer class="bs-docs-footer" role="contentinfo">
   <div class="container">
-    {% include social-buttons.html %}
 
     <p>Designed and built with all the love in the world by <a href="https://github.com/wenzhixin" target="_blank">@wenzhixin</a>.</p>
     <p>Maintained by <a href="https://github.com/wenzhixin" target="_blank">@wenzhixin</a> with the help of <a href="https://github.com/wenzhixin/bootstrap-table/graphs/contributors" target="_blank">our contributors</a>.</p>

+ 5 - 0
docs/_includes/header.html

@@ -42,3 +42,8 @@
   ga('create', 'UA-36708951-1', 'wenzhixin.net.cn');
   ga('send', 'pageview');
 </script>
+
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
+
+<!-- 将此标记放置在 head 中,或放置在结束 body 标记之前,并使其紧邻此标记。 -->
+<script src="https://apis.google.com/js/platform.js" async defer></script>

+ 31 - 11
docs/_includes/social-buttons.html

@@ -1,13 +1,33 @@
 <div class="bs-docs-social">
-  <ul class="bs-docs-social-buttons">
-    <li>
-      <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=watch&count=true" width="100" height="20" title="Star on GitHub"></iframe>
-    </li>
-    <li>
-      <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=fork&count=true" width="102" height="20" title="Fork on GitHub"></iframe>
-    </li>
-    <li>
-      <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true" width="175" height="20" title="Follow on GitHub"></iframe>
-    </li>
-  </ul>
+    if you like bootstrap table - help:
+    <ul class="bs-docs-social-buttons">
+        <li>
+            <iframe class="github-btn"
+                    src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=watch&count=true"
+                    width="100" height="20" title="Star on GitHub"></iframe>
+        </li>
+        <li>
+            <iframe class="github-btn"
+                    src="http://ghbtns.com/github-btn.html?user=wenzhixin&repo=bootstrap-table&type=fork&count=true"
+                    width="102" height="20" title="Fork on GitHub"></iframe>
+        </li>
+        <li>
+            <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=wenzhixin&type=follow&count=true"
+                    width="175" height="20" title="Follow on GitHub"></iframe>
+        </li>
+        <li>
+            <!-- https://about.twitter.com/resources/buttons#tweet -->
+            <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://wenzhixin.net.cn/p/bootstrap-table" data-via="BootstrapTable" data-related="BootstrapTable">Tweet</a>
+        </li>
+        <!--<li>-->
+            <!--<a href="https://twitter.com/BootstrapTable" class="twitter-follow-button" data-show-count="false">Follow @BootstrapTable</a>-->
+        <!--</li>-->
+        <li>
+            <!-- 将此标记放置在你希望显示+1 按钮的位置。 -->
+            <div class="g-plusone" data-annotation="inline" data-width="120"></div>
+        </li>
+        <li>
+            <script data-gratipay-username="wenzhixin" data-gratipay-widget="button" src="//gttp.co/v1.js"></script>
+        </li>
+    </ul>
 </div>

+ 4 - 0
docs/_layouts/default.html

@@ -18,6 +18,10 @@
       </div>
     </div>
 
+    {% include social-buttons.html %}
+
+    <hr>
+
     <div class="container bs-docs-container">
 
       <div class="row">