Example #1
0
<?php 
}
?>

<script type="text/javascript">
function gdsrStyleSelection(preview) {
    var gdsrImages = { <?php 
GDSRHelper::render_gfx_js($gdsr_gfx->stars);
?>
 };
    var gdsrTrends = { <?php 
GDSRHelper::render_gfx_js($gdsr_gfx->trend);
?>
 };
    var gdsrThumbs = { <?php 
GDSRHelper::render_gfx_js($gdsr_gfx->thumbs);
?>
 };
    var gdsrImagesExt = { <?php 
GDSRHelper::render_ext_gfx_js($gdsr_gfx->stars);
?>
 };
    var gdsrTrendsExt = { <?php 
GDSRHelper::render_ext_gfx_js($gdsr_gfx->trend);
?>
 };
    var gdsrThumbsExt = { <?php 
GDSRHelper::render_ext_gfx_js($gdsr_gfx->thumbs);
?>
 };
    var gdsrAuthors = { <?php 
<script>
function gdsrStyleSelection(preview) {
    var gdsrImages = { <?php 
GDSRHelper::render_gfx_js($gdsr_gfx->stars);
?>
 };
    var gdsrTrends = { <?php 
GDSRHelper::render_gfx_js($gdsr_gfx->trend);
?>
 };

    var gdsrImagesExt = { <?php 
GDSRHelper::render_ext_gfx_js($gdsr_gfx->stars);
?>
 };
    var gdsrTrendsExt = { <?php 
GDSRHelper::render_ext_gfx_js($gdsr_gfx->trend);
?>
 };
    
    var gdsrBase = "#gdsr_preview";
    var gdsrStyle = "";
    var gdsrSize = "";
    var gdsrImage = "";
    
    if (preview == "trends") {
        gdsrBase = gdsrBase + "_trends";
        gdsrStyle = jQuery("#gdsr_style_preview_trends").val();
        gdsrImage = gdsrTrends[gdsrStyle] + "trend." + gdsrTrendsExt[gdsrStyle];
    }
    else {