Changeset 20983 for extensions


Ignore:
Timestamp:
Feb 23, 2013, 8:40:48 AM (12 years ago)
Author:
rvelices
Message:

rv_gmaps add a link to the global map in the menubar

Location:
extensions/rv_gmaps/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/language/de_DE/lang.php

    r17751 r20983  
    11<?php
    22$lang['Map']='Karte';
     3$lang['World map']='Weltkarte';
    34
    45$lang['displays %s on a map']='zeigt %s auf einer Karte an';
  • extensions/rv_gmaps/trunk/language/en_UK/lang.php

    r17705 r20983  
    11<?php
    22$lang['Map']='Map';
     3$lang['World map']='World Map';
    34
    45$lang['displays %s on a map']='displays %s on a map';
  • extensions/rv_gmaps/trunk/language/es_ES/lang.php

    r17799 r20983  
    11<?php
    22$lang['Map']='Mapa';
     3$lang['World map']='Mapa del mundo';
    34
    45$lang['displays %s on a map']='Visualizar %s sobre el mapa';
  • extensions/rv_gmaps/trunk/language/fr_FR/lang.php

    r18537 r20983  
    11<?php
    22$lang['Map']='Carte';
     3$lang['World map']='Carte du monde';
    34
    45$lang['displays %s on a map']='afficher %s sur la carte';
  • extensions/rv_gmaps/trunk/main.inc.php

    r18951 r20983  
    1515
    1616add_event_handler('picture_pictures_data', 'rvm_picture_pictures_data' );
     17add_event_handler('blockmanager_apply', 'rvm_blockmanager_apply');
    1718
    1819global $rvm_dir;
     
    113114}
    114115
     116function rvm_blockmanager_apply($mb_arr)
     117{
     118        if ($mb_arr[0]->get_id() != 'menubar' )
     119                return;
     120        if ( ($block=$mb_arr[0]->get_block('mbMenu')) != null )
     121        {
     122                include_once( dirname(__FILE__) .'/include/functions.php');
     123                rvm_load_language();
     124                global $conf;
     125                $link_title = sprintf( l10n('displays %s on a map'), strip_tags($conf['gallery_title']) );
     126                $block->data['rv_gmaps'] = array(
     127                        'URL' => rvm_make_map_index_url( array('section'=>'categories') ),
     128                        'TITLE' => $link_title,
     129                        'NAME' => l10n('World map'),
     130                        'REL'=> 'rel=nofollow'
     131                );
     132        }
     133}
     134
    115135function rvm_format_exif($exif, $file, $map)
    116136{
Note: See TracChangeset for help on using the changeset viewer.