Advertisement
Guest User

Untitled

a guest
Nov 18th, 2010
365
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <extension engine="1.0">
  2.     <id>postimg_slimbox</id>
  3.     <title>Slimbox for postimg</title>
  4.     <version>1.0.1</version>
  5.     <description>Big post images are displayed in slimbox. Require jquery.</description>
  6.     <author>YonasH</author>
  7.  
  8.     <minversion>1.3dev</minversion>
  9.     <maxtestedon>1.3.2</maxtestedon>
  10.  
  11.     <note type="install" timing="pre">Tested in Internet Explorer 7 and FireFox 3.</note>
  12.  
  13.     <dependencies>
  14.         <dependency>jquery</dependency>
  15.     </dependencies>
  16.  
  17.     <hooks>
  18.         <hook id="hd_head"><![CDATA[
  19. if (defined('FORUM_PAGE') && FORUM_PAGE == 'viewtopic')
  20. {
  21.     if (file_exists($ext_info['path'].'/style/'.$forum_user['style'].'/'.$ext_info['id'].'.css'))
  22.         $forum_head['postimg_slimbox_style'] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/style/'.$forum_user['style'].'/'.$ext_info['id'].'.css" />';
  23.     else
  24.         $forum_head['postimg_slimbox_style'] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/style/Oxygen/'.$ext_info['id'].'.css" />';
  25.     $forum_head['postimg_slimbox'] = '<script type="text/javascript" src="'.$ext_info['url'].'/slimbox2.js"></script>';
  26. }
  27.         ]]></hook>
  28.     </hooks>
  29. </extension>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement