Exemplo n.º 1
0
    function mobile_gallery($media, $pagination = null, $use_default_style = true)
    {
        if (!is_array($media)) {
            $media = array();
        }
        $html = "";
        if (isset($media) && count($media) > 0) {
            $html .= '<ul class="gallery-list">';
            foreach ($media as $row) {
                try {
                    // Proceed knowing you have a logged in user who's authenticated.
                    $user_profile = $this->facebook->api($row['uid']);
                    //dg($user_profile);
                } catch (FacebookApiException $e) {
                    $user_profile = null;
                }
                $html .= '
				<li>
					<a href="' . mobile_menu_url('media') . '/?m=' . $row['media_id'] . '" title="See detail">
					  <div class="thumbnail">
					  <img src="' . $row['media_thumb_url'] . '">
					</div>
					<div class="vote">99 votes</div>
					<div class="owner">' . $user_profile['name'] . '</div>
					<p>' . $row['media_description'] . '</p>
				    </a>
				</li>			
				';
            }
            $html .= '</ul>';
            $html .= '<div class="pager">' . $pagination['all'] . '</div>';
        } else {
            $html .= '<div style="color:#fff" >' . '<a href="' . mobile_menu_url('home') . '" >Click here and submit yours!</a>' . '</div>';
        }
        return $html;
    }
Exemplo n.º 2
0
if ($campaign['on_judging'] && $campaign['winner_announced']) {
    ?>
		<li><a href="<?php 
    echo mobile_menu_url('winner');
    ?>
">The Winner</a></li>
		<?php 
}
?>
		<?php 
if (isset($campaign['pages'])) {
    foreach ($campaign['pages'] as $page) {
        if ($page['mobile']) {
            ?>
		<li><a href="<?php 
            echo mobile_menu_url("page/{$page['id']}");
            ?>
" <?php 
            echo mobile_prefetch();
            ?>
><?php 
            echo $page['name'];
            ?>
</a></li>
		<?php 
        }
    }
}
?>
	</ul>
Exemplo n.º 3
0
 public function rules()
 {
     $this->load->library('facebook');
     /** BEGIN REQUIRED VALIDATION **/
     if (!($campaign = $this->campaign->getActiveCampaign())) {
         show_404();
     }
     $sr = $this->facebook->getSignedRequest();
     $redirect_url = isset($sr['page']) ? $this->config->item('APP_FANPAGE') . "&app_data=redirect|" . current_url() : "http://apps.facebook.com/" . $this->config->item('APP_APPLICATION_ID') . "/rules";
     if (!($user = getAuthorizedUser(true))) {
         redirect(mobile_menu_url('authorize') . '?ref=' . $redirect_url);
     }
     /** END REQUIRED VALIDATION **/
     $this->load->view('mobile/mobile_rules', array('campaign' => $campaign, 'rules' => $campaign['campaign_rules']));
 }
<div class="box box-m">
  <div class="inner">
  <h2 class="title"><?php 
echo $message_title;
?>
</h2>
  <p class="center" id="success-text">
  <?php 
echo $message_text;
?>
  </p>
  
  <div class="center">
  	<a href="<?php 
echo mobile_menu_url('gallery');
?>
" class="button gold big" >View Gallery</a>
  </div>
  
  </div>
</div>

</div>
<?php 
//echo isset($facebook_share_dialog) ? $facebook_share_dialog : "" ;
?>
 
<?php 
echo $this->load->view('mobile/mobile_footer', $campaign, true);
//Begin HTML
Exemplo n.º 5
0
	<li>The Winner</li>
</ul>
<div class="main" id="gallery">

<div>
	<div class="inner">
	  <?php 
if (isset($media) && !empty($media)) {
    ?>
	  <ul class="gallery-list center">
	   <?php 
    foreach ($media as $m) {
        ?>
	   <li>
			<a href="<?php 
        echo mobile_menu_url('media') . '/?m=' . $m['media_id'];
        ?>
" title="See detail">
			  <div class="thumbnail"><?php 
        echo $CI->media_m->showMedia($m);
        ?>
</div>
			<div class="vote"><?php 
        echo $m['media_vote_total'];
        ?>
 votes</div>
			<div class="owner"><?php 
        $graph = mobile_getGraph($m['uid']);
        echo $graph['first_name'];
        ?>
</div>
Exemplo n.º 6
0
			Thank You, You have successfully registered			
			<ul>
		  		<li>
          	  <a href="<?php 
    echo mobile_menu_url('upload');
    ?>
">Contest Upload</a>
          	</li>
          	<li>
          	  <a href="<?php 
    echo mobile_menu_url('gallery');
    ?>
">Gallery</a>
          	</li>
		    	<li>
          	  <a href="<?php 
    echo mobile_menu_url('rules');
    ?>
">Rules/FAQ</a>
          	</li>
        	</ul>
			</div>
		</div>
		<!-- /CONTAINER FORM AUTHORIZED -->
	<?php 
}
?>

<?php 
echo $this->load->view('mobile/mobile_footer', null, true);
//End HTML
Exemplo n.º 7
0
<?php

echo $this->load->view('mobile/mobile_header', $campaign, true);
//Begin HTML
?>
<ul class="breadcrumb">
  <li><a href="<?php 
echo mobile_menu_url();
?>
">Home</a></li>
  <li>Upload</li>
</ul>

<div class="main">
<div class="box box-m">
  <div class="inner">
  <h2 class="title">Upload Your's</h2>
  <p>Just a few seconds away, choose your best photo with Guinness photo booth and upload now.</p>
  <?php 
if (isset($html_form_upload)) {
    echo $html_form_upload;
}
?>
  </div>
</div>

</div>
<?php 
echo $this->load->view('mobile/mobile_footer', $campaign, true);
//End HTML
Exemplo n.º 8
0
	  <li><a href="<?php 
echo mobile_menu_url('rules');
?>
" class="button black">Terms & Conditions<i></i></a></li>
	  <li><a href="<?php 
echo mobile_menu_url('about');
?>
" class="button black">Winner Gallery<i></i></a></li>
	</ul>
	-->
	
	<ul data-role="listview" data-inset="true">
		<li><a href="<?php 
echo mobile_menu_url('gallery');
?>
" >Gallery</a></li>
		<li><a href="<?php 
echo mobile_menu_url('rules');
?>
" >Terms & Conditions</a></li>
		<li><a href="<?php 
echo mobile_menu_url('about');
?>
" >Winner Gallery</a></li>
	</ul>

</div> <!--end main-->

<?php 
echo $this->load->view('mobile/mobile_footer', null, true);
//End HTML