Changeset 3689 for extensions


Ignore:
Timestamp:
Jul 27, 2009, 11:30:25 AM (15 years ago)
Author:
flop25
Message:

comments work : thx to Grum for his help

Location:
extensions/floOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/picture.tpl

    r3618 r3689  
    104104                        {/foreach}
    105105                        <script type="text/javascript" src="{$ROOT_URL}{$themeconf.template_dir}/rating.js"></script>
    106                         <script type="text/javascript">
    107                         makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    108                         updateRateText: "{'update_rate'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
    109                         ratingSummaryText: "{'%.2f (rated %d times, standard deviation = %.2f)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    110                         </script>
    111106                        </div>
    112107                        </form>
     
    217212
    218213</table>
    219 
     214{if isset($rating)}
     215          <script type="text/javascript">
     216          makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
     217          updateRateText: "{'update_rate'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
     218          ratingSummaryText: "{'%.2f (rated %d times, standard deviation = %.2f)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
     219          </script>
     220{/if}
    220221{if isset($metadata)}
    221222<table class="infoTable" summary="Some more (technical) info about this picture">
  • extensions/floOS/theme/glass/themeconf.inc.php

    r3644 r3689  
    5959        }
    6060</style>
    61 ',
     61<![endif]-->',
    6262);
    6363?>
Note: See TracChangeset for help on using the changeset viewer.