Updated google plusone and facebook like buttons
[beagleboard.org.git] / db / 289.xml
blob32511ced55c7eb5cf40ebbda9bbe719f4c313c12
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <?xml-stylesheet type="text/xsl" href="helma.xsl"?>
3 <xmlroot xmlns:hop="http://www.helma.org/docs/guide/features/database">
4   <hopobject id="289" name="news" prototype="Page" created="1217374452104" lastModified="1352224966553">
5   <hop:parent idref="0" prototyperef="Root"/>
6     <is_xhtml type="boolean">true</is_xhtml>
7     <http_remotehost>127.0.0.1</http_remotehost>
8     <oauth2-token></oauth2-token>
9     <beagleirclog>000000</beagleirclog>
10     <http_language>en-US,en;q=0.8</http_language>
11     <uri>news</uri>
12     <http_browser>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4</http_browser>
13     <time type="date">06.11.2012 12:02:46 CST</time>
14     <hopsession>127.0.0.107.5.165.8mnnoivdqvbp</hopsession>
15     <body>&lt;script&gt;\r
16 function handleResponse(resp) {\r
17     for(item in resp.items) {\r
18         var myform = &apos;&lt;li class=&quot;results_item&quot; class=&quot;arrow&quot; id=&quot;results_&apos; + item + &apos;&quot;&gt;\n&apos; +\r
19             &apos; &lt;a href=&quot;&apos; + resp.items[item].url + &apos;&quot;&gt;&apos; + resp.items[item].title + &apos;&lt;/a&gt;&apos; +\r
20             &apos; &lt;form action=&quot;&apos; + window.location + resp.items[item].id + &apos;/edit_news&apos; + &apos;&quot; method=&quot;post&quot;&gt;&apos; +\r
21             &apos;  &lt;input type=&quot;hidden&quot; name=&quot;news_url&quot; value=&quot;&apos; + resp.items[item].url + &apos;&quot;&gt;&apos; +\r
22             &apos;  &lt;input type=&quot;hidden&quot; name=&quot;image_url&quot; value=&quot;&quot;&gt;&apos; +\r
23             &apos;  &lt;input type=&quot;hidden&quot; name=&quot;headline&quot; value=&quot;&apos; + resp.items[item].title + &apos;&quot;&gt;&apos; +\r
24             &apos;  &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Save&quot;&gt;&apos; +\r
25             &apos; &lt;/form&gt;&apos; +\r
26             &apos;&lt;/li&gt;&apos;;\r
27         $(&apos;#slider&apos;).append(myform);\r
28         try {\r
29             for(i in resp.items[item].object.attachments) {\r
30                 if(resp.items[item].object.attachments[i].image) {\r
31                     $(&apos;#results_&apos; + item).prepend(&apos;&apos; +\r
32                     &apos;&lt;img class=&quot;results_image&quot; id=&quot;results_image_&apos; +\r
33                     item + &apos;&quot; src=&quot;&apos; +\r
34                     resp.items[item].object.attachments[i].image.url + &apos;&quot; /&gt;&apos;);\r
35                     break;\r
36                 }\r
37             }\r
38         } catch(ex) {\r
39         }\r
40     }\r
41 }\r
43 function makeRequest() {\r
44     var request = gapi.client.plus.activities.list(\r
45         {\r
46             &apos;userId&apos;: &apos;104712705716996155416&apos;, \r
47             &apos;collection&apos;: &apos;public&apos;, \r
48             &apos;maxResults&apos;: 12\r
49         });\r
50     request.execute(handleResponse);\r
51 }\r
53 function onGoogleLoad() {\r
54     gapi.client.setApiKey(&apos;AIzaSyDB9-M-HaJ1GtB8j8EppCLsdpzLwW5Y4IE&apos;);\r
55     gapi.client.load(&apos;plus&apos;, &apos;v1&apos;, makeRequest);\r
56 }\r
57 &lt;/script&gt;\r
58 &lt;h1&gt;Latest News&lt;/h1&gt;\r
59 &lt;h2&gt;&lt;a href=&quot;https://plus.google.com/u/1/104712705716996155416/posts&quot;&gt;BeagleBoard on Google+&lt;/a&gt;&lt;/h2&gt;\r
60 &lt;ul&gt;\r
61     &lt;li&gt;&lt;a href=&quot;https://plus.google.com/u/1/104712705716996155416/posts&quot;&gt;Boris Houndleroy&lt;/a&gt;&lt;/li&gt;\r
62     &lt;li&gt;&lt;a href=&quot;http://plus.google.com/+beagleboard&quot;&gt;Official BeagleBoard.org Page&lt;/a&gt;&lt;/li&gt;\r
63 &lt;/ul&gt;\r
64 &lt;h2&gt;Blogs that talk about the BeagleBoard&lt;/h2&gt;\r
65 &lt;ul&gt;\r
66     &lt;li&gt;&lt;a href=&quot;http://beagleboard.blogspot.com&quot;&gt;BeagleBoard Blog&lt;/a&gt;&lt;/li&gt;\r
67     &lt;li&gt;&lt;a href=&quot;http://beagleintern.blogspot.com&quot;&gt;Beagle Intern Blog&lt;/a&gt;&lt;/li&gt;\r
68 &lt;/ul&gt;\r
69 &lt;h2&gt;News entries&lt;/h2&gt;\r
70 &lt;ul id=&quot;slider&quot;&gt;&lt;/ul&gt;\r
71 &lt;script src=&quot;https://apis.google.com/js/client.js?onload=onGoogleLoad&quot;&gt;&lt;/script&gt;\r
72 </body>
73     <pseudoparent idref="0" prototyperef="Root"/>
74     <list_children>1</list_children>
75     <http_referer>http://beagleboard.org/news/edit</http_referer>
76     <http_host>beagleboard.org</http_host>
77     <user>blog.hangerhead.com</user>
78     <lang>en-us</lang>
79     <hop:child idref="411" prototyperef="Page"/>
80   </hopobject>
81 </xmlroot>