Plugin Directory

Changeset 1505579


Ignore:
Timestamp:
09/30/2016 04:50:17 AM (9 years ago)
Author:
joje47
Message:

Changed vocabulary (webpage to website) and hide the headlines for category external links and event-page if empty.

Location:
ngo-list
Files:
12 added
2 edited

Legend:

Unmodified
Added
Removed
  • ngo-list/trunk/ngo-list.php

    r1501823 r1505579  
    44 * Plugin URI: https://ngo-portal.org
    55 * Description: Detta tillägg visar en föreningslista på Föreningsportalen, inklusive externa sidor och event-sidor. Ska vara aktiverad på portalen, ej på föreningssidorna.
    6  * Version: 1.3.2
     6 * Version: 1.3.3
    77 * Author: George Bredberg
    88 * Author URI: https://datagaraget.se
     
    5656}
    5757
    58 /////////////////////////////////////////////////////////////////////////////////////
    59 // Check to see if mandatory link-categories exists. If not, warn the user.        //
     58//////////////////////////////////////////////////////////////////////////////
     59// Check to see if mandatory link-categories exists. If not, warn the user.            //
    6060// Link-categories are created at plugin activation, but could be deleted by user. //
    61 /////////////////////////////////////////////////////////////////////////////////////
     61/////////////////////////////////////////////////////////////////////////////
    6262add_action( 'admin_init', 'ngol_check_link_cat' );
    6363function ngol_check_link_cat() {
     
    122122        }
    123123      }
    124 
    125124      xmlhttp.open("GET",pluginUrl+"livesearch.php?q="+str,true);
    126125      xmlhttp.send();
     
    147146
    148147    echo '<div><ul>';
    149     ?><h2><?php _e('Hemsidor', 'ngo-list');?>:</h2><?php
     148    ?><h2><?php _e('Webbplatser', 'ngo-list');?>:</h2><?php
    150149    echo '</ul></div>';
    151150   
     
    208207    ));
    209208    echo '<div><ul class="sitelist">';
     209
     210    if( !empty( $external_links ) ) {
     211        ?><h2><?php _e('Externa webbplatser', 'ngo-list');?>:</h2><?php
     212
     213        foreach ( $external_links as $external_link ) {
     214            echo '<li><a class="sitelist" target="_blank" href="'.$external_link->link_url.'">'.$external_link->link_name.'&nbsp;<img style="display: inline; !important" src="'.$ico_extern.'"/></a></li>';
     215        }
     216    }
     217
     218    if( !empty( $event_links ) ) {
     219        ?><h2><?php _e('Evenemangssidor', 'ngo-list')?>:</h2><?php
    210220   
    211     ?><h2><?php _e('Externa hemsidor', 'ngo-list');?>:</h2><?php
    212 
    213 
    214     foreach ( $external_links as $external_link ) {
    215         echo '<li><a class="sitelist" target="_blank" href="'.$external_link->link_url.'">'.$external_link->link_name.'&nbsp;<img style="display: inline; !important" src="'.$ico_extern.'"/></a></li>';
    216     }
    217 
    218     ?><h2><?php _e('Evenemangssidor', 'ngo-list')?>:</h2><?php
    219 
    220     foreach ( $event_links as $event_link ) {
    221         printf( '<li><a class="sitelist" href="%s">%s</a></li>', $event_link->link_url, $event_link->link_name );
    222     }
    223 
     221        foreach ( $event_links as $event_link ) {
     222            printf( '<li><a class="sitelist" href="%s">%s</a></li>', $event_link->link_url, $event_link->link_name );
     223        }
     224    }
    224225    echo '</ul></div>';
    225226}
  • ngo-list/trunk/readme.txt

    r1501823 r1505579  
    55Requires at least: 3.0.1
    66Tested up to: 4.6
    7 Stable tag: 1.3.2
     7Stable tag: 1.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343== Changelog ==
     44= 1.3.3 =
     45* Latest stable release
     46Changed vocabulary (webpage to website) and hide the headlines for category external links and event-page if empty.
     47
    4448= 1.3.2 =
    45 * Latest stable release
    4649Changed donation link (important stuff ;) )
    4750
Note: See TracChangeset for help on using the changeset viewer.