-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-options.php
58 lines (53 loc) · 2.33 KB
/
setup-options.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Script to interact with user during MyComponent package install
*
* Copyright 2011 Your Name <[email protected]>
* @author Your Name <[email protected]>
* 1/1/11
*
* is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option) any
* later version.
*
* is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* ; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
*
* @package mycomponent
*/
/**
* Description: Script to interact with user during MyComponent package install
* @package mycomponent
* @subpackage build
*/
/* Use these if you would like to do different things depending on what's happening */
/* The return value from this script should be an HTML form (minus the
* <form> tags and submit button) in a single string.
*
* The form will be shown to the user during install
* after the readme.txt display.
*
* This example presents an HTML form to the user with one input field
* (you can have more).
*
* The user's entries in the form's input field(s) will be available
* in any php resolvers with $modx->getOption('field_name', $options, 'default_value').
*
* You can use the value(s) to set system settings, snippet properties,
* chunk content, etc. One common use is to use a checkbox and ask the
* user if they would like to install an example resource for your
* component.
*/
$output = '<p> </p><p style="color:red;font-weight:bold;">WARNING:</p><p> </p>
<p>Now the default marker images directory is <span style="color:blue;font-weight:bold;">/assets/images/gmaps/</span><br />
If needed, move your previous marker images into this directory first.</p><p> </p>
<p>You could also specify an another directory with the iconDir parameter in your Gmaps snippet call.
<p>Don\'t put your marker images inside /assets/components/gmaps/images/ otherwise they will be removed by package uninstallation.</p>
<p> </p>';
return $output;