Changeset 19335


Ignore:
Timestamp:
Dec 8, 2012, 7:20:58 PM (8 years ago)
Author:
julien1311
Message:

tooltip
language update

Location:
extensions/Media_Icon
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Media_Icon/admin.php

    r19325 r19335  
    55//Load globals
    66global $conf, $page;
     7
     8//CSS Style
     9add_event_handler('loc_end_page_header', 'media_icon_admin_css');
    710
    811//Library for tabs
     
    4245                break;
    4346}
     47
     48function media_icon_admin_css() {
     49        global $template, $conf;
     50       
     51        $conf_media_icon_general = unserialize($conf['media_icon_general']);
     52
     53        //add a stylesheet
     54        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">');
     55        $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'admin/admin.css">');
     56}
    4457?>
  • extensions/Media_Icon/admin/admin_general.php

    r19329 r19335  
    3333//Assign the template contents to ADMIN_CONTENT
    3434$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    35 
    36 add_event_handler('loc_end_page_header', 'media_icon_admin_css');
    37 function media_icon_admin_css() {
    38         global $template, $conf;
    39        
    40         $conf_media_icon_general = unserialize($conf['media_icon_general']);
    41        
    42         //add a stylesheet
    43         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/media_icon.css">');
    44         $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.MEDIA_ICON_PATH.'template/'.$conf_media_icon_general['style'].'_media_icon.css">');
    45 }
    4635?>
  • extensions/Media_Icon/admin/admin_general.tpl

    r19324 r19335  
    2424</style>
    2525{/literal}{/html_head}
     26{footer_script}{literal}
     27jQuery(".showInfo").tipTip({
     28  delay: 0,
     29  fadeIn: 200,
     30  fadeOut: 200,
     31  maxWidth: '300px',
     32  defaultPosition: 'right'
     33});
     34{/literal}{/footer_script}
     35
    2636
    2737<div class="titrePage">
     
    5161<fieldset>
    5262        <legend>{'Result'|@translate}</legend>
    53         <div class="media_icon_admin_element">{'Youtube videos'|@translate}<span class="media_icon_admin_youtube"></span></div>
    54         <div class="media_icon_admin_element">{'Vimeo videos'|@translate} <span class="media_icon_admin_vimeo"></span></div>
    55         <div class="media_icon_admin_element">{'Dailymotion videos'|@translate} <span class="media_icon_admin_dailymotion"></span></div>
    56         <div class="media_icon_admin_element">{'Wat videos'|@translate} <span class="media_icon_admin_wat"></span></div>
    57         <div class="media_icon_admin_element">{'Wideo videos'|@translate} <span class="media_icon_admin_wideo"></span></div>
    58         <div class="media_icon_admin_element">{'pdf files'|@translate} <span class="media_icon_admin_pdf"></span></div>
    59         <div class="media_icon_admin_element">{'Documents'|@translate} <span class="media_icon_admin_document"></span></div>
    60         <div class="media_icon_admin_element">{'Spreadsheets'|@translate} <span class="media_icon_admin_spreadsheet"></span></div>
    61         <div class="media_icon_admin_element">{'Presentations'|@translate} <span class="media_icon_admin_presentation"></span></div>
     63        <div class="media_icon_admin_element">{'Youtube videos'|@translate} <a class="showInfo" title="{'Videos added with'|@translate} <a href='http://piwigo.org/ext/extension_view.php?eid=136'>Embedded Videos</a>">i</a><span class="media_icon_admin_youtube"></span></div>
     64        <div class="media_icon_admin_element">{'Vimeo videos'|@translate} <a class="showInfo" title="{'Videos added with'|@translate} <a href='http://piwigo.org/ext/extension_view.php?eid=136'>Embedded Videos</a>">i</a><span class="media_icon_admin_vimeo"></span></div>
     65        <div class="media_icon_admin_element">{'Dailymotion videos'|@translate} <a class="showInfo" title="{'Videos added with'|@translate} <a href='http://piwigo.org/ext/extension_view.php?eid=136'>Embedded Videos</a>">i</a><span class="media_icon_admin_dailymotion"></span></div>
     66        <div class="media_icon_admin_element">{'Wat videos'|@translate} <a class="showInfo" title="{'Videos added with'|@translate} <a href='http://piwigo.org/ext/extension_view.php?eid=136'>Embedded Videos</a>">i</a><span class="media_icon_admin_wat"></span></div>
     67        <div class="media_icon_admin_element">{'Wideo videos'|@translate} <a class="showInfo" title="{'Videos added with'|@translate} <a href='http://piwigo.org/ext/extension_view.php?eid=136'>Embedded Videos</a>">i</a><span class="media_icon_admin_wideo"></span></div>
     68        <div class="media_icon_admin_element">{'pdf files'|@translate} <a class="showInfo" title="{'pdf files'|@translate}">i</a><span class="media_icon_admin_pdf"></span></div>
     69        <div class="media_icon_admin_element">{'Documents'|@translate} <a class="showInfo" title="{'doc, docx or odt files'|@translate}">i</a><span class="media_icon_admin_document"></span></div>
     70        <div class="media_icon_admin_element">{'Spreadsheets'|@translate} <a class="showInfo" title="{'xls, xlsx or ods files'|@translate}">i</a><span class="media_icon_admin_spreadsheet"></span></div>
     71        <div class="media_icon_admin_element">{'Presentations'|@translate} <a class="showInfo" title="{'ppt, pptx or odp files'|@translate}">i</a><span class="media_icon_admin_presentation"></span></div>
    6272</fieldset>
  • extensions/Media_Icon/language/en_UK/plugin.lang.php

    r19324 r19335  
    11<?php
    22$lang['Media Icon Plugin'] = 'Media Icon Plugin';
     3
     4//admin.php or common to all admin files
     5$lang['General'] = 'General';
     6$lang['Advanced options'] = 'Advanced options';
     7$lang['Information data registered in database'] = 'Information data registered in database';
     8
     9//admin_general.tpl
    310$lang['Style'] = 'Style';
    4 $lang['Result'] = 'Result';
    511$lang['Icon style:'] = 'Icon style:';
    612$lang['Logo'] = 'Logo';
     
    1521$lang['Wat videos'] = 'Wat videos';
    1622$lang['Wideo videos'] = 'Wideo videos';
    17 $lang['pdf files'] = 'pdf files';
    1823$lang['Documents'] = 'Documents';
    1924$lang['Spreadsheets'] = 'Spreadsheets';
    2025$lang['Presentations'] = 'Presentations';
    21 $lang['Information data registered in database'] = 'Information data registered in database';
    22 
    23 //admin.php
    24 $lang['General'] = 'General';
    25 $lang['Advanced options'] = 'Advanced options';
     26$lang['Videos added with'] = 'Videos added with';
     27$lang['pdf files'] = 'pdf files';
     28$lang['doc, docx or odt files'] = 'doc, docx or odt files';
     29$lang['xls, xlsx or ods files'] = 'xls, xlsx or ods files';
     30$lang['ppt, pptx or odp files'] = 'ppt, pptx or odp files';
    2631
    2732//admin_advanced.php
  • extensions/Media_Icon/language/es_ES/plugin.lang.php

    r19324 r19335  
    11<?php
    22$lang['Media Icon Plugin'] = 'Plugin Media Icon';
     3
     4//admin.php or common to all admin files
     5$lang['General'] = 'General';
     6$lang['Advanced options'] = 'Opciones avanzadas';
     7$lang['Information data registered in database'] = 'Datos registrados en la base de datos';
     8
     9//admin_general.tpl
    310$lang['Style'] = 'Estilo';
    4 $lang['Result'] = 'Resultado';
    511$lang['Icon style:'] = 'Estilo de los iconos :';
    612$lang['Logo'] = 'Logo';
     
    1521$lang['Wat videos'] = 'Vídeos Wat';
    1622$lang['Wideo videos'] = 'Vídeos Wideo';
    17 $lang['pdf files'] = 'Archivo pdf';
    1823$lang['Documents'] = 'Documentos';
    1924$lang['Spreadsheets'] = 'Hojas de cálculo';
    2025$lang['Presentations'] = 'Presentaciones';
    21 $lang['Information data registered in database'] = 'Datos registrados en la base de datos';
    22 
    23 //admin.php
    24 $lang['General'] = 'General';
    25 $lang['Advanced options'] = 'Opciones avanzadas';
     26$lang['Videos added with'] = 'Vídeo añadido con';
     27$lang['pdf files'] = 'Archivos pdf';
     28$lang['doc, docx or odt files'] = 'Archivos doc, docx o odt';
     29$lang['xls, xlsx or ods files'] = 'Archivos xls, xlsx o ods';
     30$lang['ppt, pptx or odp files'] = 'Archivos ppt, pptx o odp';
    2631
    2732//admin_advanced.php
  • extensions/Media_Icon/language/fr_FR/plugin.lang.php

    r19324 r19335  
    11<?php
    22$lang['Media Icon Plugin'] = 'Plugin Media Icon';
     3
     4//admin.php or common to all admin files
     5$lang['General'] = 'Général';
     6$lang['Advanced options'] = 'Options avancées';
     7$lang['Information data registered in database'] = 'Informations enregistrées dans la base de données';
     8
     9//admin_general.tpl
    310$lang['Style'] = 'Style';
    4 $lang['Result'] = 'Résultat';
    511$lang['Icon style:'] = 'Style d\'icône :';
    612$lang['Logo'] = 'Logo';
     
    1925$lang['Spreadsheets'] = 'Tableurs';
    2026$lang['Presentations'] = 'Présentations';
    21 $lang['Information data registered in database'] = 'Informations enregistrées dans la base de données';
    22 
    23 //admin.php
    24 $lang['General'] = 'Général';
    25 $lang['Advanced options'] = 'Options avancées';
     27$lang['Videos added with'] = 'Videos added with';
     28$lang['pdf files'] = 'Fichiers pdf';
     29$lang['doc, docx or odt files'] = 'Fichiers doc, docx ou odt';
     30$lang['xls, xlsx or ods files'] = 'Fichiers xls, xlsx ou ods';
     31$lang['ppt, pptx or odp files'] = 'Fichiers ppt, pptx ou odp';
    2632
    2733//admin_advanced.php
  • extensions/Media_Icon/template/media_icon.css

    r19324 r19335  
    77.media_icon_document,
    88.media_icon_spreadsheet,
    9 .media_icon_presentation,
    10 .media_icon_admin_youtube,
    11 .media_icon_admin_vimeo,
    12 .media_icon_admin_dailymotion,
    13 .media_icon_admin_wat,
    14 .media_icon_admin_wideo,
    15 .media_icon_admin_pdf,
    16 .media_icon_admin_document,
    17 .media_icon_admin_spreadsheet,
    18 .media_icon_admin_presentation   {
     9.media_icon_presentation   {
    1910        width: 60px;
    2011        height: 60px;
    2112        z-index:99;
    2213}
    23 
    24 .media_icon_admin_youtube,
    25 .media_icon_admin_vimeo,
    26 .media_icon_admin_dailymotion,
    27 .media_icon_admin_wat,
    28 .media_icon_admin_wideo,
    29 .media_icon_admin_pdf,
    30 .media_icon_admin_document,
    31 .media_icon_admin_spreadsheet,
    32 .media_icon_admin_presentation {
    33         display: block;
    34         margin-left: auto;
    35         margin-right: auto;
    36         margin-bottom: 2em;
    37 }
Note: See TracChangeset for help on using the changeset viewer.