Ejemplo n.º 1
0
 function active($plugin)
 {
     if (!$this->is_active($plugin)) {
         if (file_exists(APPPATH . 'plugins/' . $plugin . '/' . $plugin . '.php')) {
             $this->load->helper('ft_plugin_helper');
             $plugin_info = plugin_info($plugin);
             $this->db->insert($this->_table_name, array('name' => $plugin, 'attributes' => json_encode($plugin_info)));
         }
     }
 }
Ejemplo n.º 2
0
					<tr>
						<th>Plugin</th>
						<th class="text-center hidden-xs">Version</th>
						<th class="text-center hidden-xs">Author</th>
					</tr>
				</thead>
				
				<tbody>
				
				<?php 
    foreach ($installed_plugins as $plugin) {
        ?>
				
				
				<?php 
        $plugin_info = plugin_info($plugin['plugin']);
        ?>
				
					<tr>
						<td>
							<h4>
								<a href="javascript:void(0)"><?php 
        echo $plugin_info['title'];
        ?>
</a>
								<small><?php 
        echo $plugin_info['description'];
        ?>
 | <a  target="_blank" href="<?php 
        echo $plugin_info['plugin_uri'];
        ?>