Changeset 73

Show
Ignore:
Timestamp:
06/26/10 16:59:36 (2 years ago)
Author:
daris
Message:

user_agent: css styling

Location:
branches/user_agent
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/user_agent/functions.php

    r72 r73  
    129129        $description = addslashes($useragent) . '\n\nSystem:\t\t' . addslashes($agent['system']) .'\nPrzeglądarka:\t' . addslashes($agent['browser_name']); 
    130130 
    131         $result = '<span style="cursor: pointer" onclick="alert(\'' . forum_htmlencode($description) . '\')">' . $result . '</span>'; 
     131        $result = '<span class="user-agent" onclick="alert(\'' . forum_htmlencode($description) . '\')">' . $result . '</span>'; 
    132132 
    133133        return $result; 
  • branches/user_agent/manifest.xml

    r72 r73  
    1616                    ]]></uninstall> 
    1717        <hooks> 
    18                 <hook id="vt_row_pre_display"><![CDATA[ 
    19                         $forum_page['author_info']['user_agent'] = '<li><span>'.get_useragent_icons($cur_post['user_agent']).'</span></li>'; 
     18 
     19                <hook id="hd_head"><![CDATA[ 
     20                        if (FORUM_PAGE == 'viewtopic') 
     21                                $forum_head['user-agent'] = '<style type="text/css">.user-agent { float: right; cursor: pointer; }</style>'; 
     22                ]]></hook> 
     23 
     24                <hook id="vt_row_pre_display" priority="10"><![CDATA[ 
     25                        $forum_page['author_info']['user_agent'] = get_useragent_icons($cur_post['user_agent']); 
    2026                ]]></hook> 
    2127                <hook id="vt_start"><![CDATA[