<h1>Project "FreeSWITCH user-contributed scripts, etc" received a push.</h1>

<h2>branch: master updated</h2>
<pre>
       via: 7342c77d10810960f49fc5213db4a23dc203fd7a (commit)
      from: 9ecdde39b5fb94c4708b530a7c90e82900ff15ed (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Mathieu Parent
comments: 
MediaBrotha: Add missing HTML files

<span style="color: #000080; font-weight: bold">diff --git a/sathieu/cisco-xml/browser/static/default.css b/sathieu/cisco-xml/browser/static/default.css</span>
new file mode 100644
<span style="color: #000080; font-weight: bold">index 0000000..6ef61fc</span>
<span style="color: #A00000">--- /dev/null</span>
<span style="color: #00A000">+++ b/sathieu/cisco-xml/browser/static/default.css</span>
<span style="color: #800080; font-weight: bold">@@ -0,0 +1,49 @@</span>
<span style="color: #00A000">+/*</span>
<span style="color: #00A000">+ * body &gt; ul#mediaListElement &gt; li.mediaElement</span>
<span style="color: #00A000">+ */</span>
<span style="color: #00A000">+li.mediaElement {</span>
<span style="color: #00A000">+        padding: 2px;</span>
<span style="color: #00A000">+        margin: 0px;</span>
<span style="color: #00A000">+        list-style-type: none;</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+li.mediaElement:nth-child(odd) {</span>
<span style="color: #00A000">+        background-color: #d1e3ed;</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+/*</span>
<span style="color: #00A000">+ * body &gt; ul#mediaListElement</span>
<span style="color: #00A000">+ */</span>
<span style="color: #00A000">+#mediaListElement {</span>
<span style="color: #00A000">+        padding: 2px;</span>
<span style="color: #00A000">+        margin: 0px;</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+/*</span>
<span style="color: #00A000">+ * body &gt; ul#mediaListElement &gt; li.mediaElement &gt; ul.mediaActionsListElement</span>
<span style="color: #00A000">+ */</span>
<span style="color: #00A000">+li.mediaElement .mediaActionsListElement {</span>
<span style="color: #00A000">+        padding: 2px;</span>
<span style="color: #00A000">+        margin: 0px;</span>
<span style="color: #00A000">+        margin-left: 20px;</span>
<span style="color: #00A000">+        list-style-type: none;</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        -moz-transition-property: max-height, opacity, visibility;</span>
<span style="color: #00A000">+        -moz-transition-duration: 3s, 2s, 0.2s;</span>
<span style="color: #00A000">+        -moz-transition-delay: 0s, 1s, 1s;</span>
<span style="color: #00A000">+        max-height: 0px;</span>
<span style="color: #00A000">+        opacity: 0;</span>
<span style="color: #00A000">+        visibility: hidden;</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+li.mediaElement:hover .mediaActionsListElement {</span>
<span style="color: #00A000">+        -moz-transition-property: max-height, opacity, visibility;</span>
<span style="color: #00A000">+        -moz-transition-duration: 0.5s, 2s, 0.2s;</span>
<span style="color: #00A000">+        -moz-transition-delay: 0.4s, 0.4s, 0.4s;</span>
<span style="color: #00A000">+        max-height: 200px;</span>
<span style="color: #00A000">+        opacity: 1;</span>
<span style="color: #00A000">+        visibility: visible;</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+</span>
<span style="color: #000080; font-weight: bold">diff --git a/sathieu/cisco-xml/browser/static/dynamic.js b/sathieu/cisco-xml/browser/static/dynamic.js</span>
new file mode 100644
<span style="color: #000080; font-weight: bold">index 0000000..721eb51</span>
<span style="color: #A00000">--- /dev/null</span>
<span style="color: #00A000">+++ b/sathieu/cisco-xml/browser/static/dynamic.js</span>
<span style="color: #800080; font-weight: bold">@@ -0,0 +1,4 @@</span>
<span style="color: #00A000">+function bodyLoaded() {</span>
<span style="color: #00A000">+        //nothing yet</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
<span style="color: #000080; font-weight: bold">diff --git a/sathieu/cisco-xml/lib/MediaBrotha/Frontend/HTML.php b/sathieu/cisco-xml/lib/MediaBrotha/Frontend/HTML.php</span>
new file mode 100644
<span style="color: #000080; font-weight: bold">index 0000000..6d09e1b</span>
<span style="color: #A00000">--- /dev/null</span>
<span style="color: #00A000">+++ b/sathieu/cisco-xml/lib/MediaBrotha/Frontend/HTML.php</span>
<span style="color: #800080; font-weight: bold">@@ -0,0 +1,127 @@</span>
<span style="color: #00A000">+&lt;?php</span>
<span style="color: #00A000">+/*</span>
<span style="color: #00A000">+Copyright 2011 Mathieu Parent &lt;math.parent@gmail.com&gt; </span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+This file is part of MediaBrotha.</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        MediaBrotha is free software: you can</span>
<span style="color: #00A000">+        redistribute it and/or modify it under the terms of the GNU General</span>
<span style="color: #00A000">+        Public License as published by the Free Software Foundation, either</span>
<span style="color: #00A000">+        version 3 of the License, or (at your option) any later version.</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        MediaBrotha is distributed in the hope that it</span>
<span style="color: #00A000">+        will be useful, but WITHOUT ANY WARRANTY; without even the implied</span>
<span style="color: #00A000">+        warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See</span>
<span style="color: #00A000">+        the GNU General Public License for more details.</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        You should have received a copy of the GNU General Public License</span>
<span style="color: #00A000">+        along with MediaBrotha. If not, see</span>
<span style="color: #00A000">+        &lt;http://www.gnu.org/licenses/&gt;.</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+*/</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+/**</span>
<span style="color: #00A000">+ * @author Mathieu Parent</span>
<span style="color: #00A000">+ */</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+require_once(&#39;HTTP.php&#39;);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+class MediaBrotha_Frontend_HTML extends MediaBrotha_Frontend_HTTP {</span>
<span style="color: #00A000">+        private $_xml = NULL;</span>
<span style="color: #00A000">+        private $_body = NULL;</span>
<span style="color: #00A000">+        private $_mediaListElement = NULL;</span>
<span style="color: #00A000">+        private $_actionsListElement = NULL;</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        private function _mediaActionLinks($parent, $media, $tag_name) {</span>
<span style="color: #00A000">+                $url = $this-&gt;rootURL().&#39;?&#39;.</span>
<span style="color: #00A000">+                        MediaBrotha_Core::value2hash(</span>
<span style="color: #00A000">+                                &#39;mime_type=&#39;.urlencode($media-&gt;getMimeType()).&#39;&amp;&#39;.</span>
<span style="color: #00A000">+                                ($media-&gt;getMimeEncoding() ? (&#39;mime_encoding=&#39;.urlencode($media-&gt;getMimeEncoding()).&#39;&amp;&#39;) : &#39;&#39;).</span>
<span style="color: #00A000">+                                &#39;uri=&#39;.urlencode($media-&gt;getURI()));</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                foreach (MediaBrotha_Core::getBackends() as $backend) {</span>
<span style="color: #00A000">+                        foreach ($backend-&gt;getMediaActions($media) as $action) {</span>
<span style="color: #00A000">+                                $tag = $this-&gt;_xml-&gt;createElement($tag_name);</span>
<span style="color: #00A000">+                                $tag = $parent-&gt;appendChild($tag);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                                $a = $this-&gt;_xml-&gt;createElement(&#39;a&#39;);</span>
<span style="color: #00A000">+                                $a = $tag-&gt;appendChild($a);</span>
<span style="color: #00A000">+                                $a-&gt;setAttribute(&#39;href&#39;, &quot;$url&amp;&quot;.MediaBrotha_Core::value2hash(&#39;action=&#39;.$action.&#39;&amp;backend=&#39;.$backend-&gt;getBackendName()));</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                                $text = $this-&gt;_xml-&gt;createTextNode($action);</span>
<span style="color: #00A000">+                                $text = $a-&gt;appendChild($text);</span>
<span style="color: #00A000">+                        }</span>
<span style="color: #00A000">+                }</span>
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        public function begin($item) {</span>
<span style="color: #00A000">+                $this-&gt;_xml = new DOMDocument(&#39;1.0&#39;);</span>
<span style="color: #00A000">+                $root = $this-&gt;_xml-&gt;createElement(&#39;html&#39;);</span>
<span style="color: #00A000">+                $root = $this-&gt;_xml-&gt;appendChild($root);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $head = $this-&gt;_xml-&gt;createElement(&#39;head&#39;);</span>
<span style="color: #00A000">+                $head = $root-&gt;appendChild($head);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $title = $this-&gt;_xml-&gt;createElement(&#39;title&#39;);</span>
<span style="color: #00A000">+                $title = $head-&gt;appendChild($title);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $text = $this-&gt;_xml-&gt;createTextNode($item-&gt;getDisplayName());</span>
<span style="color: #00A000">+                $text = $title-&gt;appendChild($text);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $style = $this-&gt;_xml-&gt;createElement(&#39;link&#39;);</span>
<span style="color: #00A000">+                $style = $head-&gt;appendChild($style);</span>
<span style="color: #00A000">+                $style-&gt;setAttribute(&#39;type&#39;, &#39;text/css&#39;);</span>
<span style="color: #00A000">+                $style-&gt;setAttribute(&#39;rel&#39;, &#39;stylesheet&#39;);</span>
<span style="color: #00A000">+                $style-&gt;setAttribute(&#39;href&#39;, $this-&gt;rootURL().&#39;static/default.css&#39;);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $script = $this-&gt;_xml-&gt;createElement(&#39;script&#39;);</span>
<span style="color: #00A000">+                $script = $head-&gt;appendChild($script);</span>
<span style="color: #00A000">+                $script-&gt;setAttribute(&#39;type&#39;, &#39;text/javascript&#39;);</span>
<span style="color: #00A000">+                $script-&gt;setAttribute(&#39;src&#39;, $this-&gt;rootURL().&#39;static/dynamic.js&#39;);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $this-&gt;_body = $this-&gt;_xml-&gt;createElement(&#39;body&#39;);</span>
<span style="color: #00A000">+                $this-&gt;_body = $root-&gt;appendChild($this-&gt;_body);</span>
<span style="color: #00A000">+                $this-&gt;_body-&gt;setAttribute(&#39;onload&#39;, &#39;bodyLoaded();&#39;);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $this-&gt;_mediaListElement = $this-&gt;_xml-&gt;createElement(&#39;ul&#39;);</span>
<span style="color: #00A000">+                $this-&gt;_mediaListElement = $this-&gt;_body-&gt;appendChild($this-&gt;_mediaListElement);</span>
<span style="color: #00A000">+                $this-&gt;_mediaListElement-&gt;setAttribute(&#39;id&#39;, &#39;mediaListElement&#39;);</span>
<span style="color: #00A000">+                if ($parent = $item-&gt;getParent()) {</span>
<span style="color: #00A000">+                        $this-&gt;addItem($parent);</span>
<span style="color: #00A000">+                }</span>
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+        public function addItem($item) {</span>
<span style="color: #00A000">+                $url = $this-&gt;rootURL().&#39;?&#39;.</span>
<span style="color: #00A000">+                        MediaBrotha_Core::value2hash(</span>
<span style="color: #00A000">+                                &#39;mime_type=&#39;.urlencode($item-&gt;getMimeType()).&#39;&amp;&#39;.</span>
<span style="color: #00A000">+                                ($item-&gt;getMimeEncoding() ? (&#39;mime_encoding=&#39;.urlencode($item-&gt;getMimeEncoding()).&#39;&amp;&#39;) : &#39;&#39;).</span>
<span style="color: #00A000">+                                &#39;uri=&#39;.urlencode($item-&gt;getURI()));</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $li = $this-&gt;_xml-&gt;createElement(&#39;li&#39;);</span>
<span style="color: #00A000">+                $li = $this-&gt;_mediaListElement-&gt;appendChild($li);</span>
<span style="color: #00A000">+                $li-&gt;setAttribute(&#39;class&#39;, &#39;mediaElement&#39;);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $a = $this-&gt;_xml-&gt;createElement(&#39;a&#39;);</span>
<span style="color: #00A000">+                $a = $li-&gt;appendChild($a);</span>
<span style="color: #00A000">+                $a-&gt;setAttribute(&#39;href&#39;, $url);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $text = $this-&gt;_xml-&gt;createTextNode($item-&gt;getDisplayName());</span>
<span style="color: #00A000">+                $text = $a-&gt;appendChild($text);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $ul = $this-&gt;_xml-&gt;createElement(&#39;ul&#39;);</span>
<span style="color: #00A000">+                $ul = $li-&gt;appendChild($ul);</span>
<span style="color: #00A000">+                $ul-&gt;setAttribute(&#39;class&#39;, &#39;mediaActionsListElement&#39;);</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+                $this-&gt;_mediaActionLinks($ul, $item, &#39;li&#39;);</span>
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+        public function finish($item) {</span>
<span style="color: #00A000">+                $this-&gt;_actionsListElement = $this-&gt;_xml-&gt;createElement(&#39;ul&#39;);</span>
<span style="color: #00A000">+                $this-&gt;_actionsListElement = $this-&gt;_body-&gt;appendChild($this-&gt;_actionsListElement);</span>
<span style="color: #00A000">+                $this-&gt;_actionsListElement-&gt;setAttribute(&#39;id&#39;, &#39;actionsListElement&#39;);</span>
<span style="color: #00A000">+                $this-&gt;_mediaActionLinks($this-&gt;_actionsListElement, $item, &#39;li&#39;);</span>
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+        public function render() {</span>
<span style="color: #00A000">+                print $this-&gt;_xml-&gt;saveHTML();</span>
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+}</span>
<span style="color: #00A000">+</span>
</pre></div>
========================================================================<pre>

Summary of changes:
 sathieu/cisco-xml/browser/static/default.css       |   49 ++++++++
 sathieu/cisco-xml/browser/static/dynamic.js        |    4 +
 .../cisco-xml/lib/MediaBrotha/Frontend/HTML.php    |  127 ++++++++++++++++++++
 3 files changed, 180 insertions(+), 0 deletions(-)
 create mode 100644 sathieu/cisco-xml/browser/static/default.css
 create mode 100644 sathieu/cisco-xml/browser/static/dynamic.js
 create mode 100644 sathieu/cisco-xml/lib/MediaBrotha/Frontend/HTML.php
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH user-contributed scripts, etc</p>