Skip to content

Commit 819ff24

Browse files
committed
bifurcation 🌴
1 parent 187ebc6 commit 819ff24

File tree

5 files changed

+176
-135
lines changed

5 files changed

+176
-135
lines changed

panel/home.php

Lines changed: 4 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
/**
33
* Mighty Addons
4-
* General
54
*/
65

76
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -12,142 +11,12 @@
1211

1312
<?php include_once('includes/header.php'); ?>
1413

15-
<!-- Home Sweet Home -->
16-
<div id="general" class="ma-tabs-content">
17-
<div class="mt-banner">
18-
<img class="banner" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/banner.jpg'; ?>" alt="">
19-
</div>
20-
<div class="ma-row ma-tabs-content-wrap container">
21-
<div class="ma-tabs-content-inner">
22-
<div class="ma-tabs-content-block-wrap">
23-
<div class="ma-tabs-block ma-tabs-block-docs">
24-
<header class="ma-tabs-block-header">
25-
<h4 class="ma-tabs-block-title">Need Help?</h4>
26-
</header>
27-
<div class="ma-tabs-block-content">
28-
<p>Facing issues while using addons? Get help from our dedicated WordPress Developers on <a class="mighty-underline" href="https://mightythemes.com/support/c/mighty-addons/" target="_blank">Mighty Addons Official Forum</a>. Or join our <a class="mighty-underline" target="_blank" href="https://www.facebook.com/groups/mightythemes/">Facebook Community</a> and post your questions there as well.</p>
29-
<a href="https://mightythemes.com/support/c/mighty-addons/" class="ma-btn" target="_blank">Reach out on Forum</a>
30-
</div>
31-
</div>
14+
<?php include_once('includes/boring-stuff.php'); ?>
3215

33-
<div class="ma-tabs-block ma-tabs-block-docs">
34-
<header class="ma-tabs-block-header">
35-
<h4 class="ma-tabs-block-title">Missing Any Feature?</h4>
36-
</header>
37-
<div class="ma-tabs-block-content">
38-
<p>Are we missing any features that you need for your project? Submit feature requests on GitHub and help us improve Mighty Addons.</p>
39-
<br>
40-
<a href="https://github.com/mightythemes/Mighty-Addons/issues/new?template=issue_template.md&title=Feature%20Request:&labels=Feature%20Request" class="ma-btn" target="_blank">Request a Feature</a>
41-
</div>
42-
</div>
16+
<?php include_once('includes/widget-settings.php'); ?>
4317

44-
<div class="ma-tabs-block ma-tabs-block-docs">
45-
<header class="ma-tabs-block-header">
46-
<h4 class="ma-tabs-block-title">Developer? Want to Contribute?</h4>
47-
</header>
48-
<div class="ma-tabs-block-content">
49-
<p>We 💗 Open Source. You can contribute to MightyAddons by reporting bugs, creating issues and pull requests on GitHub.</p>
50-
<a href="https://github.com/mightythemes/Mighty-Addons/issues/new?template=issue_template.md&title=&labels=bug" class="ma-btn" target="_blank">Report a Bug</a>
51-
</div>
52-
</div>
18+
<?php include_once('includes/extension-settings.php'); ?>
5319

54-
<div class="ma-tabs-block ma-tabs-block-docs">
55-
<header class="ma-tabs-block-header">
56-
<h4 class="ma-tabs-block-title">Loved it? Show Your Love.</h4>
57-
</header>
58-
<div class="ma-tabs-block-content">
59-
<p>Thanks for choosing Mighty Addons plugin. We are making it awesome day by day. That being said, if you could take a minute to post a review, we would so appreciate it.</p>
60-
<a href="https://wordpress.org/support/plugin/mighty-addons/reviews/#new-post" class="ma-btn" target="_blank">Yeah, you deserve 5 Stars</a>
61-
</div>
62-
</div>
63-
64-
</div>
65-
</div>
66-
</div>
67-
</div>
68-
69-
<!-- Widget Controls | What you allow is what will continue - Mighty Dashboard -->
70-
<div id="widgets" class="ma-tabs-content">
71-
<div class="ma-row">
72-
<div class="ma-col-full">
73-
74-
<div class="ma-gl-cnt-right">
75-
<div class="ma-btn-group">
76-
<button id="enable-all" type="button" class="ma-btn ma-btn-action ma-gl-cnt-enable">Enable All</button>
77-
<button id="disable-all" type="button" class="ma-btn ma-btn-action ma-gl-cnt-disable">Disable All</button>
78-
</div>
79-
</div>
80-
81-
<form id="mighty-settings" action="" method="POST" name="mighty-settings">
82-
<div class="ma-element-container">
83-
<?php foreach( $widgets as $widget => $props ) : ?>
84-
<div class="ma-element ma-element-free">
85-
<div class="ma-ele-info">
86-
<i class="<?php echo $props['icon']; ?> widget-icon"></i>
87-
<p class="ma-ele-title"><?php echo ucfirst($props['title']); ?></p>
88-
<a href="https://demo.mightythemes.com/mighty-addons/<?php echo strtolower(str_replace(' ', '-', $props['title'])); ?>" class="ma-ele-info-link" target="_blank">
89-
<span class="ma-view-demo">
90-
<img src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/desktop-solid.svg' ?>" alt="">
91-
</span>
92-
<span class="ma-ele-info-tooltip">Demo</span>
93-
</a>
94-
<a href="https://mightythemes.com/products/mighty-addons/" target="_blank" class="ma-ele-info-link">
95-
<span class="ma-get-help">
96-
<img src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/question-solid.svg' ?>" alt="">
97-
</span>
98-
<span class="ma-ele-info-tooltip">Documentation</span>
99-
</a>
100-
</div>
101-
<div class="ma-ele-switch">
102-
<label class="switch">
103-
<input class="switch-input" type="checkbox" name="<?php echo $props['slug']; ?>" id="<?php echo $props['slug']; ?>" <?php checked( 1, $props['enable'], true ); ?> />
104-
<span class="switch-label"></span>
105-
<span class="switch-handle"></span>
106-
</label>
107-
</div>
108-
</div>
109-
<?php endforeach; ?>
110-
</div>
111-
112-
<div class="text-center ma-cta-save">
113-
<button type="submit" class="button ma-btn js-ma-settings-save ma-btn ma-save-button" disabled="disabled"><?php echo __('Save Settings', 'mighty-addons'); ?></button>
114-
</div>
115-
</form>
116-
</div>
117-
</div>
118-
</div>
119-
120-
<!-- Extensions -->
121-
<div id="extensions" class="ma-tabs-content coming-soon">
122-
<div class="ma-row">
123-
<div class="ma-col-full">
124-
<div class="text-center">
125-
<h1 class="cs-title">Coming Soon_</h1>
126-
<p>: :&nbsp;&nbsp;&nbsp;&nbsp;: :&nbsp;&nbsp;&nbsp;&nbsp;: :</p>
127-
<div class="text-muted cs-description">Something cool is coming.<br>Stay tuned.</div>
128-
</div>
129-
<div class="mt-illustration">
130-
<img class="under-construction" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/undraw_under_construction.svg' ?>" alt="">
131-
</div>
132-
</div>
133-
</div>
134-
</div>
135-
136-
<!-- "Be a HERO" - Go Pro -->
137-
<div id="go-pro" class="ma-tabs-content coming-soon">
138-
<div class="ma-row">
139-
<div class="ma-col-full">
140-
<div class="mt-illustration">
141-
<img class="under-construction" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/undraw_on_the_way.svg' ?>" alt="">
142-
</div>
143-
<div class="text-center">
144-
<h1 class="cs-title">On the way ..</h1>
145-
<p>: :&nbsp;&nbsp;&nbsp;&nbsp;: :&nbsp;&nbsp;&nbsp;&nbsp;: :</p>
146-
<div class="text-muted cs-description">Mighty Addons is coming up with a pro version very soon.<br> Sign Up for an exclusive launch offer. </div>
147-
<a href="https://mailchi.mp/58871d7350d3/mightyaddonspro" target="_BLANK" class="button ma-btn cs-cta"><?php echo __('Get Aboard', 'mighty-addons'); ?></a>
148-
</div>
149-
</div>
150-
</div>
151-
</div>
20+
<?php include_once('includes/go-pro.php'); ?>
15221

15322
<?php include_once('includes/footer.php'); ?>

panel/includes/boring-stuff.php

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?php
2+
/**
3+
* Mighty Addons
4+
* HomePage
5+
*/
6+
7+
// I am not responsible of this code.
8+
// They made me write it, against my will.
9+
10+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11+
?>
12+
13+
<div id="general" class="ma-tabs-content">
14+
<div class="mt-banner">
15+
<img class="banner" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/banner.jpg'; ?>" alt="">
16+
</div>
17+
<div class="ma-row ma-tabs-content-wrap container">
18+
<div class="ma-tabs-content-inner">
19+
<div class="ma-tabs-content-block-wrap">
20+
<div class="ma-tabs-block ma-tabs-block-docs">
21+
<header class="ma-tabs-block-header">
22+
<h4 class="ma-tabs-block-title">Need Help?</h4>
23+
</header>
24+
<div class="ma-tabs-block-content">
25+
<p>Facing issues while using addons? Get help from our dedicated WordPress Developers on <a class="mighty-underline" href="https://mightythemes.com/support/c/mighty-addons/" target="_blank">Mighty Addons Official Forum</a>. Or join our <a class="mighty-underline" target="_blank" href="https://www.facebook.com/groups/mightythemes/">Facebook Community</a> and post your questions there as well.</p>
26+
<a href="https://mightythemes.com/support/c/mighty-addons/" class="ma-btn" target="_blank">Reach out on Forum</a>
27+
</div>
28+
</div>
29+
30+
<div class="ma-tabs-block ma-tabs-block-docs">
31+
<header class="ma-tabs-block-header">
32+
<h4 class="ma-tabs-block-title">Missing Any Feature?</h4>
33+
</header>
34+
<div class="ma-tabs-block-content">
35+
<p>Are we missing any features that you need for your project? Submit feature requests on GitHub and help us improve Mighty Addons.</p>
36+
<br>
37+
<a href="https://github.com/mightythemes/Mighty-Addons/issues/new?template=issue_template.md&title=Feature%20Request:&labels=Feature%20Request" class="ma-btn" target="_blank">Request a Feature</a>
38+
</div>
39+
</div>
40+
41+
<div class="ma-tabs-block ma-tabs-block-docs">
42+
<header class="ma-tabs-block-header">
43+
<h4 class="ma-tabs-block-title">Developer? Want to Contribute?</h4>
44+
</header>
45+
<div class="ma-tabs-block-content">
46+
<p>We 💗 Open Source. You can contribute to MightyAddons by reporting bugs, creating issues and pull requests on GitHub.</p>
47+
<a href="https://github.com/mightythemes/Mighty-Addons/issues/new?template=issue_template.md&title=&labels=bug" class="ma-btn" target="_blank">Report a Bug</a>
48+
</div>
49+
</div>
50+
51+
<div class="ma-tabs-block ma-tabs-block-docs">
52+
<header class="ma-tabs-block-header">
53+
<h4 class="ma-tabs-block-title">Loved it? Show Your Love.</h4>
54+
</header>
55+
<div class="ma-tabs-block-content">
56+
<p>Thanks for choosing Mighty Addons plugin. We are making it awesome day by day. That being said, if you could take a minute to post a review, we would so appreciate it.</p>
57+
<a href="https://wordpress.org/support/plugin/mighty-addons/reviews/#new-post" class="ma-btn" target="_blank">Yeah, you deserve 5 Stars</a>
58+
</div>
59+
</div>
60+
61+
</div>
62+
</div>
63+
</div>
64+
</div>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Mighty Addons
4+
* Extension Settings
5+
*/
6+
7+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8+
?>
9+
10+
<!-- Extensions -->
11+
<div id="extensions" class="ma-tabs-content coming-soon">
12+
<div class="ma-row">
13+
<div class="ma-col-full">
14+
<div class="text-center">
15+
<h1 class="cs-title">Coming Soon_</h1>
16+
<p>: :&nbsp;&nbsp;&nbsp;&nbsp;: :&nbsp;&nbsp;&nbsp;&nbsp;: :</p>
17+
<div class="text-muted cs-description">Something cool is coming.<br>Stay tuned.</div>
18+
</div>
19+
<div class="mt-illustration">
20+
<img class="under-construction" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/undraw_under_construction.svg' ?>" alt="">
21+
</div>
22+
</div>
23+
</div>
24+
</div>

panel/includes/go-pro.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Mighty Addons
4+
* Go Pro
5+
*/
6+
7+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8+
?>
9+
10+
<!-- "Be a HERO" - Go Pro -->
11+
<div id="go-pro" class="ma-tabs-content coming-soon">
12+
<div class="ma-row">
13+
<div class="ma-col-full">
14+
<div class="mt-illustration">
15+
<img class="under-construction" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/undraw_on_the_way.svg' ?>" alt="">
16+
</div>
17+
<div class="text-center">
18+
<h1 class="cs-title">On the way ..</h1>
19+
<p>: :&nbsp;&nbsp;&nbsp;&nbsp;: :&nbsp;&nbsp;&nbsp;&nbsp;: :</p>
20+
<div class="text-muted cs-description">Mighty Addons is coming up with a pro version very soon.<br> Sign Up for an exclusive launch offer. </div>
21+
<a href="https://mailchi.mp/58871d7350d3/mightyaddonspro" target="_BLANK" class="button ma-btn cs-cta"><?php echo __('Get Aboard', 'mighty-addons'); ?></a>
22+
</div>
23+
</div>
24+
</div>
25+
</div>

panel/includes/widget-settings.php

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
/**
3+
* Mighty Addons
4+
* Widget Settings
5+
*/
6+
7+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8+
9+
// Widget Controls | What you allow is what will continue - Mighty Dashboard
10+
?>
11+
<div id="widgets" class="ma-tabs-content">
12+
<div class="ma-row">
13+
<div class="ma-col-full">
14+
15+
<div class="ma-gl-cnt-right">
16+
<div class="ma-btn-group">
17+
<button id="enable-all" type="button" class="ma-btn ma-btn-action ma-gl-cnt-enable">Enable All</button>
18+
<button id="disable-all" type="button" class="ma-btn ma-btn-action ma-gl-cnt-disable">Disable All</button>
19+
</div>
20+
</div>
21+
22+
<form id="mighty-settings" action="" method="POST" name="mighty-settings">
23+
<div class="ma-element-container">
24+
<?php foreach( $widgets as $widget => $props ) : ?>
25+
<div class="ma-element ma-element-free">
26+
<div class="ma-ele-info">
27+
<i class="<?php echo $props['icon']; ?> widget-icon"></i>
28+
<p class="ma-ele-title"><?php echo ucfirst($props['title']); ?></p>
29+
<a href="https://demo.mightythemes.com/mighty-addons/<?php echo strtolower(str_replace(' ', '-', $props['title'])); ?>" class="ma-ele-info-link" target="_blank">
30+
<span class="ma-view-demo">
31+
<img src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/desktop-solid.svg' ?>" alt="">
32+
</span>
33+
<span class="ma-ele-info-tooltip">Demo</span>
34+
</a>
35+
<a href="https://mightythemes.com/products/mighty-addons/" target="_blank" class="ma-ele-info-link">
36+
<span class="ma-get-help">
37+
<img src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/question-solid.svg' ?>" alt="">
38+
</span>
39+
<span class="ma-ele-info-tooltip">Documentation</span>
40+
</a>
41+
</div>
42+
<div class="ma-ele-switch">
43+
<label class="switch">
44+
<input class="switch-input" type="checkbox" name="<?php echo $props['slug']; ?>" id="<?php echo $props['slug']; ?>" <?php checked( 1, $props['enable'], true ); ?> />
45+
<span class="switch-label"></span>
46+
<span class="switch-handle"></span>
47+
</label>
48+
</div>
49+
</div>
50+
<?php endforeach; ?>
51+
</div>
52+
53+
<div class="text-center ma-cta-save">
54+
<button type="submit" class="button ma-btn js-ma-settings-save ma-btn ma-save-button" disabled="disabled"><?php echo __('Save Settings', 'mighty-addons'); ?></button>
55+
</div>
56+
</form>
57+
</div>
58+
</div>
59+
</div>

0 commit comments

Comments
 (0)