0
Welcome Guest! Login
0 items Join Now

Edit template image location files by gzipper or Rokgzipper

    • bbbh's Avatar
    • bbbh
    • Newbie
    • Posts: 3
    • Thanks: 0

    Edit template image location files by gzipper or Rokgzipper

    Posted 13 years 3 months ago
    • I want to relocate the image folder of the template. I understand that it is by relevant path to the css. is there a way in the Gantry gzipper php code to change the sting on file from "../images/" to ? or even in the Rokgzipper mod. i have been playing around with the Rokgzipper mod but i either break it and remove "../images" or nothing happens.
    • Last Edit: 9 years 4 months ago by Kat05.
    • bbbh's Avatar
    • bbbh
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: Edit template image location files by gzipper or Rokgzipper

    Posted 13 years 3 months ago
    • So i got it to work in rokgzipper

      function _stripCSSWhiteSpace($css_content) {
      // remove comments
      $css_content = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css_content);
      //replace ../images
      $css_content = str_replace("../images/", "images.example.com/", $css_content);
      // remove tabs, spaces, newlines, etc.
      $css_content = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $css_content);
      return $css_content;
      }

      Now my next question is how to change the rokgzipper menu page to add in a preset address

Time to create page: 0.056 seconds