From: alison benjamin Date: Fri, 2 Sep 2011 20:46:43 +0000 (-0000) Subject: The beginnings of the simplified-desktop theme X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=atutor.git;a=commitdiff_plain;h=587ce04ce6999f781bd8d5fcaece5ff9bd0c4d4a The beginnings of the simplified-desktop theme --- diff --git a/docs/themes/default/__MACOSX/simplified-desktop/._theme.cfg.php b/docs/themes/default/__MACOSX/simplified-desktop/._theme.cfg.php new file mode 100644 index 000000000..fe1219e68 Binary files /dev/null and b/docs/themes/default/__MACOSX/simplified-desktop/._theme.cfg.php differ diff --git a/docs/themes/default/__MACOSX/simplified-desktop/._theme_info.xml b/docs/themes/default/__MACOSX/simplified-desktop/._theme_info.xml new file mode 100644 index 000000000..05d72a279 Binary files /dev/null and b/docs/themes/default/__MACOSX/simplified-desktop/._theme_info.xml differ diff --git a/docs/themes/default/admin/courses/auto_enroll.tmpl.php b/docs/themes/default/admin/courses/auto_enroll.tmpl.php new file mode 100644 index 000000000..32f95c0d1 --- /dev/null +++ b/docs/themes/default/admin/courses/auto_enroll.tmpl.php @@ -0,0 +1 @@ +hi \ No newline at end of file diff --git a/docs/themes/default/admin/courses/master_list.tmpl.php b/docs/themes/default/admin/courses/master_list.tmpl.php deleted file mode 100644 index a97bd44a4..000000000 --- a/docs/themes/default/admin/courses/master_list.tmpl.php +++ /dev/null @@ -1,131 +0,0 @@ -
-
-
-

-
- -
- -
-
- - -
- -
- -
-
-
- -
-
-
-

-
- -
-
- /> - - /> - - /> -
- -
-
- -
- -
- - -
-
-
- -
- -
- - -
- - - - - - - - - - - - - -num_results > 0): ?> - - - - - - - - - - - - - - - - - - - - - - -
 
-
\ No newline at end of file diff --git a/docs/themes/default/admin/courses/privileges.tmpl.php b/docs/themes/default/admin/courses/privileges.tmpl.php new file mode 100644 index 000000000..da9b3fc9d --- /dev/null +++ b/docs/themes/default/admin/courses/privileges.tmpl.php @@ -0,0 +1,56 @@ +hi I'm an administrator + + +
+ +
+ +
+

student_row['login']; ?>

+
+ +
+
+ + + student_row['privileges'] = intval($this->student_row['privileges']); + $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE); + $keys = array_keys($module_list); + foreach ($keys as $module_name) { + $module =& $module_list[$module_name]; + if (!($module->getPrivilege() > 1)) { + continue; + } + $count++; + echo ''; + + if (!($count % $this->num_cols)) { + echo ''; + } + } + if ($count % $this->num_cols) { + echo ''; + } else { + echo ''; + } + ?> + +
  
+
+ +
+ + +
+
+
\ No newline at end of file diff --git a/docs/themes/default/admin/cron_config.tmpl.php b/docs/themes/default/admin/cron_config.tmpl.php deleted file mode 100644 index 60b9389f7..000000000 --- a/docs/themes/default/admin/cron_config.tmpl.php +++ /dev/null @@ -1,10 +0,0 @@ - -
-
-

-
-
-
- admin/cron.php?k= -
-
\ No newline at end of file diff --git a/docs/themes/default/admin/patcher/index_admin.tmpl.php b/docs/themes/default/admin/patcher/index_admin.tmpl.php new file mode 100644 index 000000000..6ba05628f --- /dev/null +++ b/docs/themes/default/admin/patcher/index_admin.tmpl.php @@ -0,0 +1,116 @@ +
+
+ + + + + + + + + + + + + + + + +num_of_patches == 0) +{ +?> + + + + + +result)) + { + print_patch_row($row, $row['patches_id'], false); + } + + $array_id = 0; + // display un-installed patches + if(is_array($this->patch_list_array)) + { + foreach ($this->patch_list_array as $row_num => $new_patch) + { + if (!is_patch_installed($new_patch['atutor_patch_id'])) + { + $dependent_patches_installed = true; + $dependent_patches = ""; + + // check if the dependent patches are installed + if (is_array($new_patch["dependent_patches"])) + { + + foreach ($new_patch["dependent_patches"] as $num => $dependent_patch) + { + if (!is_patch_installed($dependent_patch)) + { + $dependent_patches_installed = false; + $dependent_patches .= $dependent_patch. ", "; + } + } + + // remove the last comma in the string + if ($dependent_patches <> "") $dependent_patches = substr($dependent_patches, 0, -2); + } + + // display patch row + if ($dependent_patches_installed) + print_patch_row($new_patch, $array_id++, true); + else + { + print_patch_row($new_patch, $array_id++, false); + $dependent_patches_installed = true; + } + } + else + $array_id++; + } + } +?> + + + + + + + + +
 
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ + +
+ +
+ + +
+
+ +
\ No newline at end of file diff --git a/docs/themes/default/admin/patcher/myown_patches.tmpl.php b/docs/themes/default/admin/patcher/myown_patches.tmpl.php new file mode 100644 index 000000000..eed4740a1 --- /dev/null +++ b/docs/themes/default/admin/patcher/myown_patches.tmpl.php @@ -0,0 +1,57 @@ +
+ + + + + + + + + + + + + + + + + + + + +result) == 0) +{ +?> + + + +result)) + { + ?> + + + + + + + + + + +
 
+
+ + +
+
/>
+ +
diff --git a/docs/themes/default/admin/system_preferences/language_editor.tmpl.php b/docs/themes/default/admin/system_preferences/language_editor.tmpl.php new file mode 100644 index 000000000..214ce5152 --- /dev/null +++ b/docs/themes/default/admin/system_preferences/language_editor.tmpl.php @@ -0,0 +1,61 @@ + +num_results_row);?> +hi +
+
+
+

num_results); ?>

+
+ +
+
+ /> + /> +
+ +
+ /> +
+ +
+
+ +
+ +
+ + +
+
+
+ +
+
+ + + + + + +
+ num_results): ?> + + +

+ +
+
+ +
+
+
+
\ No newline at end of file diff --git a/docs/themes/default/admin/system_preferences/themes/index.tmpl.php b/docs/themes/default/admin/system_preferences/themes/index.tmpl.php new file mode 100644 index 000000000..0b8cddaa1 --- /dev/null +++ b/docs/themes/default/admin/system_preferences/themes/index.tmpl.php @@ -0,0 +1,96 @@ + +
+
+ +
+
+ +
+
+
+

+
+ +
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +result, $type) { + if (@mysql_num_rows($this->result) == 0) return; +?> +


+
+ + + + + + + + + + + + + + + + + + +result)) : ?> + + + + + + + + + + + + +
 
+ + + + + + +
+ + + '._AT('default').''; + } + ?> + / + <?php echo _AT('theme_screenshot'); ?> + + <?php echo _AT('theme_screenshot'); ?> + +
+
+ \ No newline at end of file diff --git a/docs/themes/default/instructor/create_course.tmpl.php b/docs/themes/default/instructor/create_course.tmpl.php deleted file mode 100644 index d17efddf6..000000000 --- a/docs/themes/default/instructor/create_course.tmpl.php +++ /dev/null @@ -1,463 +0,0 @@ - -instructor_result))) : ?> -
- -
-
-

-
- -
- *
- -
- -
- - -
-
-
- -
-
-

-
-
- - -
- - - - - - - - - -
-
-isadmin): ?> -
- *
- result)) { - echo ''; - } else { - echo ''._AT('none_found').''; - } - ?> -
- - -
- *
- -
- -
-
- printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?> -
- -
-
- -
- -
-
- -
- - - - -
-
- -
- - -
-
- row['content_packaging']) { - case 'none': - $none = ' checked="checked"'; - break; - - case 'top': - $top = ' checked="checked"'; - break; - - case 'all': - $all = ' checked="checked"'; - break; - } - ?> -
-
- -
- -
-
- row['rss']) { - $rss_yes = ' checked="checked"'; - } else { - $rss_no = ' checked="checked"'; - } - ?> -
- -
- -
-
- row['access']) { - case 'public': - $pub = ' checked="checked"'; - $disable = 'disabled="disabled"'; // disable the nofity box - break; - - case 'protected': - $prot = ' checked="checked"'; - $disable = 'disabled="disabled"'; // disable the nofity box - break; - - case 'private': - $priv = ' checked="checked"'; - break; - } - - if ($this->row['notify']) { - $notify = ' checked="checked"'; - } - - if ($this->row['hide']) { - $hide = ' checked="checked"'; - } - ?> - />

- - />

- - />
- /> -
- />. -
- -
-
- row['release_date'])) { - $rel_yes = ' checked="checked"'; - - $today_day = substr($this->row['release_date'], 8, 2); - $today_mon = substr($this->row['release_date'], 5, 2); - $today_year = substr($this->row['release_date'], 0, 4); - - $today_hour = substr($this->row['release_date'], 11, 2); - $today_min = substr($this->row['release_date'], 14, 2); - } else { - $rel_no = ' checked="checked"'; - $today_year = date('Y'); - } - - ?> - - />
- - - /> - -
- -
-
- row['end_date'])) { - $end_yes = ' checked="checked"'; - - $today_day = substr($this->row['end_date'], 8, 2); - $today_mon = substr($this->row['end_date'], 5, 2); - $today_year = substr($this->row['end_date'], 0, 4); - - $today_hour = substr($this->row['end_date'], 11, 2); - $today_min = substr($this->row['end_date'], 14, 2); - } else { - $end_no = ' checked="checked"'; - $today_year = date('Y')+1; - } - - ?> - - />
- - /> - -
- -
- '; - echo ''; - } else { - echo ''; - } - ?> -
-
- -
- -
- -course) : ?> -
-
- -
- - -isadmin) : ?> -
-
- row['max_quota'] == AT_COURSESIZE_UNLIMITED) { - $c_unlim = ' checked="checked" '; - $c_oth2 = ' disabled="disabled" '; - } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) { - $c_def = ' checked="checked" '; - $c_oth2 = ' disabled="disabled" '; - } else { - $c_oth = ' checked="checked" '; - $c_oth2 = ''; - } - - if ($this->course > 0) { - $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/'); - } else { - $course_size = 0; - } - - if ($this->course) { - echo _AT('current_course_size') .': '.get_human_size($course_size).'
'; - } - ?> - - />
- />
- /> - - value="row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> -
- -
-
- row['max_file_size'] == AT_FILESIZE_DEFAULT) { - $f_def = ' checked="checked" '; - $f_oth2 = ' disabled="disabled" '; - } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) { - $f_max = ' checked="checked" '; - $f_oth2 = ' disabled="disabled" '; - } else { - $f_oth = ' checked="checked" '; - $f_oth2 = ''; - } - ?> - />
- />
- /> - - value="row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> -
- - - - - - - -
-
- -
-
- row['icon'] != ''): - $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/"; - if (file_exists($path.$this->row['icon'])) { - if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) { - $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id']; - } else { - $_base_href = 'content/' . $this->row['course_id'] . '/'; - } - } else { - $_base_href = "images/courses/"; //$_base_href = 'get_course_icon.php/?id='.$row['course_id']; - } - - $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false; - echo ""; - - //include(AT_INCLUDE_PATH.'html/course_icon.inc.php'); - ?> - <?php echo $this->row['icon']; ?> - - - - - -
-
- -
- - - - -
- -
- -
- - - -
- "; - echo ""; - ?> - - - -
-
-
- -
\ No newline at end of file diff --git a/docs/themes/default/instructor/enrolment/privileges.tmpl.php b/docs/themes/default/instructor/enrolment/privileges.tmpl.php new file mode 100644 index 000000000..003dbbd02 --- /dev/null +++ b/docs/themes/default/instructor/enrolment/privileges.tmpl.php @@ -0,0 +1,2 @@ +hi Im an instructor + diff --git a/docs/themes/default/instructor/glossary/edit.tmpl.php b/docs/themes/default/instructor/glossary/edit.tmpl.php new file mode 100644 index 000000000..adc3bf128 --- /dev/null +++ b/docs/themes/default/instructor/glossary/edit.tmpl.php @@ -0,0 +1,52 @@ + + +
+ + +
+
+
+ *
+ +
+ +
+ *
+ +
+ +
+
+ result_related)) { + echo ''; + + } else { + echo _AT('no_glossary_items'); + } + ?> +
+
+ + +
+
+
+
\ No newline at end of file diff --git a/docs/themes/default/instructor/glossary/index.tmpl.php b/docs/themes/default/instructor/glossary/index.tmpl.php index f8fdcc484..4e5e3c103 100644 --- a/docs/themes/default/instructor/glossary/index.tmpl.php +++ b/docs/themes/default/instructor/glossary/index.tmpl.php @@ -1,4 +1,7 @@ +gloss_results_row); +debug($this->related_word); +?>
@@ -23,8 +26,11 @@ - def_trunc, 'glossary.definition'); ?> - related_word, 'glossary.word'); ?> + + + related_word); + //echo AT_print($row[related_word_id], 'glossary.word'); ?> + diff --git a/docs/themes/default/instructor/groups/index.tmpl.php b/docs/themes/default/instructor/groups/index.tmpl.php new file mode 100644 index 000000000..640ebd3c0 --- /dev/null +++ b/docs/themes/default/instructor/groups/index.tmpl.php @@ -0,0 +1,57 @@ +group_type_rows);?> +
+ +
+ + + + + + + + +group_type_rows)): ?> + + group_type_rows as $type_id => $row): ?> + + + + + + + + + + + + + + + + + + +group_type_rows)): ?> + + + + + + + + +
+ + + +
+ + (num_groups.' '._AT('groups'); ?>) +
()
+
+
+
\ No newline at end of file diff --git a/docs/themes/default/instructor/polls/index.tmpl.php b/docs/themes/default/instructor/polls/index.tmpl.php index 30fdba974..a78da4742 100644 --- a/docs/themes/default/instructor/polls/index.tmpl.php +++ b/docs/themes/default/instructor/polls/index.tmpl.php @@ -1,5 +1,5 @@
- +
col == 'question'): ?> diff --git a/docs/themes/default/instructor/reading_list/index_instructor.tmpl.php b/docs/themes/default/instructor/reading_list/index_instructor.tmpl.php new file mode 100644 index 000000000..e69de29bb diff --git a/docs/themes/default/instructor/student_tools/instructor_index.tmpl.php b/docs/themes/default/instructor/student_tools/instructor_index.tmpl.php new file mode 100644 index 000000000..e07a793b1 --- /dev/null +++ b/docs/themes/default/instructor/student_tools/instructor_index.tmpl.php @@ -0,0 +1,57 @@ + + +
+ + + + + + + + + + + + + +_current_modules as $module): ?> + + + + + + + + + +
+ fha_student_tools)): ?> + + + + + + + fha_student_tools)): ?> +   + + 1)): ?> + + + + + num_modules)): ?> + + + + + +
+
\ No newline at end of file diff --git a/docs/themes/default/theme.cfg.php b/docs/themes/default/theme.cfg.php index 52a131422..1b92bbc29 100644 --- a/docs/themes/default/theme.cfg.php +++ b/docs/themes/default/theme.cfg.php @@ -15,10 +15,10 @@ /* This is the default configuration file for the default theme. */ /* The theme's name. */ - $_theme['name'] = 'Default 1.6'; + $_theme['name'] = 'simplified-desktop'; /* The theme's version number. */ - $_theme['version'] = '0.1'; + $_theme['version'] = '1.0'; /* Which version of ATutor is this theme intended for. */ $_theme['atutor-version'] = '1.6'; diff --git a/docs/themes/default/theme_info.xml b/docs/themes/default/theme_info.xml index 810786265..7cd11b0c1 100644 --- a/docs/themes/default/theme_info.xml +++ b/docs/themes/default/theme_info.xml @@ -3,10 +3,10 @@ - Default + simplified-desktop 1.0 Desktop - 2008-02-12 + 2011-09-02 plone-like. diff --git a/docs/themes/default/users/index.tmpl.php b/docs/themes/default/users/index.tmpl.php index 9a1e5a0e4..db9a69be8 100644 --- a/docs/themes/default/users/index.tmpl.php +++ b/docs/themes/default/users/index.tmpl.php @@ -1,5 +1,4 @@ -