Browse Source

Update plugins with new structure

jmontoyaa 8 years ago
parent
commit
1f58d3ee02

+ 4 - 9
plugin/rss/index.php

@@ -1,15 +1,12 @@
 <?php
 
 $plugin = RssPlugin::create();
-
 $rss = $plugin->get_rss();
-
 $title = $plugin->get_block_title();
 $title = $title ? "<h4>$title</h4>" : '';
 
-$css = $plugin->get_css();
-$css = $css ? "<style type=\"text/css\" scoped=\"scoped\">$css</style>" : '';
-$bullet = api_get_path(WEB_PLUGIN_PATH).'rss/resources/arrow-bullet.png';
+$bullet = api_get_asset('plugins/rss/arrow-bullet.png');
+$css = api_get_css('plugins/rss/rss.css');
 
 if (empty($rss)) {
     Display::display_warning_message(get_lang('NoRSSItem'));
@@ -25,12 +22,10 @@ echo<<<EOT
         }
     </style>
     <div class="menusection">
-
-        <script type="text/javascript" src="http://www.google.com/jsapi"></script>
+        <script src="http://www.google.com/jsapi"></script>
         <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
-        <script type="text/javascript">
+        <script>
             google.load('feeds', '1');
-
             function OnLoad() {
                 var feeds = [
                     {

+ 0 - 0
plugin/rss/resources/arrow-bullet.png → plugin/rss/public/arrow-bullet.png


+ 41 - 41
plugin/rss/resources/color.css → plugin/rss/public/color.css

@@ -1,41 +1,41 @@
-
-.gfg-root a:link,
-.gfg-root a:visited,
-.gfg-root a:focus,
-.gfg-root a:active
-{
-    color: #CC0066;
-}
-
-.gfg-subtitle, .gfg-title{
-    background-color: #CC0066 !important;
-    color: #FFFFFF !important;
-}
-
-.gfg-subtitle > a{
-    color: #FFFFFF !important;
-}
-
-.gfg-subtitle > a:hover{
-    color: black !important;
-}
-
-.gfg-root a:hover, .gfg-subtitle:hover {
-    color: black;
-}
-
-.gfg-listentry-odd:hover{
-    background-color: #E9E9F0 !important;
-}
-
-.gfg-listentry-even:hover{
-    background-color: #E9E9F0 !important;
-}
-
-.gfg-horizontal-root .gfg-entry .gf-result, .gfg-horizontal-root .gfg-entry, .gfg-horizontal-root .gf-snippet{
-    background-color: white !important;
-}
-
-.gfg-horizontal-root .gfg-entry {
-    background-color: white !important;
-}
+
+.gfg-root a:link,
+.gfg-root a:visited,
+.gfg-root a:focus,
+.gfg-root a:active
+{
+    color: #CC0066;
+}
+
+.gfg-subtitle, .gfg-title{
+    background-color: #CC0066 !important;
+    color: #FFFFFF !important;
+}
+
+.gfg-subtitle > a{
+    color: #FFFFFF !important;
+}
+
+.gfg-subtitle > a:hover{
+    color: black !important;
+}
+
+.gfg-root a:hover, .gfg-subtitle:hover {
+    color: black;
+}
+
+.gfg-listentry-odd:hover{
+    background-color: #E9E9F0 !important;
+}
+
+.gfg-listentry-even:hover{
+    background-color: #E9E9F0 !important;
+}
+
+.gfg-horizontal-root .gfg-entry .gf-result, .gfg-horizontal-root .gfg-entry, .gfg-horizontal-root .gf-snippet{
+    background-color: white !important;
+}
+
+.gfg-horizontal-root .gfg-entry {
+    background-color: white !important;
+}

+ 101 - 101
plugin/rss/resources/rss.css → plugin/rss/public/rss.css

@@ -1,102 +1,102 @@
-@import url(http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css);
-
-.well.sidebar-nav.rss
-{
-}
-
-/*google feeds*/
-
-.gfg-listentry-highlight,
-.gfg-listentry
-{
-    background-position: left center;
-    background-repeat: no-repeat;
-    padding-left: 20px;
-}
-
-.gfg-root a:link,
-.gfg-root a:visited,
-.gfg-root a:focus,
-.gfg-root a:active
-{
-    font-weight: normal;
-    text-decoration: none;
-}
-
-.gfg-root {
-    border-left:0px;
-    border-right:0px;
-    border-top:0px ;
-}
-.gfg-listentry {
-    line-height: 14px !important;
-}
-
-.gfg-listentry{
-    white-space: normal;
-}
-
-.gfg-subtitle, .gfg-title{
-    font-weight: bold ;
-}
-
-.gfg-title{
-    display: none;
-}
-
-.gfg-subtitle a:link, .gfg-title a:link{
-    font-weight: bold;
-}
-
-.gfg-root .gfg-entry .gf-result .gf-title{
-    white-space: normal !important;
-}
-
-.gfg-entry{
-    height:9.5em !important;
-    /*    border: 1px solid grey;
-        border-radius: 8px 8px 8px 8px;
-        margin:2px;*/
-}
-
-.gfg-root, .gfg-entry, .gf-result, .gf-snippet{
-    background-color: transparent !important;
-}
-
-.gfg-root a:hover, .gfg-subtitle:hover {
-    text-decoration: none;
-}
-
-.gfg-listentry{
-    height: auto;
-    padding-top:4px;
-    padding-bottom: 4px;
-    border-bottom-style: dotted;
-    border-bottom-width: 1px;
-}
-
-.gfg-listentry-odd {
-    background-color: transparent !important;
-}
-
-.gf-author, .gf-relativePublishedDate, .gf-spacer{
-    display:none !important;
-}
-
-.gfg-horizontal-root .gfg-entry .gf-result .gf-snippet {
-    display: block;
-    clear:both;
-}
-
-.gfg-branding{
-    display:none;
-}
-
-.gfg-horizontal-root{
-    height: auto;
-    border:none;
-}
-
-.gfg-horizontal-container{
-    display:inline;
+@import url(http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css);
+
+.well.sidebar-nav.rss
+{
+}
+
+/*google feeds*/
+
+.gfg-listentry-highlight,
+.gfg-listentry
+{
+    background-position: left center;
+    background-repeat: no-repeat;
+    padding-left: 20px;
+}
+
+.gfg-root a:link,
+.gfg-root a:visited,
+.gfg-root a:focus,
+.gfg-root a:active
+{
+    font-weight: normal;
+    text-decoration: none;
+}
+
+.gfg-root {
+    border-left:0px;
+    border-right:0px;
+    border-top:0px ;
+}
+.gfg-listentry {
+    line-height: 14px !important;
+}
+
+.gfg-listentry{
+    white-space: normal;
+}
+
+.gfg-subtitle, .gfg-title{
+    font-weight: bold ;
+}
+
+.gfg-title{
+    display: none;
+}
+
+.gfg-subtitle a:link, .gfg-title a:link{
+    font-weight: bold;
+}
+
+.gfg-root .gfg-entry .gf-result .gf-title{
+    white-space: normal !important;
+}
+
+.gfg-entry{
+    height:9.5em !important;
+    /*    border: 1px solid grey;
+        border-radius: 8px 8px 8px 8px;
+        margin:2px;*/
+}
+
+.gfg-root, .gfg-entry, .gf-result, .gf-snippet{
+    background-color: transparent !important;
+}
+
+.gfg-root a:hover, .gfg-subtitle:hover {
+    text-decoration: none;
+}
+
+.gfg-listentry{
+    height: auto;
+    padding-top:4px;
+    padding-bottom: 4px;
+    border-bottom-style: dotted;
+    border-bottom-width: 1px;
+}
+
+.gfg-listentry-odd {
+    background-color: transparent !important;
+}
+
+.gf-author, .gf-relativePublishedDate, .gf-spacer{
+    display:none !important;
+}
+
+.gfg-horizontal-root .gfg-entry .gf-result .gf-snippet {
+    display: block;
+    clear:both;
+}
+
+.gfg-branding{
+    display:none;
+}
+
+.gfg-horizontal-root{
+    height: auto;
+    border:none;
+}
+
+.gfg-horizontal-container{
+    display:inline;
 }

+ 1 - 2
plugin/rss/readme.txt → plugin/rss/readme.md

@@ -1,4 +1,3 @@
 Display RSS feeds using the Google Dynamic Feed control.
-<p>
+
 See http://www.google.com/uds/solutions/dynamicfeed/index.html for further information.
-</p>

+ 1 - 1
plugin/search_course/plugin.php

@@ -1,4 +1,4 @@
-<?php 
+<?php
 /**
  * @copyright (c) 2011 University of Geneva
  * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html

+ 0 - 0
plugin/search_course/readme.txt → plugin/search_course/readme.md


+ 0 - 0
plugin/show_user_info/readme.txt → plugin/show_user_info/readme.md