예제 #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)));
         }
     }
 }
예제 #2
0
파일: index.php 프로젝트: tjankovic/FAB-UI
					<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'];
        ?>