1+ <?php
2+
3+
4+
5+ $ analytics =
6+
7+ /*
8+ |--------------------------------------------------------------------------
9+ | Analytics
10+ |--------------------------------------------------------------------------
11+ |
12+ | Add external analytics services to your LinkStack instance by adding them below.
13+ | Everything you enter below will be added to the <head> tag of every page.
14+ | Formatting in plain HTML is expected.
15+ |
16+ */
17+
18+ <<<EOD
19+ <!----------Insert your analytics code here:---------->
20+
21+
22+
23+ <!--------------------------------------------------->
24+ EOD ;;
25+
26+ return [
27+
28+ // Do not change!
29+ 'version ' => '2.0 ' ,
30+
31+ /*
32+ |--------------------------------------------------------------------------
33+ | Default source repository type
34+ |--------------------------------------------------------------------------
35+ |
36+ | Will only be active if "CUSTOM_META_TAGS" is set to "true" in the config.
37+ | These tags will only be applied to the home page or if a LinkStack page
38+ | is set as the homepage in the config (for example: HOME_URL="admin").
39+ |
40+ | Empty entries will be ignored.
41+ |
42+ */
43+
44+ 'title ' => '' , // Overrides the default meta page title. Leave empty to use your LinkStack page title as the title.
45+ 'description ' => '' , // Overrides the default meta page description. Leave empty to use your LinkStack page description as the description.
46+ 'robots ' => 'index,follow ' ,
47+ 'viewport ' => 'width=device-width, initial-scale=1 ' ,
48+ 'canonical_url ' => '' , // Tells search engines to index "https://example.com/" instead of "https://example.com/@admin", for example.
49+ 'twitter_creator ' => '' , // Twitter @username.
50+ 'author ' => '' , // Your name.
51+
52+
53+ /*
54+ | All settings below are always active
55+ |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56+ */
57+
58+ /*
59+ |--------------------------------------------------------------------------
60+ | Additional settings
61+ |--------------------------------------------------------------------------
62+ |
63+ | Empty entries will be ignored.
64+ |
65+ */
66+
67+ // Overwrites default page title after the LinkStack name on LinkStack pages.
68+ // Example: "admin 🔗 LinkStack"
69+ // ⤌----------⤍
70+ // ⬑ What you can change with this setting.
71+ 'linkstack_title ' => '' ,
72+
73+
74+ // Either "true", "false" or "auth".
75+ // If "auth" is selected, the share button will only be shown to users on their own page.
76+ 'display_share_button ' => 'true ' ,
77+
78+
79+ // Do not change here!
80+ 'analytics ' => $ analytics , // Set on top of page.
81+
82+
83+ /*
84+ |--------------------------------------------------------------------------
85+ | Custom routes
86+ |--------------------------------------------------------------------------
87+ |
88+ | You can change routes to improve security.
89+ |
90+ */
91+
92+ 'login_url ' => '/login ' ,
93+ 'register_url ' => '/register ' ,
94+ 'forgot_password_url ' => '/forgot-password ' ,
95+
96+ 'custom_home_url ' => '/home ' , // Only applies if you set a "HOME_URL" in the config.
97+
98+ // The URL prefix is the symbol that comes before a LinkStack URL.
99+ // For example the '@' in 'example.com/@admin'.
100+ // If empty no prefix is required.
101+ 'custom_url_prefix ' => '+ ' ,
102+
103+ /*
104+ |--------------------------------------------------------------------------
105+ | Home Page settings
106+ |--------------------------------------------------------------------------
107+ |
108+ | Empty entries will be ignored.
109+ |
110+ */
111+
112+ // Apply a theme to your Home Page.
113+ // Enter the name of a theme located in your "themes" folder (for example, 'galaxy').
114+ 'home_theme ' => 'default ' , // Leave empty or enter 'default' to use the default theme.
115+
116+ /*
117+ |--------------------------------------------------------------------------
118+ | Custom Buttons on Home Page
119+ |--------------------------------------------------------------------------
120+ |
121+ | Here you can configure your own buttons for the Home Page.
122+ | You can add or remove as many buttons as you like.
123+ |
124+ | The syntax of the custom buttons is as follows:
125+ |
126+ | array(
127+ | 'button' => '',
128+ | 'link' => '',
129+ | 'title' => '',
130+ | 'icon' => '',
131+ | 'custom_css' => ''
132+ | ),
133+ |
134+ | In the 'button' field, you have to enter the button name (i.e. 'twitter', 'github', 'custom'...).
135+ | You can find a list of all available buttons below.
136+ |
137+ | In the 'link' field, you can enter your desired link you may leave this field empty for a display only, non-functional button.
138+ |
139+ |
140+ |
141+ | The input fields below only apply to buttons such as 'custom' and 'custom_website' but must always be included even if only empty.
142+ |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
143+ |
144+ | In the 'title' field, changes the text on a button, such as 'custom' and 'custom_website'.
145+ |
146+ | In the 'icon' field, uses the same syntax as the Button Editor on the Admin Panel.
147+ | This allows you to add your own icons to 'custom' buttons. You can find a list of available icons on linkstack.org/fa.
148+ |
149+ | In the 'custom_css' field, here you can enter custom CSS to change the color of your button.
150+ | If you don't feel comfortable working with CSS,
151+ | you can copy and paste the CSS from the 'Custom CSS' field of the Button Editor on the Admin Panel.
152+ |
153+ */
154+
155+ 'use_custom_buttons ' => 'true ' , // Set this to false if you wish to display the default dummy buttons.
156+
157+ 'buttons ' => array (
158+ array (
159+ 'button ' => 'github ' ,
160+ 'link ' => 'https://github.com/linkstackorg/linkstack ' ,
161+ 'title ' => 'GitHub ' ,
162+ 'icon ' => '' ,
163+ 'custom_css ' => ''
164+ ),
165+ array (
166+ 'button ' => 'linkstack ' ,
167+ 'link ' => 'https://linkstack.org ' ,
168+ 'title ' => 'Project Website ' ,
169+ 'icon ' => '' ,
170+ 'custom_css ' => ''
171+ ),
172+ array (
173+ 'button ' => 'custom ' ,
174+ 'link ' => 'https://linkstack.org/donate ' ,
175+ 'title ' => 'Help us out ' ,
176+ 'icon ' => 'fa-hand-holding-heart ' ,
177+ 'custom_css ' => 'color:#ffffff; background-image:radial-gradient(circle, #4b1977 0%, #2b0081 95%); '
178+ ),
179+ ),
180+
181+ /*
182+ |--------------------------------|
183+ | List of Available buttons: |
184+ |--------------------------------|
185+ | 'button' => 'custom' |
186+ | 'button' => 'custom_website' |
187+ | 'button' => 'github' |
188+ | 'button' => 'twitter' |
189+ | 'button' => 'instagram' |
190+ | 'button' => 'facebook' |
191+ | 'button' => 'messenger' |
192+ | 'button' => 'linkedin' |
193+ | 'button' => 'youtube' |
194+ | 'button' => 'discord' |
195+ | 'button' => 'twitch' |
196+ | 'button' => 'snapchat' |
197+ | 'button' => 'spotify' |
198+ | 'button' => 'reddit' |
199+ | 'button' => 'medium' |
200+ | 'button' => 'pinterest' |
201+ | 'button' => 'soundcloud' |
202+ | 'button' => 'figma' |
203+ | 'button' => 'kit' |
204+ | 'button' => 'telegram' |
205+ | 'button' => 'tumblr' |
206+ | 'button' => 'steam' |
207+ | 'button' => 'vimeo' |
208+ | 'button' => 'wordpress' |
209+ | 'button' => 'goodreads' |
210+ | 'button' => 'skoob' |
211+ | 'button' => 'tiktok' |
212+ | 'button' => 'default email' |
213+ | 'button' => 'default email_alt'|
214+ | 'button' => 'bandcamp' |
215+ | 'button' => 'patreon' |
216+ | 'button' => 'signal' |
217+ | 'button' => 'venmo' |
218+ | 'button' => 'cashapp' |
219+ | 'button' => 'gitlab' |
220+ | 'button' => 'mastodon' |
221+ | 'button' => 'paypal' |
222+ | 'button' => 'whatsapp' |
223+ | 'button' => 'xing' |
224+ | 'button' => 'buy me a coffee' |
225+ | 'button' => 'website' |
226+ | 'button' => 'heading' |
227+ | 'button' => 'space' |
228+ |--------------------------------|
229+ */
230+
231+ ];
0 commit comments