-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
133 lines (123 loc) · 5.18 KB
/
settings.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
namespace WidgetsCraft;
use WidgetsCraft\Config\Widgets_List;
require_once(__DIR__ . '/utils/widgets.php');
$widgets_list = new Widgets_List();
$widgets = $widgets_list->get_widget_craft_widgets();
?>
<div id="widgets-craft-settings">
<header class="header">
<div class="header-content responsive-wrapper">
<div class="header-logo">
<a href="#">
<div>
<img src="https://assets.codepen.io/285131/untitled-ui-icon.svg" />
</div>
<h1 class="logo">Widgets Craft</h1>
</a>
</div>
<div class="header-navigation">
<nav class="header-navigation-links">
<a href="#"> Home </a>
<a href="#"> Dashboard </a>
<a href="#"> Projects </a>
<a href="#"> Tasks </a>
<a href="#"> Reporting </a>
<a href="#"> Users </a>
</nav>
<div class="header-navigation-actions">
<a href="#" class="button">
<i class="ph-lightning-bold"></i>
<span>Upgrade now</span>
</a>
</div>
</div>
</div>
</header>
<main class="main">
<div class="responsive-wrapper">
<div class="main-header">
<h1>Settings</h1>
<div class="search">
<input type="text" placeholder="Search" />
<button type="submit">
<i class="ph-magnifying-glass-bold"></i>
</button>
</div>
</div>
<div class="horizontal-tabs">
<a href="#">My details</a>
<a href="#">Profile</a>
<a href="#">Password</a>
<a href="#">Team</a>
<a href="#">Plan</a>
<a href="#">Billing</a>
<a href="#">Email</a>
<a href="#">Notifications</a>
<a href="#" class="active">Integrations</a>
<a href="#">API</a>
</div>
<div class="content-header">
<div class="content-header-intro">
<h2>Intergrations and connected apps</h2>
<p>Supercharge your workflow and connect the tool you use every day.</p>
</div>
<div class="content-header-actions">
<a href="#" class="button">
<i class="ph-faders-bold"></i>
<span>Filters</span>
</a>
<a href="#" class="button">
<i class="ph-plus-bold"></i>
<span>Request integration</span>
</a>
</div>
</div>
<div class="content">
<div class="content-panel">
<div class="vertical-tabs">
<a href="#" class="active">View all</a>
<a href="#">Developer tools</a>
<a href="#">Communication</a>
<a href="#">Productivity</a>
<a href="#">Browser tools</a>
<a href="#">Marketplace</a>
</div>
</div>
<div class="content-main">
<div class="card-grid">
<?php
foreach ($widgets as $widget) {
$widget_slug = $widget['slug'];
$widget_icon = $widget['icon'];
$widget_title = $widget['title'];
$widget_description = $widget['description'];
$widget_package = $widget['package'];
$widget_category = $widget['widget-category'];
// Output the combined HTML string using a single echo statement
echo '
<article class="card">
<div class="card-header">
<i class="' . $widget_icon . '"></i>
<label class="toggle">
<input type="checkbox" checked>
<span></span>
</label>
</div>
<div class="card-body">
<h3>' . $widget_title . '</h3>
<p>' . $widget_description . '</p>
</div>
<div class="card-footer">
<a href="#">View integration</a>
</div>
</article>
';
}
?>
</div>
</div>
</div>
</div>
</main>
</div>