0
Welcome Guest! Login
0 items Join Now

Custom Logo PER Preset

    • landed's Avatar
    • landed
    • Hero Rocketeer
    • Posts: 369
    • Thanks: 1
    • I'm into Stylish things that just look good and function well.

    Custom Logo PER Preset

    Posted 12 years 3 weeks ago
    • I see that gantry for Alerion has a build logo script that doesnt take the preset style into account. So no matter what it will show the same logo. I was wanting to implement a hack to swap the logo by filename convention.
      So what I need is to pick up the preset value. Say my url is ?presets=ls then I want to build the logo thus:
      //print_r($gantry->presets['name']);
      $output .= "#rt-logo {background: url(".$source.") 50% 0 no-repeat !important;}"."\n";

      presets doesn't work but thats not the keyname anyway though I could use the actual preset name rather than the keyword..


      a fix is simply using php
      $presets=$_GET;
      I am aware that this may not work if someone hacks the url or it gets manipulated by google crawlers in some way.

      Thank You

Time to create page: 0.068 seconds