(no commit message)
[atutor.git] / docs / themes / mobile / users / index.tmpl.php
index d6d20b8..2f41cda 100644 (file)
@@ -1,107 +1,7 @@
 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
-<?php if ($this->mobile_device_type == IPAD_DEVICE): ?><!--  smartphone theme only -->
-<div id="my_courses_container">
-<ol id="tools">
-
-<?php foreach ($this->courses as $row):
-       static $counter;
-       $counter++;
-?>
 
-<li class="top-tool">
-  <?php echo '<a href="'.url_rewrite('bounce.php?course=' . $row['course_id']) . '"> '.htmlentities($row['title']).'</a>' ?>
-  <?php if ($row['last_cid']): ?>
-                 <a class="my-courses-resume" href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('content.php?cid='.$row['last_cid']); ?>"><img src="<?php echo $_base_href;  ?>themes/default/images/resume.png" border="" alt="<?php echo _AT('resume'); ?>" title="<?php echo _AT('resume'); ?>" /></a>
-    <?php endif; ?>  
-
-       <div class="my-courses-links">
-    <?php if ($row['member_id'] != $_SESSION['member_id']  && $_config['allow_unenroll'] == 1): ?>
-        <a href="users/remove_course.php?course=<?php echo $row['course_id']; ?>"><?php echo _AT('unenroll_me'); ?></a>
-    <?php endif; ?>
-    <?php if ($row['tests']): ?>
-           <?php foreach ($row['tests'] as $test): ?>
-                  <a href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('mods/_standard/tests/test_intro.php?tid='.$test['test_id']); ?>"><span title="<?php echo _AT('tests'); ?>:<?php echo $test['title']; ?>"><?php echo $test['title']; ?></span></a> 
-           <?php endforeach ;?>
-    <?php endif; ?>  
-    </div>
-   
-</li>
-
-<?php endforeach; ?>
-
-</ul>
-</div>
-
-<div class="current_box">
-<div class="current_head"> <h3><?php echo _AT('things_current'); ?></h3></div>
-    <?php
-               
-    //display current news
-
-    if($_GET['p'] == 0){
-      $p = 1;
-    }else{
-      $p = intval($_GET['p']);
-    }
-    if($_GET['p'] == "all"){
-      $perpage = count($this->all_news);
-    }else{
-      $perpage = 10;
-    }
-
-    $newscount = count($this->all_news);
-    $num_pages = (ceil($newscount/$perpage));;
-    $start = ($p-1)*$perpage;
-    $end = ($p*$perpage);
-
-    print_paginator($page, $num_pages, '', 1); 
-    for($i=$start;$i<=$end; $i++){
-       $count = $i;
-       if (isset($this->all_news)) {
-       
-               //echo mb_strimwidth("Hello World", 0, 10, "...");
-               
-               echo '<div class="hide-show-container">'.'<h4>' .'<a class="results-hide-show-link content-expand " href="javascript:void(0);" role="search"  aria-live="assertive"     tabindex="1">'.'click me';
-               echo $this->all_news[$i]['thumb'].'</a>';
-               echo '</h4>'; 
-               
-               /*
-                * <?php
-
-    if (strlen($post->post_title) > 8)
-       echo substr($post->post_title, 0, 8) . ' ...';
-    else
-       echo $post->post_title;
-
-?>
-                */
-               
-               echo '<div class="results-display">';
-           echo '<ul class="fl-list-menu fl-list-brief">';
-             if(isset($this->all_news[$i]['thumb'])){
-                   echo '<li>' . $this->all_news[$i]['link'].'</li>' ;
-                   if($this->all_news[$i]['object']['course_id']){
-                   echo '<li>'.'<a class="flc-screenNavigator-backButton" href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>)';
-                   }
-                   //echo ''.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</li>';
-               }
-           echo '</ul>';
-           echo '</div>';
-           echo '</div>';
-           
-       }
-    }
-    if($perpage == count($this->all_news)){ ?>
-       <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a>
-    <?php }else{ ?>
-       <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo _AT('show_all'); ?></a></div>
-    <?php } ?>
-<br /><br />
-</div>  
-<?php endif;?>
-<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!--  smartphone theme only -->
 <div id="my_courses_container">
-<ul class="my-courses-list-ul" style="padding:0">
+<ul class="my-courses-list-ul" >
 
 <?php foreach ($this->courses as $row):
        static $counter;
              if(isset($this->all_news[$i]['thumb'])){
                    echo '<li><img src="'.$this->all_news[$i]['thumb'].'" alt="'.$this->all_news[$i]['alt'].'" title="'.$this->all_news[$i]['alt'].'"/> ' . $this->all_news[$i]['link'] .' <br />';
                    if($this->all_news[$i]['object']['course_id']){
-                   echo '<small>(<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>)|';
+                   echo '<span class="current_list_date_time">'.'Posted in&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
                    }
-                   echo '('.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).')</small><hr></hr></li>';
+                   echo '&nbsp;on&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
                }
            echo '</ul>';
        }
     }
     if($perpage == count($this->all_news)){ ?>
-       <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a>
+       <div id="show-pages"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a></div>
     <?php }else{ ?>
-       <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo _AT('show_all'); ?></a></div>
+       <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo "Show All"; ?></a></div>
     <?php } ?>
 <br /><br />
 </div>  
-<?php endif;?>
 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file