Esempio n. 1
0
 public static function shared($task)
 {
     $stats = array('lists' => array());
     // Get contacts
     $lists = BackupsModel::all(array('sync_task_id' => $task['id'], 'user_id' => $task['user_id'], 'entity_type' => static::$kind['list']))->toArray();
     if ($lists) {
         foreach ($lists as $list) {
             $data = json_decode($list['entity'], true);
             $stats['lists'][] = array('id' => $list['entity_id'], 'name' => $list['entity_title'], 'picture' => \Render::image('no-photo.png'), 'data' => $data);
         }
     }
     return $stats;
 }
Esempio n. 2
0
 /**
  * Resize the google profile pic from it's URL
  *
  * @param null $user
  * @param int  $size
  *
  * @return string
  */
 public static function profileImageUrl($user = null, $size = 28)
 {
     if ($user) {
         if (isset($user['avatar'])) {
             $url = parse_url($user['avatar']);
             if (isset($url['query'])) {
                 $url['query'] = 'sz=' . $size;
                 return $url['scheme'] . '://' . $url['host'] . '/' . $url['path'] . '?' . $url['query'];
             } else {
                 if ($user['avatar']) {
                     return $user['avatar'] . '?sz=' . $size;
                 }
             }
         }
     }
     return Render::image('no-photo.jpg');
 }
Esempio n. 3
0
					</div>
				</div>
			</div>
		<?php 
}
?>

		<div class="col-sm-6 col-md-3">
			<div class="thumbnail new clearfix">
				<div class="big-avatar pull-left">
					<a href="<?php 
echo Render::link('accounts/add');
?>
">
						<img src="<?php 
echo Render::image('new-user.png');
?>
" alt="avatar" class="img-rounded img-responsive" title="Choose New Account">
					</a>
				</div>

				<div class="caption pull-left">
					<h3>Not done?</h3>

					<h6>Add as many accounts as you want</h6>
					<h6>Click the button below to add another one</h6>
					<br />

					<p>
						<a href="<?php 
echo Render::link('accounts/add');
Esempio n. 4
0
 public static function shared($task)
 {
     $stats = array('calendars' => array());
     // Get calendars
     $calendars = CalendarsModel::withEvents($task['user_id'], $task['id']);
     if ($calendars) {
         foreach ($calendars as $calendar) {
             $stats['calendars'][] = array('id' => $calendar['calendar_id'], 'name' => $calendar['name'], 'picture' => \Render::image('no-photo.png'), 'data' => $calendar);
         }
     }
     return $stats;
 }
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand <?php 
echo Router::$class == 'dashboard' ? 'active' : '';
?>
" href="<?php 
echo Render::link('dashboard');
?>
"><img src="<?php 
echo Render::image('icon.png');
?>
"/></a>
		</div>

		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li <?php 
echo Router::$class == 'dashboard' ? 'class="active"' : '';
?>
><a href="<?php 
echo Render::link('dashboard');
?>
">Dashboard</a></li>
				<li <?php 
echo Router::$class == 'migrate' ? 'class="active"' : '';
Esempio n. 6
0
					<span class="buttonText">Save to my Google account</span>
				</div>
			</div>
		<?php 
} else {
    ?>
			<a href="<?php 
    echo @Render::link($_SERVER['HTTP_REFERRER']);
    ?>
" class="btn btn-lg btn-primary" title="Back" style="width: 310px; margin: 0px auto; display: block">
				Back
			</a>
		<?php 
}
?>
	</div>

</div>

<footer class="clearfix">
	<div class="container">
		<div class="clearfix centered copyright">
			<div class="pull-left">With love from <strong>Timisoara</strong>, Romania</div>
			<div class="pull-left"><img src="<?php 
echo Render::image('copyright.png');
?>
" alt="copyright" title="copyright" /></div>
			<div class="pull-left">2013 <strong>Andrei Demian</strong>. All rights reserved.</div>
		</div>
	</div>
</footer>
Esempio n. 7
0
echo $stats['calendars'];
?>
</strong></i></div>
	<br />
	<hr class="clear"/>

	<div class="sub-block clearfix clear">
		<?php 
if (isset($migratedData['calendars'])) {
    ?>
			<?php 
    foreach ($migratedData['calendars'] as $calendar) {
        ?>
				<div class="col-xs-2 no-padding margin-bottom-md clearfix" style="overflow: none; word-wrap: none ">
					<img src="<?php 
        echo Render::image('no-photo.png');
        ?>
" width="24" class="img-responsive img-rounded pull-left" />
					&nbsp;<strong><?php 
        echo Util::wrap($calendar['name']);
        ?>
</strong>
				</div>
			<?php 
    }
    ?>
		<?php 
}
?>
	</div>
</section>