示例#1
0
 public static function remove($files = array())
 {
     if (empty($files)) {
         $files = YireoHelper::getData('obsolete_files');
     }
     if (!empty($files)) {
         foreach ($files as $file) {
             if (file_exists($file)) {
                 if (is_file($file)) {
                     jimport('joomla.filesystem.file');
                     JFile::delete($file);
                 }
                 if (is_dir($file)) {
                     jimport('joomla.filesystem.folder');
                     JFolder::delete($file);
                 }
             }
         }
     }
 }
示例#2
0
 public function setTitle($title = null, $class = 'logo')
 {
     $component_title = YireoHelper::getData('title');
     $title = JText::_('LIB_YIREO_VIEW_HOME');
     if (file_exists(JPATH_SITE . '/media/' . $this->_option . '/images/' . $class . '.png')) {
         JToolBarHelper::title($component_title . ': ' . $title, $class);
     } else {
         JToolBarHelper::title($component_title . ': ' . $title, 'generic.png');
     }
 }
示例#3
0
<div class="well details">
    <p> 
    <i class="fa fa-twitter-square fa-lg"></i> <?php 
echo JText::_('LIB_YIREO_VIEW_HOME_TWITTER');
?>
: <a href="http://twitter.com/yireo">@yireo</a><br/>
    <i class="fa fa-facebook-square fa-lg"></i> <?php 
echo JText::_('LIB_YIREO_VIEW_HOME_FACEBOOK');
?>
: <a href="http://www.facebook.com/yireo">facebook.com/yireo</a><br/>

    <?php 
if (isset($this->urls['jed'])) {
    ?>
    <i class="fa fa-comments fa-lg"></i> <?php 
    echo JText::sprintf('LIB_YIREO_VIEW_HOME_VOTE', YireoHelper::getData('title'));
    ?>
: <a href="<?php 
    echo $this->urls['jed'];
    ?>
"><?php 
    echo JText::_('LIB_YIREO_VIEW_HOME_JED');
    ?>
</a><br/>
    <?php 
}
?>

    <?php 
if (isset($this->current_version)) {
    ?>
示例#4
0
 protected function setTitle($title = null, $class = 'yireo')
 {
     $component_title = YireoHelper::getData('title');
     if (empty($title)) {
         $views = YireoHelper::getData('views');
         if (!empty($views)) {
             foreach ($views as $view => $view_title) {
                 if ($this->_view == $view) {
                     $title = $view_title;
                     break;
                 }
             }
         }
     }
     if ($this->_single) {
         $pretext = $this->isEdit() ? JText::_('LIB_YIREO_VIEW_EDIT') : JText::_('LIB_YIREO_VIEW_NEW');
         $title = $pretext . ' ' . $title;
     }
     if (file_exists(JPATH_SITE . '/media/' . $this->_option . '/images/' . $class . '.png')) {
         JToolBarHelper::title($component_title . ': ' . $title, $class);
     } else {
         JToolBarHelper::title($component_title . ': ' . $title, 'generic.png');
     }
     return;
 }
 * @package YireoLib
 * @copyright Copyright 2012
 * @license GNU Public License
 * @link https://www.yireo.com/
 * @version 0.4.3
 */
defined('_JEXEC') or die('Restricted access');
?>
<table id="adminform" width="100%">
<tr>
<td width="60%" valign="top">

<div id="cpanel">
<?php 
echo $this->loadTemplate('cpanel');
echo $this->loadTemplate('version');
echo $this->loadTemplate('review', array('extension' => YireoHelper::getData('title')));
echo $this->loadTemplate('twitter');
echo $this->loadTemplate('facebook');
?>
</div>

</td>
<td width="40%" valign="top" style="margin-top:0; padding:0">
<?php 
echo $this->loadTemplate('ads');
?>
</td>
</tr>
</table>