Changeset 1657


Ignore:
Timestamp:
Dec 15, 2006, 5:57:45 AM (17 years ago)
Author:
rvelices
Message:

feature 603: rating buttons presented with stars (full Javascript
on compatible browsers, otherwise default presentation)

Location:
trunk/template/yoga
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/default-colors.css

    r1515 r1657  
    5151
    5252/* rate buttons displayed like links */
    53 INPUT.rateButton, INPUT.rateButtonSelected {
     53INPUT.rateButton, INPUT.rateButtonSelected, INPUT.rateButtonStarFull, INPUT.rateButtonStarEmpty {
    5454  color:inherit;
    5555  background-color:transparent; /* Konqueror doesn't accept transparent here */
  • trunk/template/yoga/picture.css

    r1515 r1657  
    9696}
    9797
    98 .rateButton, .rateButtonSelected  {
     98.rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty  {
    9999  padding:0;
    100100  border:0;
    101101}
    102102
    103 .rateButton {
     103.rateButton, .rateButtonStarFull, .rateButtonStarEmpty {
    104104  cursor: pointer;
    105105}
     
    108108  font-weight:bold;
    109109  font-size:120%;
     110}
     111
     112.rateButtonStarFull {
     113  background: url('icon/star_f.gif') no-repeat center;
     114  width: 16px;
     115}
     116
     117.rateButtonStarEmpty {
     118  background: url('icon/star_e.gif') no-repeat center;
     119  width: 16px;
    110120}
    111121
  • trunk/template/yoga/picture.tpl

    r1610 r1657  
    146146
    147147<!-- BEGIN rate -->
    148 <form action="{rate.F_ACTION}" method="post">
     148<form action="{rate.F_ACTION}" method="post" id="rateForm">
    149149<div>{rate.SENTENCE} :
    150150<!-- BEGIN rate_option -->
     
    157157<!-- END not_my_rate -->
    158158<!-- END rate_option -->
     159<script type="text/javascript" src="{pwg_root}{themeconf:template_dir}/rating.js"></script>
    159160</div>
    160161</form>
  • trunk/template/yoga/theme/clear/themeconf.inc.php

    r1377 r1657  
    33  'template' => 'yoga',
    44  'theme' => 'clear',
     5  'template_dir' => 'template/yoga',
    56  'icon_dir' => 'template/yoga/icon',
    67  'admin_icon_dir' => 'template/yoga/icon/admin',
  • trunk/template/yoga/theme/dark/themeconf.inc.php

    r1377 r1657  
    33  'template' => 'yoga',
    44  'theme' => 'dark',
     5  'template_dir' => 'template/yoga',
    56  'icon_dir' => 'template/yoga/icon',
    67  'admin_icon_dir' => 'template/yoga/icon/admin',
Note: See TracChangeset for help on using the changeset viewer.