Changeset 19647


Ignore:
Timestamp:
12/29/12 18:17:37 (7 years ago)
Author:
julien1311
Message:

lots of things...

Location:
extensions/Media_Icon
Files:
2 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Media_Icon/admin/admin_advanced.php

    r19427 r19647  
    5858        ) 
    5959); 
    60 $template->assign('media_icon_admin_path', PHPWG_ROOT_PATH); 
     60$template->assign('media_icon_admin_path', PHPWG_ROOT_PATH.MEDIA_ICON_PATH); 
    6161 
    6262//Add our template to the global template 
  • extensions/Media_Icon/admin/admin_advanced.tpl

    r19427 r19647  
    7575                <legend>{'Result'|@translate}</legend> 
    7676                        <span style="float: left;"> 
    77                                 <a href="#" style="position: absolute; clip: rect(0px, 323px, 200px, 0px);"><span class="media_icon media_icon_pdf_{$media_icon_style}"></span><img class="thumbnail" alt="landscape" src="{$media_icon_admin_path}plugins/media_icon/admin/img/landscape.png" width="323" height="200" /></a> 
     77                                <a href="#" style="position: absolute; clip: rect(0px, 323px, 200px, 0px);"><span class="media_icon media_icon_pdf_{$media_icon_style}"></span><img class="thumbnail" alt="landscape" src="{$media_icon_admin_path}admin/img/landscape.png" width="323" height="200" /></a> 
    7878                        </span> 
    7979                        <span style="float: left; margin-left: 333px;"> 
    80                                 <a href="#" style="position: absolute; clip: rect(0px, 150px, 200px, 0px);"><span class="media_icon media_icon_youtube_{$media_icon_style}"></span><img class="thumbnail" alt="portrait" src="{$media_icon_admin_path}plugins/media_icon/admin/img/portrait.png" width="150" height="200" /></a> 
     80                                <a href="#" style="position: absolute; clip: rect(0px, 150px, 200px, 0px);"><span class="media_icon media_icon_youtube_{$media_icon_style}"></span><img class="thumbnail" alt="portrait" src="{$media_icon_admin_path}admin/img/portrait.png" width="150" height="200" /></a> 
    8181                        </span> 
    8282                        <span class="media_icon_clear"></span> 
  • extensions/Media_Icon/main.inc.php

    r19631 r19647  
    1414define('MEDIA_ICON_PATH' , PHPWG_PLUGINS_PATH.MEDIA_ICON_DIR.'/'); 
    1515define('MEDIA_ICON_ABSOLUTE_PATH' , dirname(__FILE__).'/'); 
    16 define('MEDIA_ICON_ADMIN',   get_root_url() . 'admin.php?page=plugin-Media_Icon'); 
     16define('MEDIA_ICON_ADMIN',   get_root_url() . 'admin.php?page=plugin-'.MEDIA_ICON_DIR); 
    1717 
    1818/* +-----------------------------------------------------------------------+ 
     
    3838         
    3939include_once(MEDIA_ICON_PATH.'include/thumbnails.inc.php'); 
    40 include_once(MEDIA_ICON_PATH.'include/picture.inc.php'); 
    4140 
    4241/* +-----------------------------------------------------------------------+ 
  • extensions/Media_Icon/maintain.inc.php

    r19631 r19647  
    33 
    44function plugin_install() { 
    5         include(dirname(__FILE__).'/install/functions.inc.php'); 
    6         include(dirname(__FILE__).'/install/config_default.inc.php'); 
     5        include_once(dirname(__FILE__).'/install/functions.inc.php'); 
     6        include_once(dirname(__FILE__).'/install/config_default.inc.php'); 
    77 
    88        media_icon_install_general($config_default_general); 
     
    1111 
    1212function plugin_activate() { 
    13         include(dirname(__FILE__).'/install/functions.inc.php'); 
     13        include_once(dirname(__FILE__).'/install/functions.inc.php'); 
    1414         
    1515        media_icon_update_db(); 
     
    1717 
    1818function plugin_uninstall() { 
     19        include_once(dirname(__FILE__).'/install/functions.inc.php'); 
     20 
    1921        media_icon_delete_conf("media_icon_general"); 
    2022        media_icon_delete_conf("media_icon_advanced"); 
  • extensions/Media_Icon/template/media_icon.css

    r19427 r19647  
    11.media_icon  { 
    2         width: 60px; 
    3         height: 60px; 
     2        width: 50px !important; 
     3        height: 50px !important; 
    44        z-index:99; 
    55        position: absolute; 
  • extensions/Media_Icon/template/media_icon.tpl

    r19427 r19647  
     1{combine_script id="jquery" load="header"} 
    12{html_head} 
    23{literal} 
     
    1011                {$media_icon_advanced.yposition}; 
    1112{literal} 
    12 } 
     13        } 
     14        .thumbnails .wrap2 A { 
     15                position: relative; 
     16         
     17        } 
    1318</style> 
    1419<script type="text/javascript"> 
Note: See TracChangeset for help on using the changeset viewer.