Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 2nd, 2013  |  syntax: PHP  |  size: 1.12 KB  |  views: 2  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (!function_exists('avia_advanced_hr')) {
  2.      function avia_advanced_hr($text = "", $class = "")
  3.      {
  4.           $output = "";
  5.           if ($text !== false) {
  6.                if ("thin" !== $text) {
  7.                     $output.= '<div class="hr hr_flag ' . $class . '">';
  8.                     $output.= '         <div class="primary-background hr_color">';
  9.                     $output.= '         <span class="flag-text on-primary-color">' . $text . '</span>';
  10.                     $output.= '         </div>';
  11.                } else {
  12.                     $output.= '<div class="fi-hr hr_flag">';
  13.                     $output.= '<span class="hr-seperator extralight-border"></span>';
  14.                     $output.= '</div>';
  15.                }
  16.           } else {
  17.                $output.= '<div class="hr hr_flag ' . $class . '">';
  18.                $output.= '      <span class="primary-background seperator-addon"></span>';
  19.           }
  20.  
  21.           $output.= '<div class="hr hr_flag ' . $class . '">';
  22.           $output.= '           <span class="hr-seperator extralight-border"></span>';
  23.           $output.= '</div>';
  24.           return $output;
  25.      }
  26. }