00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 @require_once('config.inc.php');
00015 require_once('html.inc.php');
00016 require_once('modules.inc.php');
00017 $page_has_object = false;
00018
00019
00020 function welcome_alter_render_late($args)
00021 {
00022 global $page_has_object;
00023
00024
00025 $page_has_object = true;
00026 }
00027
00028
00029 function welcome_render_page_late($args)
00030 {
00031 global $page_has_object;
00032 if (!$args['edit'] || $page_has_object) {
00033 return false;
00034 }
00035
00036
00037 load_modules('glue');
00038 $pns = pagenames(array());
00039 $pns = $pns['#data'];
00040 if (1 < count($pns)) {
00041 return false;
00042 }
00043
00044 html_add_css(base_url().'modules/welcome/welcome-edit.css');
00045 html_add_js(base_url().'modules/welcome/welcome.js');
00046 body_append('<div id="welcome-msg">'.nl());
00047 body_append(tab().'<span id="welcome-first"><img style="float:left; margin:5px 10px 0 5px" src="modules/welcome/gun32.gif">Welcome to HOTGLUE!</span><br>'.nl());
00048 body_append(tab().'Your Content Manipulation System is ready to go!'.nl());
00049 body_append(tab().'<p>A short intro before you start:</p>'.nl());
00050 body_append(tab().'<span id="cont"><span id="text"><b>1.</b> Right now you are in <u>editing mode</u>. You can use single and double click to access the menus - they will appear next to the mouse pointer.</span>'.nl());
00051 body_append(tab().'<span id="text"><b>2.</b> Click on the canvas (white background of the page) to open a menu which will let you create new objects, upload files and embed YouTube and Vimeo videos! Once you made an object click on it to activate its contextual menu.</span>'.nl());
00052 body_append(tab().'<span id="text"><b>3.</b> Double-click on the canvas will give you a menu of options to change preferences, show a grid, make new pages, set background picture and more!</span>'.nl());
00053 body_append(tab().'<span id="text"><b>4.</b> Remove "'.(SHORT_URLS ? '' : '?').'edit" from the address of the page (the URL) to see the "view-only" version. That\'s how your page will look to everyone else!</span>'.nl());
00054 body_append(tab().'<span id="text"><b>5.</b> To get back to editing mode add "'.(SHORT_URLS ? '' : '?').'edit" to the URL of the page.<br>(for example: '.base_url().'<b>'.(SHORT_URLS ? '' : '?').'edit</b>)</span></span>'.nl());
00055 body_append(tab().'<p>We recommend you to use <a href="http://firefox.com" target="_blank">Mozilla Firefox</a> browser when editing in HOTGLUE. Firefox is a very reliable and modern web-browser, it is our favorite!'.nl());
00056 body_append(tab().'<p>You can find more information on how to work with HOTGLUE on our <a href="http://hotglue.me" target="_blank">web-site</a>. Make sure to check out "<a href="http://hotglue.me/what" target="_blank">What is HOTGLUE?</a>" and "<a href="http://hotglue.me/how" target="_blank">How to HOTGLUE?</a>" pages!'.nl());
00057 body_append(tab().'<p>Enjoy! <span id="welcome-light">[click this message to make it go away]</span></p>'.nl());
00058 body_append('</div>'.nl());
00059 return true;
00060 }