function readIniFile()
 {
     global $mainframe;
     $template = $mainframe->isAdmin() ? RokCandyHelper::getCurrentTemplate() : $mainframe->getTemplate();
     $path = JPATH_SITE . DS . "templates" . DS . $template . DS . "html" . DS . "com_rokcandy" . DS . "default.ini";
     $library = array();
     if (file_exists($path)) {
         jimport('joomla.filesystem.file');
         $content = JFile::read($path);
         $data = explode("\n", $content);
         foreach ($data as $line) {
             //skip comments
             if (strpos($line, "#") !== 0 and trim($line) != "") {
                 $div = strpos($line, "]=");
                 $library[substr($line, 0, $div + 1)] = substr($line, $div + 2);
             }
         }
     }
     return $library;
 }
Ejemplo n.º 2
0
 static function readIniFile()
 {
     $app = JFactory::getApplication();
     $template = $app->isAdmin() ? RokCandyHelper::getCurrentTemplate() : $app->getTemplate();
     $path = JPATH_SITE . "/templates/" . $template . "/html/com_rokcandy/default.ini";
     $library = array();
     if (file_exists($path)) {
         jimport('joomla.filesystem.file');
         $content = JFile::read($path);
         $data = explode("\n", $content);
         if (!empty($data)) {
             foreach ($data as $line) {
                 //skip comments
                 if (strpos($line, "#") !== 0 and trim($line) != "") {
                     $div = strpos($line, "]=");
                     $library[substr($line, 0, $div + 1)] = substr($line, $div + 2);
                 }
             }
         }
     }
     return $library;
 }
Ejemplo n.º 3
0
 function getTemplate()
 {
     return RokCandyHelper::getCurrentTemplate();
 }
Ejemplo n.º 4
0
                    <?php 
        echo $macro;
        ?>
                </div>
                <div class="pull-left"></div>
            </td>
            <td class="nowrap has-context"><?php 
        echo htmlentities($html);
        ?>
</td>
            <td align="nowrap has-context" class="macro"><?php 
        echo ucfirst(RokCandyHelper::getCurrentTemplate());
        ?>
 Overrides</td>
            <td align="center"><?php 
        echo strtolower(RokCandyHelper::getCurrentTemplate());
        ?>
        </tr>
            <?php 
    }
    ?>
        <?php 
}
?>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="10">
            <?php 
echo $this->pagination->getListFooter();
?>