Exemple #1
0
 function index()
 {
     // Layout components
     $components = array();
     $title = $this->config->item('site_title');
     $data_header = array('title' => $title, 'logged_in' => TRUE, 'body_class' => array('prefspage'));
     $data_calendar = array();
     $logo = $this->config->item('logo');
     $data_calendar['logo'] = custom_logo($logo, $title);
     $data_calendar['title'] = $title;
     $components['header'] = $this->load->view('common_header', $data_header, TRUE);
     $components['navbar'] = $this->load->view('navbar', $data_header, TRUE);
     // Calendar list
     $this->load->library('caldav');
     $calendar_list = $this->caldav->all_user_calendars($this->auth->get_user(), $this->auth->get_passwd());
     // TODO refactor this part
     $hidden_calendars = $this->prefs->hidden_calendars;
     if ($hidden_calendars === null) {
         $hidden_calendars = array();
     }
     $default_calendar = $this->prefs->default_calendar;
     $calendar_ids_and_dn = array();
     foreach ($calendar_list as $cal) {
         $calendar_ids_and_dn[$cal->calendar] = $cal->displayname;
     }
     $data_prefs = array('calendar_list' => $calendar_list, 'calendar_ids_and_dn' => $calendar_ids_and_dn, 'default_calendar' => $default_calendar, 'hidden_calendars' => $hidden_calendars);
     $components['content'] = $this->load->view('preferences_page', $data_prefs, TRUE);
     $components['footer'] = $this->load->view('footer', array('load_session_refresh' => TRUE, 'load_calendar_colors' => TRUE), TRUE);
     $this->load->view('layouts/plain.php', $components);
 }
function custom_login_logo()
{
    echo '
	<style type="text/css">
	body.login { background-color: #fff !important; }
	#loginform { background-color: #515151 !important; }
	.login #nav a, .login #backtoblog a { color: #9B9B9B !important; }
	.wp-core-ui .button-primary { background: #000000; border-color: #000000 !important; -webkit-box-shadow: inset 0 1px 0 rgba(230, 230, 230, 0.5),0 1px 0 rgba(0,0,0,.15) !important; box-shadow: inset 0 1px 0 rgba(230,230,230,.5),0 1px 0 rgba(0,0,0,.15); color: #fff; text-decoration: none; }
	.wp-core-ui .button-primary:hover { background-color: #2E2E2E !important; }
	h1 a { background-size:100% !important; background-image: url(' . custom_logo() . ') !important; height: 110px !important; width: 220px !important;}
	.login form { background-color: #333333 !important; }
	#login form p, .login label { color: #fff; }
	.login .message { border-left: 4px solid #C62602; }
	</style>';
}
Exemple #3
0
 public function index()
 {
     // Already authenticated?
     if ($this->auth->is_authenticated()) {
         redirect('/main');
     }
     $this->load->helper('form');
     $this->load->library('form_validation');
     $this->form_validation->set_rules(array(array('field' => 'user', 'label' => $this->i18n->_('labels', 'username'), 'rules' => 'required'), array('field' => 'passwd', 'label' => $this->i18n->_('labels', 'password'), 'rules' => 'required')));
     // Required fields missing?
     $valid_auth = FALSE;
     $validation = $this->form_validation->run();
     $err = '';
     if ($validation !== FALSE) {
         // Check authentication against server
         $this->load->library('caldav');
         $user = $this->input->post('user');
         $passwd = $this->input->post('passwd');
         $valid_auth = $this->caldav->check_server_authentication($user, $passwd);
         if ($valid_auth !== FALSE) {
             // TODO load user prefs
             $data = array('user' => mb_strtolower($user), 'passwd' => $passwd, 'prefs' => $this->userpref->load_prefs($user)->getAll());
             $this->auth->new_session($data);
             redirect("/main");
             $this->output->_display();
             die;
         } else {
             $err = $this->i18n->_('messages', 'error_auth');
         }
     } else {
         $err = validation_errors();
     }
     $page_components = array();
     $title = $this->config->item('site_title');
     $data_header = array('title' => $title, 'body_class' => array('loginpage'));
     $page_components['header'] = $this->load->view('common_header', $data_header, TRUE);
     $data = array();
     if (!empty($err)) {
         $data['errors'] = $err;
     }
     $logoimg = $this->config->item('login_page_logo');
     $data['logo'] = custom_logo($logoimg, $title);
     $data['title'] = $title;
     $page_components['content'] = $this->load->view('login', $data, TRUE);
     $page_components['footer'] = $this->load->view('footer', array(), TRUE);
     $this->load->view('layouts/plain', $page_components);
 }
Exemple #4
0
 function index()
 {
     // Layout components
     $components = array();
     $title = $this->config->item('site_title');
     $data_header = array('title' => $title, 'logged_in' => TRUE, 'body_class' => array('calendarpage'));
     $data_calendar = array();
     $logo = $this->config->item('logo');
     $data_calendar['logo'] = custom_logo($logo, $title);
     $data_calendar['title'] = $title;
     $components['header'] = $this->load->view('common_header', $data_header, TRUE);
     $components['navbar'] = $this->load->view('navbar', $data_header, TRUE);
     $components['sidebar'] = $this->load->view('sidebar', $data_calendar, TRUE);
     $components['content'] = $this->load->view('center', array(), TRUE);
     $components['footer'] = $this->load->view('footer', array('load_session_refresh' => TRUE, 'load_calendar_colors' => TRUE), TRUE);
     $this->load->view('layouts/app.php', $components);
 }
Exemple #5
0
    echo "<i class='ion-android-call'></i> " . $up_options->phone_number;
}
?>
</span> <a href="#" class="map"><i class="ion-ios-location"></i> SEE ON MAPS</a></div>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="inner-header gradient">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle toggle-menu menu-left push-body" data-toggle="collapse" data-target="#nav"> <i class="ion ion-navicon"></i> </button>
          <a class="navbar-brand transition" href="<?php 
echo site_url();
?>
"><img src="<?php 
echo custom_logo();
?>
" alt="Image"></a>
      	</div>
        <div class="collapse navbar-collapse cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="nav">
          <ul class="nav navbar-nav">
            <li><a href="<?php 
echo site_url();
?>
" class="transition">HOME</a><span></span></li>
            <li class="dropdown"> <a href="#">SERVICES</a><span></span>
              <ul class="dropdown-menu" role="menu">
                <li><a href="/services/homes-communities" class="transition">Homes & Communities</a></li>
                <li><a href="/services/renovation-remodeling" class="transition">Renovation & Remodeling</a></li>
                <li><a href="/services/room-additions" class="transition">Room Additions</a></li>
              </ul>
Exemple #6
0
<?php 
wp_head();
?>

</head>

<body <?php 
body_class();
?>
>

<!--[if lt IE 9]>
<p class="browsehappy">
You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.
</p>
<![endif]-->
<?php 
facebookID();
?>

<h1><?php 
custom_logo();
?>
</h1>

<?php 
summon_social_profile('facebook');
?>