52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
//Import Hybridauth's namespace
|
|
use Hybridauth\Hybridauth;
|
|
|
|
class Site extends WRB_Controller {
|
|
|
|
public function index() {
|
|
/* $data['sitename'] = 'home';
|
|
$this->load->view('templates/header_boxed', $data);
|
|
$this->load->view('users/view_index');
|
|
$this->load->view('users/view_external_footer');
|
|
* */
|
|
|
|
// Load Hybridauth's helper
|
|
$this->load->helper('hybridauth');
|
|
|
|
/*
|
|
// Instantiate Hybridauth's classes
|
|
$hybrid = new Hybridauth(get_hybridauth_config());
|
|
|
|
// Get login links
|
|
$login_links = get_hybridauth_links($hybrid, $this->router);
|
|
*/
|
|
$login_links = array(
|
|
'Google' => get_google_login_link(),
|
|
'Apple' => get_apple_login_link()
|
|
);
|
|
// Pass login links to html template
|
|
$data['login_links'] = $login_links;
|
|
|
|
// Render html template
|
|
$this->load->view('site3/external/view_home');
|
|
///home/oameye/wrenchboard/www/application/views/site3/external
|
|
}
|
|
|
|
public function registration() {
|
|
$this->load->view('users/view_registration');
|
|
}
|
|
|
|
public function login() {
|
|
|
|
// $this->load->view('users/view_index');
|
|
// $this->load->view('users/view_external_footer');
|
|
}
|
|
|
|
|
|
|
|
}
|