1+ <?php
2+
3+
4+
5+ $analytics =
6+
7+ /*
8+ |--------------------------------------------------------------------------
9+ | Analytics
10+ |--------------------------------------------------------------------------
11+ |
12+ | Add external analytics services to your LittleLink Custom 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+ <!-- Global Site Tag (gtag.js) - Google Analytics -->
22+ <script async src="https://www.googletagmanager.com/gtag/js?id=TRACKING_ID"></script>
23+
24+ <script>
25+ window.dataLayer = window.dataLayer || [];
26+ function gtag(){dataLayer.push(arguments);}
27+ gtag('js', new Date());
28+ gtag('config', 'TRACKING_ID');
29+ </script>
30+
31+ <!--------------------------------------------------->
32+ EOD;;
33+
34+ return [
35+
36+ /*
37+ |--------------------------------------------------------------------------
38+ | Default source repository type
39+ |--------------------------------------------------------------------------
40+ |
41+ | Will only be active if "CUSTOM_META_TAGS" is set to "true" in the config.
42+ | These tags will only be applied to the home page or if a LittleLink page
43+ | is set as the homepage in the config (for example: HOME_URL="admin").
44+ |
45+ | Empty entries will be ignored.
46+ |
47+ */
48+
49+ 'lang' => 'en', // Sets <html lang="en">
50+ 'title' => 'Title', // Overrides the default meta page title. Leave empty to use your LittleLink page title as the title.
51+ 'description' => 'This is a description', // Overrides the default meta page description. Leave empty to use your LittleLink page description as the description.
52+ 'robots' => 'index,follow',
53+ 'viewport' => 'width=device-width, initial-scale=1',
54+ 'canonical_url' => 'https://example.com', // Tells search engines to index "https://example.com/" instead of "https://example.com/@admin", for example.
55+ 'twitter_creator' => '@elonmusk', // Twitter @username. For example: "@elonmusk".
56+ 'author' => 'Julian Prieber', // Your name.
57+
58+
59+ /*
60+ | All settings below are always active
61+ |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62+ */
63+
64+ /*
65+ |--------------------------------------------------------------------------
66+ | Additional settings
67+ |--------------------------------------------------------------------------
68+ |
69+ | Empty entries will be ignored.
70+ |
71+ */
72+
73+
74+ // Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.
75+ 'theme' => 'light', // Either "dark" or "light".
76+
77+
78+ // Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.
79+ // Overwrites default page title after the LittleLink name on LittleLink pages.
80+ // Example: "admin 🔗 LittleLink Custom"
81+ // ⤌------------------⤍
82+ // ⬑ What you can change with this setting.
83+ 'littlelink_title' => '💡 Little CustomLink',
84+
85+
86+ // Either "true", "false" or "auth".
87+ // If "auth" is selected, the share button will only be shown to users on their own page.
88+ 'display_share_button' => 'true',
89+
90+
91+ // Do not change here!
92+ 'analytics' => $analytics, // Set on top of page.
93+
94+
95+ /*
96+ |--------------------------------------------------------------------------
97+ | Custom routes
98+ |--------------------------------------------------------------------------
99+ |
100+ | You can change routes to improve security.
101+ |
102+ */
103+
104+ 'login_url' => '/login',
105+ 'register_url' => '/register',
106+ 'forgot_password_url' => '/forgot-password',
107+
108+ 'custom_home_url' => '/home', // Only applies if you set a "HOME_URL" in the config.
109+
110+ // If 'true' the Home Page will be disabled entirely.
111+ // You will still be able to login on the login page etc.
112+ 'disable_home_page' => 'false', // Either 'true', 'false' or 'redirect'.
113+ 'redirect_home_page' => 'https://littlelink-custom.com', // Only active if value above is set to 'redirect'.
114+
115+ // The URL prefix is the symbol that comes before a LittleLink URL.
116+ // For example the '@' in 'example.com/@admin'.
117+ // If empty no prefix is required. Use with caution.
118+ 'custom_url_prefix' => '✅', // The '@' prefix will always work regardless of this setting.
119+
120+
121+ /*
122+ |--------------------------------------------------------------------------
123+ | Footer links
124+ |--------------------------------------------------------------------------
125+ |
126+ | Footer links are the links that are displayed on the bottom of your page, reading: "Home, Terms, Privacy, Contact".
127+ | You can toggle each individual link on or off.
128+ | You can also set a custom URL for the "Home" link.
129+ |
130+ */
131+
132+ // Either "true" or "false".
133+ 'display_link_home' => 'true',
134+ 'display_link_terms' => 'true',
135+ 'display_link_privacy' => 'true',
136+ 'display_link_contact' => 'true',
137+
138+ // Enter a custom home link (for example, 'https://littlelink-custom.com').
139+ 'custom_link_home' => 'https://littlelink-custom.com', // Leave empty to use default value.
140+ // Changes the text on the "Home" link.
141+ 'custom_text_home' => 'Custom Text', // Leave empty to use default value.
142+
143+ /*
144+ |--------------------------------------------------------------------------
145+ | Home Page settings
146+ |--------------------------------------------------------------------------
147+ |
148+ | To change footer text on the Home Page, set the setting 'footer' to your preference.
149+ |
150+ | The footer text is the towards the bottom of the Home Page that reads: "and X other buttons ..."
151+ |
152+ | Depending on the amount of buttons on your Home Page, you might want to change this text.
153+ |
154+ | 'default' -> Uses default text.
155+ | 'alt' -> Displays an alternative version based on the Button Editor.
156+ | 'custom' -> Displays your custom text defined with 'custom_footer_text'.
157+ | 'false' -> Removes the footer.
158+ |
159+ */
160+
161+ 'home_footer' => 'custom', // Either 'default', 'alt', 'custom' or 'false'.
162+
163+ // You can enter plain text or HTML into this field.
164+ // You can use "{year}" as a placeholder for the current year.
165+ // So "©{year}" would output "©2033" (or whatever the current year is).
166+ 'custom_home_footer_text' => '© Copyright {year} - All Rights Reserved',
167+
168+
169+ // Apply a theme to your Home Page.
170+ // Some themes are not compatible with the Home Page. Use at your own discretion.
171+ // Enter the name of a theme located in your "themes" folder (for example, 'galaxy').
172+ 'home_theme' => 'galaxy', // Leave empty or enter 'default' to use the default theme.
173+
174+ /*
175+ |--------------------------------------------------------------------------
176+ | Custom Buttons on Home Page
177+ |--------------------------------------------------------------------------
178+ |
179+ | Here you can configure your own buttons for the Home Page.
180+ | You can add or remove as many buttons as you like.
181+ |
182+ | The syntax of the custom buttons is as follows:
183+ |
184+ | array(
185+ | 'button' => '',
186+ | 'link' => '',
187+ | 'title' => '',
188+ | 'icon' => '',
189+ | 'custom_css' => ''
190+ | ),
191+ |
192+ | In the 'button' field, you have to enter the button name (i.e. 'twitter', 'github', 'custom'...).
193+ | You can find a list of all available buttons below.
194+ |
195+ | In the 'link' field, you can enter your desired link you may leave this field empty for a display only, non-functional button.
196+ |
197+ |
198+ |
199+ | The input fields below only apply to buttons such as 'custom' and 'custom_website' but must always be included even if only empty.
200+ |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201+ |
202+ | In the 'title' field, changes the text on a button, such as 'custom' and 'custom_website'.
203+ |
204+ | In the 'icon' field, uses the same syntax as the Button Editor on the Admin Panel.
205+ | This allows you to add your own icons to 'custom' buttons. You can find a list of available icons on llc.bio/fa.
206+ |
207+ | In the 'custom_css' field, here you can enter custom CSS to change the color of your button.
208+ | If you don't feel comfortable working with CSS,
209+ | you can copy and paste the CSS from the 'Custom CSS' field of the Button Editor on the Admin Panel.
210+ |
211+ */
212+
213+ 'use_custom_buttons' => 'true', // Set this to false if you wish to display the old buttons.
214+
215+ 'buttons' => array(
216+ array(
217+ 'button' => 'github',
218+ 'link' => 'https://github.com/JulianPrieber/littlelink-custom',
219+ 'title' => '',
220+ 'icon' => '',
221+ 'custom_css' => ''
222+ ),
223+ array(
224+ 'button' => 'custom',
225+ 'link' => 'https://littlelink-custom.com',
226+ 'title' => 'Project Website',
227+ 'icon' => 'llc',
228+ 'custom_css' => 'color:#ffffff; background-image:linear-gradient(76deg, #f70fff 0%, #11d4de 100%);'),
229+ array(
230+ 'button' => 'custom',
231+ 'link' => 'https://littlelink-custom.com/sponsor',
232+ 'title' => 'Help us out',
233+ 'icon' => 'fa-hand-holding-hand',
234+ 'custom_css' => 'color:#ffffff; background-image:radial-gradient(circle, #00d2ff 0%, #3a7bd5 95%);'
235+ ),
236+ )
237+
238+ /*
239+ |--------------------------------|
240+ | List of Available buttons: |
241+ |--------------------------------|
242+ | 'button' => 'custom' |
243+ | 'button' => 'custom_website' |
244+ | 'button' => 'github' |
245+ | 'button' => 'twitter' |
246+ | 'button' => 'instagram' |
247+ | 'button' => 'facebook' |
248+ | 'button' => 'messenger' |
249+ | 'button' => 'linkedin' |
250+ | 'button' => 'youtube' |
251+ | 'button' => 'discord' |
252+ | 'button' => 'twitch' |
253+ | 'button' => 'snapchat' |
254+ | 'button' => 'spotify' |
255+ | 'button' => 'reddit' |
256+ | 'button' => 'medium' |
257+ | 'button' => 'pinterest' |
258+ | 'button' => 'soundcloud' |
259+ | 'button' => 'figma' |
260+ | 'button' => 'kit' |
261+ | 'button' => 'telegram' |
262+ | 'button' => 'tumblr' |
263+ | 'button' => 'steam' |
264+ | 'button' => 'vimeo' |
265+ | 'button' => 'wordpress' |
266+ | 'button' => 'goodreads' |
267+ | 'button' => 'skoob' |
268+ | 'button' => 'tiktok' |
269+ | 'button' => 'default email' |
270+ | 'button' => 'default email_alt'|
271+ | 'button' => 'bandcamp' |
272+ | 'button' => 'patreon' |
273+ | 'button' => 'signal' |
274+ | 'button' => 'venmo' |
275+ | 'button' => 'cashapp' |
276+ | 'button' => 'gitlab' |
277+ | 'button' => 'mastodon' |
278+ | 'button' => 'paypal' |
279+ | 'button' => 'whatsapp' |
280+ | 'button' => 'xing' |
281+ | 'button' => 'buy me a coffee' |
282+ | 'button' => 'website' |
283+ | 'button' => 'heading' |
284+ | 'button' => 'space' |
285+ |--------------------------------|
286+ */
287+
288+ ];
0 commit comments