From b4065a16d1a4ba1468aef8372e9e719d35ea25ad Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Thu, 7 Mar 2013 19:45:30 +0000 Subject: [PATCH] MDL-31342 theme_mymobile: TinyMCE editor difficulties. --- theme/mymobile/layout/embedded.php | 7 +-- theme/mymobile/layout/general.php | 89 +++++++++++++++--------------- 2 files changed, 47 insertions(+), 49 deletions(-) diff --git a/theme/mymobile/layout/embedded.php b/theme/mymobile/layout/embedded.php index 7212b70008a..3c9b6668057 100644 --- a/theme/mymobile/layout/embedded.php +++ b/theme/mymobile/layout/embedded.php @@ -55,7 +55,6 @@ echo $OUTPUT->doctype() ?>
main_content(); ?> -
@@ -67,9 +66,9 @@ echo $OUTPUT->doctype() ?>
main_content(); ?>
-
- - standard_end_of_body_html() ?> + + standard_end_of_body_html() ?> +
\ No newline at end of file diff --git a/theme/mymobile/layout/general.php b/theme/mymobile/layout/general.php index d956b853f3b..6b86b6547fa 100644 --- a/theme/mymobile/layout/general.php +++ b/theme/mymobile/layout/general.php @@ -23,9 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -// get blocks? +// Get blocks? $toblock = optional_param('mymobile_blocks', false, PARAM_BOOL); -// get settings? +// Get settings? $toset = optional_param('mymobile_settings', false, PARAM_BOOL); $mypagetype = $PAGE->pagetype; @@ -50,7 +50,7 @@ if ($showswatch == 'light') { $databodytheme = ''; } -//custom settings +// Custom settings. $hasshowmobileintro = (!empty($PAGE->theme->settings->showmobileintro)); if (!empty($PAGE->theme->settings->showfullsizeimages)) { @@ -74,13 +74,13 @@ if (!empty($PAGE->theme->settings->usetableview)) { // TODO: Fix this hardcoding there are other course formats that peopleuse. // Probably changing to an appropriate regex will do. if ($mypagetype == 'course-view-topics' || $mypagetype == 'course-view-weeks') { - // jump to current topic only in course pages + // Jump to current topic only in course pages. $jumptocurrent = 'true'; } else { $jumptocurrent = 'false'; } -// below sets a URL variable to use in some links +// Below sets a URL variable to use in some links. $urlblocks = new moodle_url($PAGE->url, array('mymobile_blocks' => 'true')); $urlsettings = new moodle_url($PAGE->url, array('mymobile_settings' => 'true')); @@ -102,12 +102,12 @@ if (empty($PAGE->layout_options['nocourseheaderfooter'])) { $bodyclasses = array(); $bodyclasses[] = (string)$hasithumb; $bodyclasses[] = (string)$showsitetopic; -// add ithumb class to decide whether to show or hide images and site topic +// Add ithumb class to decide whether to show or hide images and site topic. -// TODO: Better illustrate preceedence +// TODO: Better illustrate preceedence. $gowide = ($mydevice == 'default' && $showusetableview == 'tabshow' || $mydevice == 'tablet' && $showusetableview == 'tabshow'); if ($gowide) { - // initialize column position choices. + // Initialize column position choices. mymobile_initialise_colpos($PAGE); } $usercol = (mymobile_get_colpos() == 'on'); @@ -132,7 +132,7 @@ echo $OUTPUT->doctype() ?> standard_top_of_body_html() ?>
-
class="mymobileheader" data-position="fixed"> +
-
> - +

lang_menu(); ?>
    @@ -181,7 +180,7 @@ echo $OUTPUT->doctype() ?>
    theme->settings->showmobileintro; ?> @@ -194,7 +193,7 @@ echo $OUTPUT->doctype() ?>
    + // If we get the true, that means load/show blocks only for tablet views only. ?>

    heading ?>

    @@ -224,7 +223,7 @@ echo $OUTPUT->doctype() ?>
    - +