Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="17.374" height="14.04" viewBox="0 0 17.374 14.04">
<g id="Grupo_19" data-name="Grupo 19" transform="translate(-379.96 -418.112)">
<path id="Trazado_32" data-name="Trazado 32" d="M394,425.132a7.027,7.027,0,1,1-1.747-4.629q.115.131.223.267a.057.057,0,0,1-.01.081l-1.141.863a.057.057,0,0,1-.079-.01c-.018-.023-.044-.055-.08-.1a5.474,5.474,0,1,0-4.185,9,5.388,5.388,0,0,0,5.473-5.281.143.143,0,0,1,.053-.109l1.364-1.1a.037.037,0,0,1,.06.023A7.04,7.04,0,0,1,394,425.132Z" fill="#6ebb40"/>
<path id="Trazado_33" data-name="Trazado 33" d="M706.977,538.817a17.675,17.675,0,0,0-3.344,1.994c-.46.339-.909.692-1.34,1.049a42.317,42.317,0,0,0-4.486,4.347.9.9,0,0,1-.685.314q-.043,0-.086,0a.9.9,0,0,1-.7-.45,19.027,19.027,0,0,0-2.259-3.044.9.9,0,1,1,1.32-1.235,21.455,21.455,0,0,1,1.854,2.341,42.615,42.615,0,0,1,4.387-4.07c.4-.319.816-.633,1.24-.935a18.918,18.918,0,0,1,3.378-1.965.9.9,0,0,1,.719,1.659Z" transform="translate(-310.188 -117.574)" fill="#6ebb40"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1021 B

View File

@@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.694" height="14.694" viewBox="0 0 14.694 14.694">
<g id="Grupo_34" data-name="Grupo 34" transform="translate(0)">
<g id="Grupo_32" data-name="Grupo 32" transform="translate(0 0)">
<path id="Trazado_47" data-name="Trazado 47" d="M8.347,1a7.347,7.347,0,1,0,7.347,7.347A7.347,7.347,0,0,0,8.347,1Zm0,13.12A5.773,5.773,0,1,1,14.12,8.347,5.773,5.773,0,0,1,8.347,14.12Z" transform="translate(-1 -1)" fill="#939393"/>
</g>
<g id="Grupo_33" data-name="Grupo 33" transform="translate(6.857 3.636)">
<path id="Trazado_48" data-name="Trazado 48" d="M18.711,15.142a.492.492,0,0,1-.3-.1L15.188,12.52A.49.49,0,0,1,15,12.134V8.913a.49.49,0,1,1,.98,0V11.9l3.033,2.371a.49.49,0,0,1-.3.876Z" transform="translate(-15 -8.423)" fill="#939393"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 823 B

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
<style type="text/css">
.st0{fill:#002B8F;}
</style>
<path class="st0" d="M27.6,16c0-0.4-0.2-0.7-0.5-0.9l-3.1-1.8l3.1-1.8c0.5-0.3,0.6-0.9,0.3-1.4c-0.1-0.1-0.2-0.3-0.3-0.3L16.5,3.4
c-0.3-0.2-0.7-0.2-1,0L4.9,9.8c-0.5,0.3-0.6,0.9-0.3,1.4c0.1,0.1,0.2,0.3,0.3,0.3l3.1,1.8l-3.1,1.8c-0.5,0.3-0.6,0.9-0.3,1.4
c0.1,0.1,0.2,0.3,0.3,0.3l3.1,1.8l-3.1,1.8c-0.5,0.3-0.6,0.9-0.3,1.4c0.1,0.1,0.2,0.3,0.3,0.3l10.6,6.3c0.3,0.2,0.7,0.2,1,0
l10.6-6.3c0.5-0.3,0.6-0.9,0.3-1.4c-0.1-0.1-0.2-0.3-0.3-0.3l-3.1-1.8l3.1-1.8C27.4,16.7,27.6,16.4,27.6,16z M16,5.5l8.7,5.2
L16,15.8l-8.7-5.2L16,5.5z M24.7,21.4L16,26.5l-8.7-5.2l2.6-1.5l5.6,3.3c0.3,0.2,0.7,0.2,1,0l5.6-3.3L24.7,21.4z M16,21.2L7.3,16
l2.6-1.5l5.6,3.4c0.2,0.1,0.3,0.2,0.5,0.2c0.2,0,0.4,0,0.5-0.1l5.6-3.4l2.5,1.5L16,21.2z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16.809" height="14.183" viewBox="0 0 16.809 14.183">
<g id="Grupo_31" data-name="Grupo 31" transform="translate(0)">
<g id="Grupo_26" data-name="Grupo 26" transform="translate(2.627 3.677)">
<path id="Trazado_42" data-name="Trazado 42" d="M14.632,20.506H6.925A1.927,1.927,0,0,1,5,18.581V10.525A.525.525,0,0,1,5.525,10H16.031a.525.525,0,0,1,.525.525v8.056A1.927,1.927,0,0,1,14.632,20.506ZM6.051,11.051v7.53a.875.875,0,0,0,.874.874h7.707a.875.875,0,0,0,.874-.874v-7.53Z" transform="translate(-5 -10)" fill="#707070"/>
</g>
<g id="Grupo_27" data-name="Grupo 27" transform="translate(0 1.691)">
<path id="Trazado_43" data-name="Trazado 43" d="M15.29,9.256H1.519a1.518,1.518,0,1,1,0-3.037H15.29a1.518,1.518,0,1,1,0,3.037ZM1.519,7.27a.468.468,0,1,0,0,.936H15.29a.468.468,0,1,0,0-.936Z" transform="translate(0 -6.219)" fill="#707070"/>
</g>
<g id="Grupo_28" data-name="Grupo 28" transform="translate(3.677 0)">
<path id="Trazado_44" data-name="Trazado 44" d="M15.683,3H7.772A.772.772,0,0,0,7,3.772V5.216h9.455V3.772A.772.772,0,0,0,15.683,3Z" transform="translate(-7 -3)" fill="#707070"/>
</g>
<g id="Grupo_29" data-name="Grupo 29" transform="translate(6.304 6.303)">
<path id="Trazado_45" data-name="Trazado 45" d="M12.525,20.253A.525.525,0,0,1,12,19.728v-4.2a.525.525,0,1,1,1.051,0v4.2A.525.525,0,0,1,12.525,20.253Z" transform="translate(-12 -15)" fill="#707070"/>
</g>
<g id="Grupo_30" data-name="Grupo 30" transform="translate(9.455 6.303)">
<path id="Trazado_46" data-name="Trazado 46" d="M18.525,20.253A.525.525,0,0,1,18,19.728v-4.2a.525.525,0,1,1,1.051,0v4.2A.525.525,0,0,1,18.525,20.253Z" transform="translate(-18 -15)" fill="#707070"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.6 14"><defs><style>.cls-1{fill:#707070;}</style></defs><g id="Capa_2" data-name="Capa 2"><g id="Capa_1-2" data-name="Capa 1"><path class="cls-1" d="M12.6,4.86a1.06,1.06,0,0,0,0-.19V4.61a.72.72,0,0,0-.14-.2h0L8.23.21h0A.86.86,0,0,0,8,.08H8A.7.7,0,0,0,7.74,0H4.9A2.1,2.1,0,0,0,2.8,2.1v.7H2.1A2.1,2.1,0,0,0,0,4.9v7A2.1,2.1,0,0,0,2.1,14H7.7a2.1,2.1,0,0,0,2.1-2.1v-.7h.7a2.1,2.1,0,0,0,2.1-2.1V4.86ZM8.4,2.39,10.21,4.2H9.1a.7.7,0,0,1-.7-.7Zm0,9.51a.7.7,0,0,1-.7.7H2.1a.7.7,0,0,1-.7-.7v-7a.7.7,0,0,1,.7-.7h.7V9.1a2.1,2.1,0,0,0,2.1,2.1H8.4Zm2.8-2.8a.7.7,0,0,1-.7.7H4.9a.7.7,0,0,1-.7-.7v-7a.7.7,0,0,1,.7-.7H7V3.5A2.1,2.1,0,0,0,9.1,5.6h2.1Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 703 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 307.24 286.64"><defs><style>.cls-1{fill:#333;}</style></defs><title>dislike-fillAsset 4</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" x="239.67" y="4.49" width="67.56" height="164.08" rx="3.92"/><path class="cls-1" d="M215.46,7.39A38.44,38.44,0,0,0,192.64,0H55C40,0,30.9,6.64,25.62,13.27a36.26,36.26,0,0,0-7.37,17.06L.74,143.57C-6.5,187,41.76,187,41.76,187H105.1a5.44,5.44,0,0,1,5.43,5.43v56.11c4.56,38.27,32.52,39.37,45.93,37.62a8.21,8.21,0,0,0,7.15-8.15V225.89a38.77,38.77,0,0,1,.54-6.63c6.18-36.42,45.28-52.35,60.12-57.15a8.22,8.22,0,0,0,5.7-7.82V38C230,22.24,222.89,12.88,215.46,7.39Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 713 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 317.61 290.32"><defs><style>.cls-1{fill:#333;}</style></defs><title>dislikeAsset 3</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M308.62,175.45H249.4a9,9,0,0,1-9-9V13.36a9,9,0,0,1,9-9h59.22a9,9,0,0,1,9,9v153.1A9,9,0,0,1,308.62,175.45ZM251.89,164h54.24V15.85H251.89Z"/><path class="cls-1" d="M150.75,290.32c-8.39,0-18.18-1.86-26.58-8.4-9.21-7.16-14.8-18.52-16.61-33.75l0-.33V193.38H46.37c-1,0-24.95-.18-38.11-15.71C1.06,169.17-1.45,158,.8,144.48l17-110.11a41,41,0,0,1,8.35-19.29C31.65,8.2,41.83,0,59.27,0H193.13a43.31,43.31,0,0,1,25.61,8.32c7.5,5.53,16.44,16,16.44,34.39V155.83a13.69,13.69,0,0,1-9.52,13.06h0a111.46,111.46,0,0,0-30.76,15.42c-13.48,9.93-21.49,21.93-23.83,35.67a32.78,32.78,0,0,0-.43,5.49v50.69a13.79,13.79,0,0,1-12,13.63A62.52,62.52,0,0,1,150.75,290.32ZM119,247.15c1.47,11.9,5.58,20.55,12.22,25.71,4.48,3.49,12.63,7.29,26,5.55a2.28,2.28,0,0,0,2-2.25V225.47a45.25,45.25,0,0,1,.59-7.42c2.85-16.77,12.39-31.23,28.34-43a123,123,0,0,1,34-17.1,2.25,2.25,0,0,0,1.57-2.14V42.71c0-10.92-4-19.39-11.78-25.16a31.84,31.84,0,0,0-18.79-6.07H59.27c-10.33,0-18.44,3.61-24.11,10.74a29.58,29.58,0,0,0-6,13.9l-17,110.22c-1.68,10,0,18.07,4.86,23.87,9.67,11.48,29.19,11.69,29.39,11.69H108a11,11,0,0,1,11,11Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.004" height="14.004" viewBox="0 0 14.004 14.004">
<g id="Grupo_53" data-name="Grupo 53" transform="translate(52 0.908)">
<path id="Trazado_54" data-name="Trazado 54" d="M10.62,14.837h-8.4A2.216,2.216,0,0,1,0,12.62v-8.4A2.216,2.216,0,0,1,2.217,2h4.2A.551.551,0,0,1,7,2.583a.551.551,0,0,1-.583.583h-4.2a1.046,1.046,0,0,0-1.05,1.05v8.344a1.046,1.046,0,0,0,1.05,1.05h8.344a1.046,1.046,0,0,0,1.05-1.05V8.418a.583.583,0,0,1,1.167,0v4.2A2.132,2.132,0,0,1,10.62,14.837Z" transform="translate(-52 -1.741)" fill="#707070"/>
<path id="Trazado_55" data-name="Trazado 55" d="M5.583,11.086a.53.53,0,0,1-.408-.175A.815.815,0,0,1,5,10.386l.583-2.917a.321.321,0,0,1,.175-.292l7-7a.564.564,0,0,1,.817,0l2.334,2.334a.564.564,0,0,1,0,.817l-7,7a1.275,1.275,0,0,1-.292.175L5.7,11.086ZM6.692,7.877l-.35,1.867,1.867-.35,6.477-6.477L13.169,1.4Z" transform="translate(-54.083 -0.908)" fill="#707070"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 950 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.17 14.18"><defs><style>.cls-1{fill:#707070;}</style></defs><title>Asset 1</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M12,3.81H3.16a.32.32,0,0,0-.32.32.33.33,0,0,0,.32.33H12a.33.33,0,0,0,0-.65Zm.32-1.65H2.84a.32.32,0,0,0-.31.33.31.31,0,0,0,.31.32h9.49a.31.31,0,0,0,.31-.32.32.32,0,0,0-.31-.33ZM15,5.55,13.76.89s0,0,0,0A1.17,1.17,0,0,0,12.5,0L2.65,0A1.19,1.19,0,0,0,1.41.88s0,0,0,0L.16,5.67A.5.5,0,0,0,0,6v7.46a.81.81,0,0,0,.76.7H14.67c.35,0,.5-.34.5-.7V6A.59.59,0,0,0,15,5.55Zm-3.62,5.26H3.79V8.92h7.59v1.89Zm-1-4.74H1L2,1.1A.57.57,0,0,1,2.65.68l9.85,0c.44,0,.53.11.65.43l1.07,5Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 712 B

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
<style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#002B8F;}
</style>
<path class="st0" d="M20,5h-1.2c-0.6-1.6-2.3-2.4-3.8-1.8c-0.9,0.3-1.5,1-1.8,1.8H4C3.4,5,3,5.4,3,6s0.4,1,1,1h9.2
c0.6,1.6,2.3,2.4,3.8,1.8c0.9-0.3,1.5-1,1.8-1.8H20c0.6,0,1-0.4,1-1S20.6,5,20,5z M16,7c0.6,0,1-0.4,1-1s-0.4-1-1-1
c-0.6,0-1,0.4-1,1S15.4,7,16,7z M3,12c0-0.6,0.4-1,1-1h1.2C5.7,9.4,7.4,8.6,9,9.2c0.9,0.3,1.5,1,1.8,1.8H20c0.6,0,1,0.4,1,1
s-0.4,1-1,1h-9.2c-0.6,1.6-2.3,2.4-3.8,1.8c-0.9-0.3-1.5-1-1.8-1.8H4C3.4,13,3,12.6,3,12z M8,13c0.6,0,1-0.4,1-1s-0.4-1-1-1
s-1,0.4-1,1S7.4,13,8,13z M4,17c-0.6,0-1,0.4-1,1s0.4,1,1,1h9.2c0.6,1.6,2.3,2.4,3.8,1.8c0.9-0.3,1.5-1,1.8-1.8H20c0.6,0,1-0.4,1-1
s-0.4-1-1-1h-1.2c-0.6-1.6-2.3-2.4-3.8-1.8c-0.9,0.3-1.5,1-1.8,1.8H4z M17,18c0,0.6-0.4,1-1,1c-0.6,0-1-0.4-1-1s0.4-1,1-1
C16.6,17,17,17.4,17,18z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68.5 68.5"><defs><style>.cls-1,.cls-2{fill:#3c434a;}.cls-1{fill-rule:evenodd;}</style></defs><title>Asset 1</title><g id="Layer_2" data-name="Layer 2"><g id="Master_Layer_7" data-name="Master Layer 7"><path class="cls-1" d="M34.25,0h0A34.35,34.35,0,0,1,68.5,34.25h0A34.35,34.35,0,0,1,34.25,68.5h0A34.35,34.35,0,0,1,0,34.25H0A34.35,34.35,0,0,1,34.25,0Zm0,3.79A30.55,30.55,0,0,0,3.79,34.25h0A30.55,30.55,0,0,0,34.25,64.71h0A30.55,30.55,0,0,0,64.71,34.25h0A30.55,30.55,0,0,0,34.25,3.79Z"/></g><g id="Layer_1-2" data-name="Layer 1"><path class="cls-2" d="M38.8,29.87V49.93a4.54,4.54,0,0,1-4.55,4.55h0a4.54,4.54,0,0,1-4.55-4.55V29.87a4.56,4.56,0,0,1,4.55-4.55h0a4.56,4.56,0,0,1,4.55,4.55Z"/><path class="cls-2" d="M34.25,14a4.68,4.68,0,1,1-3.31,1.37A4.66,4.66,0,0,1,34.25,14Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 840 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 309.2 286.64"><defs><style>.cls-1{fill:#333;}</style></defs><title>fillAsset 2</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" y="118.07" width="67.56" height="164.08" rx="3.92"/><path class="cls-1" d="M267.44,99.64H204.1a5.43,5.43,0,0,1-5.43-5.43V38.11C194.12-.17,166.16-1.27,152.75.48a8.23,8.23,0,0,0-7.16,8.16V60.76a39.79,39.79,0,0,1-.53,6.63c-6.19,36.41-45.28,52.35-60.12,57.14a8.22,8.22,0,0,0-5.71,7.82V248.64c0,15.76,7.08,25.12,14.51,30.61a38.41,38.41,0,0,0,22.83,7.39h137.6c15.08,0,24.13-6.63,29.41-13.27A36.17,36.17,0,0,0,291,256.31l17.51-113.24C315.7,99.64,267.44,99.64,267.44,99.64Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 715 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 317.61 290.32"><defs><style>.cls-1{fill:#333;}</style></defs><title>Asset 1</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M68.21,286H9a9,9,0,0,1-9-9V123.85a9,9,0,0,1,9-9H68.21a9,9,0,0,1,9,9V277A9,9,0,0,1,68.21,286ZM11.48,274.47H65.72V126.34H11.48Z"/><path class="cls-1" d="M258.34,290.32H124.48A43.38,43.38,0,0,1,98.87,282c-7.5-5.54-16.44-16-16.44-34.39V134.49A13.7,13.7,0,0,1,92,121.42h0A111.66,111.66,0,0,0,122.71,106c13.48-9.93,21.49-21.93,23.83-35.67a32.86,32.86,0,0,0,.43-5.49V14.15a13.78,13.78,0,0,1,12-13.62c9.53-1.25,23.26-.89,34.51,7.87,9.21,7.16,14.8,18.51,16.61,33.74l0,.34V96.93h61.15c1,0,24.95.18,38.11,15.71,7.2,8.5,9.71,19.67,7.46,33.19L299.78,256a41,41,0,0,1-8.35,19.29C286,282.12,275.78,290.32,258.34,290.32Zm-162.86-158a2.24,2.24,0,0,0-1.57,2.14V247.61c0,10.92,4,19.38,11.78,25.15a31.78,31.78,0,0,0,18.79,6.08H258.34c10.33,0,18.44-3.62,24.11-10.75a29.54,29.54,0,0,0,6-13.89l17-110.22c1.68-10,0-18.07-4.86-23.88-9.67-11.47-29.19-11.69-29.39-11.69h-61.6a11,11,0,0,1-11-11V43.17c-1.47-11.9-5.58-20.55-12.22-25.71-4.48-3.5-12.63-7.29-26-5.55a2.27,2.27,0,0,0-2,2.24v50.7a45,45,0,0,1-.59,7.41c-2.85,16.78-12.39,31.24-28.34,43-12.85,9.46-26.84,14.77-34,17.1Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.494" height="14.511" viewBox="0 0 14.494 14.511">
<g id="Grupo_52" data-name="Grupo 52" transform="translate(-0.3)">
<path id="Trazado_49" data-name="Trazado 49" d="M241.536,240.4a.436.436,0,1,0,.436.436A.436.436,0,0,0,241.536,240.4Z" transform="translate(-233.988 -233.6)" fill="none"/>
<path id="Trazado_50" data-name="Trazado 50" d="M46.4,40.3a6.123,6.123,0,0,0-6.1,6.1,6.116,6.116,0,1,0,6.1-6.1Zm-3.847,6.667H41.96a.566.566,0,0,1,0-1.131h.594a.566.566,0,0,1,0,1.131Zm1.434-3.018a.568.568,0,0,1-.8-.074l-.379-.458a.566.566,0,1,1,.871-.724l.379.458a.566.566,0,0,1-.074.8Zm2.427,4.014a1.566,1.566,0,0,1-.552-3.032V41.508a.566.566,0,1,1,1.131,0v3.434a1.566,1.566,0,0,1-.58,3.021Zm2.659-3.912a.566.566,0,0,1-.436-.928l.379-.458a.566.566,0,0,1,.871.724l-.379.458a.565.565,0,0,1-.436.2ZM51.239,46.4a.567.567,0,0,1-.566.566h-.594a.566.566,0,1,1,0-1.131h.594A.567.567,0,0,1,51.239,46.4Z" transform="translate(-38.869 -39.16)" fill="none"/>
<path id="Trazado_51" data-name="Trazado 51" d="M12.653,2.127A7.238,7.238,0,0,0,2.422,12.367a7.15,7.15,0,0,0,7.926,1.564,7.353,7.353,0,0,0,2.308-1.567,7.257,7.257,0,0,0,1.561-2.308,7.17,7.17,0,0,0-1.564-7.929Zm-.8,9.437a6.1,6.1,0,1,1-8.63-8.63A6.053,6.053,0,0,1,7.533,1.14a6.093,6.093,0,0,1,4.322,10.424Z" transform="translate(0)" fill="#707070"/>
<path id="Trazado_52" data-name="Trazado 52" d="M84.6,67V63.566a.566.566,0,0,0-1.132,0v3.423A1.568,1.568,0,1,0,84.6,67Zm-.58,1.89a.436.436,0,1,1,.436-.436A.436.436,0,0,1,84.021,68.889Zm-3.861-1h-.594a.566.566,0,0,0,0,1.132h.594a.566.566,0,1,0,0-1.132Zm7.524,0a.566.566,0,1,0,0,1.132h.594a.566.566,0,0,0,0-1.132Zm-.263-3.245a.566.566,0,0,0-.8.074l-.379.458a.566.566,0,0,0,.871.724l.379-.458a.566.566,0,0,0-.074-.8Zm-6.133.1a.566.566,0,1,0-.871.724l.379.458a.566.566,0,0,0,.871-.724Z" transform="translate(-76.474 -61.218)" fill="#707070"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.21 14.18"><defs><style>.cls-1{fill:#707070;}</style></defs><title>Asset 2</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M6.85,10.61l-.5.49c-.63.63-1.26,1.27-1.88,1.91a1.1,1.1,0,0,1-.55.32l-3.13.78-.23.05C.17,14.21,0,14,0,13.58S.3,12.51.44,12s.26-1,.38-1.57a1.47,1.47,0,0,1,.43-.74C2,9,2.69,8.23,3.41,7.52a1.75,1.75,0,0,0,.16-.2L3.3,7,.55,4.27.19,3.91a.46.46,0,0,1,0-.76L1.35,2,3.09.3c.39-.39.58-.4,1,0l3,3,.32.31.29-.24L10.51.48A1.42,1.42,0,0,1,11.39,0a1.35,1.35,0,0,1,1.13.39l1.24,1.25a1.31,1.31,0,0,1,0,2c-.83.85-1.67,1.69-2.5,2.53-.22.22-.42.44-.66.69.16.16.29.31.43.44l2.78,2.78c.53.54.53.61,0,1.15l-2.65,2.65c-.42.42-.58.42-1,0l-1.6-1.6L7.15,10.87C7.07,10.79,7,10.72,6.85,10.61Zm-2,.6Q6.62,9.53,8.35,7.84c1.15-1.13,2.29-2.26,3.36-3.4L9.77,2.49C9.23,2.91,3.12,9,3,9.3,4.4,9.81,4.52,10.2,4.88,11.21ZM10.61,13l2.46-2.46-.65-.64-.7.69-.22.23q-.39.38-.69.09c-.19-.18-.17-.43,0-.69l.3-.29.64-.68-.71-.64-.27.23c-.12.1-.22.22-.35.31a.42.42,0,0,1-.58,0,.39.39,0,0,1,0-.54c.17-.21.36-.4.57-.63L10,7.46,7.53,9.92Zm-7-12L1.18,3.52l3.06,3.1C5,5.82,5.83,5,6.68,4.15l-.43-.44C6.13,3.82,6,3.88,6,4s-.22.23-.34.32a.45.45,0,0,1-.62,0,.41.41,0,0,1,0-.59c.08-.1.19-.2.28-.3l.28-.32-.68-.67-.31.28c-.23.23-.45.46-.69.68s-.46.23-.64,0a.44.44,0,0,1,0-.65c.22-.24.45-.46.68-.69s.18-.19.27-.3ZM1,13.16c.87-.22,1.64-.41,2.41-.63a.72.72,0,0,0,.34-.29,1.33,1.33,0,0,0-.15-1.62,1.31,1.31,0,0,0-1.56-.29.91.91,0,0,0-.43.44C1.43,11.52,1.26,12.29,1,13.16ZM12.41,3.75l.39-.37a4.18,4.18,0,0,0,.4-.44.4.4,0,0,0,0-.58c-.45-.47-.91-.92-1.37-1.37a.37.37,0,0,0-.51-.06,4.83,4.83,0,0,0-.85.84Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="15.566" height="15.715" viewBox="0 0 15.566 15.715">
<g id="Grupo_51" data-name="Grupo 51" transform="translate(-2.971 -2.399)">
<ellipse id="Elipse_1" data-name="Elipse 1" cx="5.5" cy="6" rx="5.5" ry="6" transform="translate(6.787 3.149)" fill="none" stroke="#707070" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="1.5"/>
<line id="Línea_5" data-name="Línea 5" x1="4.014" y2="4.014" transform="translate(4.032 13.039)" fill="none" stroke="#707070" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="1.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 604 B

View File

@@ -0,0 +1,8 @@
<svg id="Grupo_25" data-name="Grupo 25" xmlns="http://www.w3.org/2000/svg" width="17.476" height="13.107" viewBox="0 0 17.476 13.107">
<g id="Grupo_23" data-name="Grupo 23" transform="translate(0 0)">
<path id="Trazado_40" data-name="Trazado 40" d="M8.738,17.107a9.471,9.471,0,0,1-8.7-6.357.545.545,0,0,1,0-.392A9.471,9.471,0,0,1,8.738,4a9.471,9.471,0,0,1,8.7,6.357.545.545,0,0,1,0,.392A9.471,9.471,0,0,1,8.738,17.107Zm-7.6-6.553a8.36,8.36,0,0,0,7.6,5.461,8.36,8.36,0,0,0,7.6-5.461,8.36,8.36,0,0,0-7.6-5.461A8.36,8.36,0,0,0,1.134,10.553Z" transform="translate(0 -4)" fill="#707070"/>
</g>
<g id="Grupo_24" data-name="Grupo 24" transform="translate(5.461 3.277)">
<path id="Trazado_41" data-name="Trazado 41" d="M13.277,10a3.277,3.277,0,1,0,3.277,3.277A3.277,3.277,0,0,0,13.277,10Zm-1.092,3.4A1.092,1.092,0,1,1,13.277,12.3,1.092,1.092,0,0,1,12.184,13.4Z" transform="translate(-10 -10)" fill="#707070"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 930 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.58 8.19"><defs><style>.cls-1{fill:#fed001;}</style></defs><title>Asset 1</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M5.87,2.55l2.46.36a.29.29,0,0,1,.16.5L6.71,5.14a.29.29,0,0,0-.08.26l.42,2.45a.3.3,0,0,1-.43.31L4.42,7a.26.26,0,0,0-.27,0L2,8.15a.29.29,0,0,1-.42-.3L2,5.4a.28.28,0,0,0-.08-.26L.09,3.4a.29.29,0,0,1,.16-.49l2.46-.36a.27.27,0,0,0,.22-.16L4,.16a.29.29,0,0,1,.52,0l1.1,2.23A.3.3,0,0,0,5.87,2.55Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 538 B

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 420 588" style="enable-background:new 0 0 420 588;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<title>Asset 1</title>
<g id="Layer_2_1_">
<g id="Glyph">
<path class="st0" d="M348.7,327.6c43.6,21,71.3,65.1,71.3,113.4v136.5c0,5.8-4.7,10.5-10.5,10.5l0,0h-399C4.7,588,0,583.3,0,577.5
c0,0,0,0,0,0V441c0-48.4,27.7-92.4,71.3-113.4c4.6-2.1,10-0.6,12.9,3.5L189,475.1v-69.6l-19.6-33.1c-2.9-4.8-1.2-11.1,3.6-13.9
c1.6-0.9,3.3-1.4,5.2-1.4h63.7c5.6,0,10.2,4.6,10.2,10.2c0,1.8-0.5,3.6-1.4,5.2L231,405.5v69.6L335.8,331
C338.7,326.9,344.1,325.5,348.7,327.6z"/>
<path class="st0" d="M399,189c0,33.2-8.7,65.8-25.3,94.5C369.9,290,363,294,355.5,294h-59.2c-11.6,13-31.5,14.1-44.5,2.5
c-13-11.6-14.1-31.5-2.5-44.5c11.6-13,31.5-14.1,44.5-2.5c0.9,0.8,1.7,1.6,2.5,2.5h46.5c9.3-19.7,14.2-41.2,14.2-63
c0-81.1-65.9-147-147-147C143,42,84.4,87.3,67.6,152.2c-0.8,3.3-4.6,18.7-4.6,18.7v57.8c0,11.6-9.4,21.1-21,21.1
c-23.9,0-42-17.1-42-39.9v-42c0-19.1,12.9-35.7,31.3-40.6C57.5,51.1,129.3,0,210,0C314.2,0,399,84.8,399,189z"/>
<path class="st0" d="M336,189c0,8.4-0.8,16.9-2.5,25.2c-2.1,11.4-13,19-24.4,16.9c-11.4-2.1-19-13-16.9-24.4
c0-0.3,0.1-0.5,0.2-0.8c1.1-5.5,1.7-11.2,1.7-16.8c-0.1-8-1.4-15.9-3.8-23.5c-26.1-5.3-42-19.2-50.7-38
c-15.1,25.1-42.3,40.5-71.6,40.5h-39c-1.9,6.8-2.9,13.9-3,21c0.1,39.9,28.1,74.3,67.2,82.3c11.4,2,19.1,12.8,17.1,24.3
c-2,11.4-12.8,19.1-24.3,17.1c-0.4-0.1-0.8-0.2-1.2-0.3C126.4,300.6,84,248.7,84,189c0-69.6,56.4-126,126-126S336,119.4,336,189z"
/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13.95 13.95"><defs><style>.cls-1{fill:#707070;}</style></defs><g id="Capa_2" data-name="Capa 2"><g id="Capa_1-2" data-name="Capa 1"><path class="cls-1" d="M13.78,7.48,6.47.16A.6.6,0,0,0,6,0L.91.4A.56.56,0,0,0,.4.91L0,6a.6.6,0,0,0,.16.44l7.32,7.31a.54.54,0,0,0,.79,0l5.51-5.51A.56.56,0,0,0,13.78,7.48ZM12.13,7.4,7.4,12.13,7,11.7,11.69,7ZM1.47,1.47l4.39-.34L11.3,6.57,6.57,11.3,1.13,5.86Z"/><circle class="cls-1" cx="3.63" cy="3.63" r="0.84"/></g></g></svg>

After

Width:  |  Height:  |  Size: 508 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 82 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 52.26 22"><defs><style>.cls-1{fill:none;}.cls-2{fill:#b2e6ff;}.cls-3{fill:#00a4ff;}.cls-4{clip-path:url(#clip-path);}.cls-5{fill:#002b8f;}</style><clipPath id="clip-path"><rect class="cls-1" width="22" height="22"></rect></clipPath></defs><g id="Capa_2" data-name="Capa 2"><g id="Capa_1-2" data-name="Capa 1"><polygon class="cls-2" points="3.38 6.96 11 4.18 18.93 7.26 11 11.32 3.38 6.96"></polygon><path class="cls-3" d="M12,11.08l-1,7.59S2.18,17.84,3.17,8Z"></path><g class="cls-4"><path class="cls-5" d="M1,6.59a1,1,0,0,1-1-1A2.22,2.22,0,0,1,1.39,3.53L9.08.38a5,5,0,0,1,3.84,0l7.69,3.15A2.21,2.21,0,0,1,22,5.58a1,1,0,0,1-1,1h0a1,1,0,0,1-1-1,.23.23,0,0,0-.15-.21L12.16,2.23a3.1,3.1,0,0,0-2.32,0L2.15,5.38A.23.23,0,0,0,2,5.59a1,1,0,0,1-1,1Z"></path><path class="cls-5" d="M11,22a5.06,5.06,0,0,1-1.92-.38L1.39,18.46A2.19,2.19,0,0,1,0,16.41V5.58a1,1,0,0,1,2,0V16.41a.23.23,0,0,0,.16.21l7.68,3.15a3,3,0,0,0,2.32,0l7.69-3.15a.23.23,0,0,0,.15-.21V5.58a1,1,0,1,1,2,0V16.41a2.21,2.21,0,0,1-1.38,2.05l-7.7,3.16A5.06,5.06,0,0,1,11,22Z"></path></g><path class="cls-5" d="M18.93,7.26a1,1,0,0,0-1.31-.55L12.16,9A3.1,3.1,0,0,1,9.84,9L4.38,6.71a1,1,0,0,0-1.31.55,1,1,0,0,0,.55,1.3L9.08,10.8a5.12,5.12,0,0,0,.92.28v6.59a1,1,0,0,0,2,0V11.08a5.12,5.12,0,0,0,.92-.28l5.46-2.24a1,1,0,0,0,.55-1.3Z"></path><path class="cls-5" d="M30.56,4.73,29.65,8h-.9l-.5-1.78L27.75,8h-.9l-.91-3.24h.82l.54,1.92.54-1.92h.82l.54,1.92.54-1.92Z"></path><path class="cls-5" d="M33.93,5.51v.31a.76.76,0,0,1-.55.74L31.84,7v.85H31V4.73h2.14A.77.77,0,0,1,33.93,5.51Zm-.82,0A.07.07,0,0,0,33,5.39h-1.2v1L33,6a.15.15,0,0,0,.11-.14Z"></path><path class="cls-5" d="M29.67,11c0,.78-.17,1.57-1.46,1.57H26.76V9.38h1.45C29.5,9.39,29.67,10.18,29.67,11Zm-.82,0c0-.68-.11-.91-.64-.91h-.63v1.82h.63C28.74,11.86,28.85,11.64,28.85,11Z"></path><path class="cls-5" d="M33.05,10.17v2.35h-.82v-.31a1.07,1.07,0,0,1-.92.4,1.17,1.17,0,0,1-1.16-1.27,1.17,1.17,0,0,1,1.16-1.27,1.07,1.07,0,0,1,.92.4v-.3Zm-.82,1.15a.63.63,0,1,0-.63.71.63.63,0,0,0,.63-.66Z"></path><path class="cls-5" d="M34.77,10.74v1.12a.07.07,0,0,0,.08.08h.35v.58h-.48a.78.78,0,0,1-.77-.78v-1h-.43v-.58H34V9.54l.82-.16v.78h.43v.58Z"></path><path class="cls-5" d="M38.52,10.17v2.35H37.7v-.31a1.09,1.09,0,0,1-.92.4,1.17,1.17,0,0,1-1.17-1.27,1.17,1.17,0,0,1,1.17-1.27,1.09,1.09,0,0,1,.92.4v-.3Zm-.82,1.15a.64.64,0,1,0-1.27,0,.64.64,0,1,0,1.27,0Z"></path><path class="cls-5" d="M42.08,11.34a1.17,1.17,0,0,1-1.16,1.27,1.11,1.11,0,0,1-.93-.4v.31h-.81V9.39H40v1.08a1.11,1.11,0,0,1,.93-.4A1.17,1.17,0,0,1,42.08,11.34Zm-.82,0a.64.64,0,0,0-.63-.69.65.65,0,0,0-.64.67v0a.64.64,0,1,0,1.27,0Z"></path><path class="cls-5" d="M45.39,10.17v2.35h-.82v-.31a1.07,1.07,0,0,1-.92.4,1.17,1.17,0,0,1-1.16-1.27,1.17,1.17,0,0,1,1.16-1.27,1.07,1.07,0,0,1,.92.4v-.3Zm-.82,1.15a.63.63,0,1,0-.63.71.63.63,0,0,0,.63-.66Z"></path><path class="cls-5" d="M48.92,11.76a.71.71,0,0,1-.75.76H46v-.58h2a.07.07,0,0,0,.08-.08V11.7a.08.08,0,0,0-.08-.08H46.74a.67.67,0,0,1-.75-.71.7.7,0,0,1,.75-.75h2.17v.58h-2a.07.07,0,0,0-.07.07V11a.08.08,0,0,0,.07.08h1.29A.67.67,0,0,1,48.92,11.76Z"></path><path class="cls-5" d="M50.21,11.62a.57.57,0,0,0,.59.42.59.59,0,0,0,.44-.16l.71.29a1.48,1.48,0,0,1-1.15.45,1.29,1.29,0,1,1,0-2.55,1.31,1.31,0,0,1,1.42,1,.92.92,0,0,1,0,.29v.28Zm1.18-.57a.56.56,0,0,0-.59-.41.58.58,0,0,0-.59.41Z"></path><path class="cls-5" d="M29,14v.66H28v2.48h-.82V14.69h-1V14Z"></path><path class="cls-5" d="M31.81,16a1.29,1.29,0,0,1-1.45,1.28,1.29,1.29,0,1,1,0-2.55A1.29,1.29,0,0,1,31.81,16ZM31,16a.64.64,0,1,0-1.27,0,.61.61,0,0,0,.64.7C30.81,16.69,31,16.37,31,16Z"></path><path class="cls-5" d="M35.1,16a1.47,1.47,0,1,1-1.46-1.27A1.3,1.3,0,0,1,35.1,16Zm-.82,0A.64.64,0,1,0,33,16c0,.38.18.7.63.7A.61.61,0,0,0,34.28,16Z"></path><path class="cls-5" d="M35.63,17.17V14h.82v3.14Z"></path><path class="cls-5" d="M40,16.41a.71.71,0,0,1-.76.76H37.06v-.58h2a.08.08,0,0,0,.08-.07v-.16a.09.09,0,0,0-.08-.08H37.8a.67.67,0,0,1-.75-.71.7.7,0,0,1,.75-.75H40v.58h-2a.07.07,0,0,0-.07.08v.15a.08.08,0,0,0,.07.08h1.28A.68.68,0,0,1,40,16.41Z"></path></g></g></svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.1 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 660.5 151.3" style="enable-background:new 0 0 660.5 151.3;" xml:space="preserve">
<style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#002B8F;}
.st1{fill:#002B8F;}
</style>
<g id="Capa_2_00000138562333407242794050000002491252175793717176_">
<g id="Capa_1-2">
<polygon class="st0" points="160.3,80.2 130.8,64 101.5,80.5 130.8,96.2 "/>
<polygon class="st0" points="86.6,118.5 97.2,123.1 97.2,82.9 86.6,88.9 "/>
<polygon class="st0" points="101.6,94.9 101.6,85.3 130.4,100.6 130.4,110.3 "/>
<polygon class="st0" points="86.6,72.5 128.7,48.7 128.7,60.3 86.6,84.2 "/>
<polygon class="st0" points="175.5,72.1 133.2,48.8 133.2,60.4 175.5,83.7 "/>
<polygon class="st0" points="101.5,107.4 101.5,97.7 130.4,113.2 130.4,122.6 "/>
<polygon class="st0" points="160.4,107.1 160.4,97.5 131.2,113.1 131.2,122.7 "/>
<polygon class="st0" points="164.8,117.1 175.5,111.3 175.5,82.9 164.8,77.5 "/>
<polygon class="st0" points="86.6,128.8 128.7,151.3 128.7,139.7 86.6,117.2 "/>
<polygon class="st0" points="175.5,128.3 133.2,151 133.2,139.4 175.5,116.6 "/>
<polygon class="st0" points="160.4,94.7 160.4,85 131.2,100.6 131.2,110.3 "/>
<polygon class="st0" points="101.5,119.6 101.5,110 130.4,125.5 130.4,135.1 "/>
<polygon class="st0" points="160.4,119.6 160.4,109.9 131.2,125.5 131.2,135.1 "/>
<path class="st1" d="M430,72.4v55.1h-12.6l-7.5-25v25H398V72.4h11.9l8,24.8V72.4H430z"/>
<path class="st1" d="M466.5,105.8h-17.8v9.8c-0.1,1.3,0.1,2.7,0.4,4c0.3,0.6,1,1,1.7,0.9c0.8,0.1,1.7-0.3,2.1-1.2
c0.4-1.5,0.6-3,0.5-4.6v-6h13.2v3.3c0.1,2.2-0.1,4.3-0.5,6.5c-0.5,1.7-1.3,3.4-2.5,4.8c-1.2,1.7-3,3-4.9,3.8
c-2.4,0.9-4.9,1.3-7.5,1.2c-2.7,0.1-5.2-0.4-7.7-1.2c-3.8-1.2-6.7-4.4-7.8-8.3c-0.6-2.5-0.8-5.1-0.7-7.7V98c0-3.9,0.5-7.1,1.6-9.4
c1.1-2.3,2.9-4.1,5.2-5.2c2.6-1.2,5.5-1.9,8.4-1.8c3.3-0.2,6.6,0.7,9.5,2.2c2.3,1.3,4.2,3.3,5.3,5.8c1,2.4,1.6,5.8,1.6,10.2V105.8
z M452.7,98.4v-3.3c0.1-1.5-0.1-3.1-0.4-4.6c-0.2-0.7-0.9-1.1-1.6-1c-1,0-1.6,0.2-1.7,0.8c-0.3,1.6-0.4,3.2-0.3,4.6v3.3
L452.7,98.4z"/>
<path class="st1" d="M485.5,76.3v7.1h3.7v7.1h-3.7v24.1c0,3,0.2,4.6,0.5,5c0.3,0.3,1.6,0.5,3.8,0.5v7.3h-5.6
c-2.2,0.1-4.5-0.1-6.7-0.4c-1.3-0.2-2.6-0.8-3.5-1.8c-1-0.8-1.7-2-1.9-3.2c-0.3-2.8-0.5-5.7-0.4-8.5V90.6h-3v-7.1h3v-7.1
C471.7,76.3,485.5,76.3,485.5,76.3z"/>
<path class="st1" d="M536.7,82.4l-5.5,45.1h-14.9c-0.8-5.6-1.7-12.8-2.8-21.8c-0.3,4-0.9,8-1.6,12l-1.6,9.8h-14.9l-5.8-45.2h11.9
c0.1,1.2,1.1,9.8,3,25.9c0.2-1.7,1.2-10.3,3.1-25.9h11.4l2.7,25.9c0.6-8.7,1.7-17.3,3.2-25.9L536.7,82.4z"/>
<path class="st1" d="M569.9,98.2v11c0.1,3-0.1,6-0.6,9c-0.4,2-1.3,3.8-2.7,5.3c-1.3,1.7-3.2,2.9-5.1,3.6c-2.3,0.8-4.8,1.2-7.2,1.2
c-2.6,0.1-5.2-0.2-7.7-1c-1.9-0.5-3.6-1.6-4.9-3.1c-1.2-1.4-2.1-3.1-2.5-4.9c-0.6-2.8-0.8-5.7-0.7-8.6V99.1c0-4.2,0.4-7.5,1.3-9.8
c0.9-2.4,2.7-4.4,4.9-5.7c2.7-1.5,5.9-2.2,9-2.1c2.7-0.1,5.4,0.4,8,1.4c3.6,1.4,6.5,4.4,7.6,8.1C569.8,93.4,570,95.8,569.9,98.2z
M556.2,94.8c0.1-1.5,0-2.9-0.4-4.4c-0.2-0.6-0.9-1-1.6-0.9c-0.7-0.1-1.3,0.2-1.7,0.9c-0.2,0.6-0.4,2.1-0.4,4.4v20.4
c-0.1,1.4,0.1,2.8,0.4,4.1c0.5,0.9,1.7,1.2,2.5,0.7c0.2-0.2,0.5-0.4,0.7-0.7c0.3-1.2,0.5-2.6,0.4-3.8L556.2,94.8z"/>
<path class="st1" d="M588.3,82.4l-0.6,6c2-4.2,4.9-6.5,8.7-6.7v15.9c-2.5,0-4.4,0.3-5.6,1c-1.1,0.6-1.9,1.7-2.2,2.8
c-0.3,2.8-0.5,5.6-0.4,8.4v17.7h-13.8V82.4H588.3z"/>
<path class="st1" d="M629.1,82.4l-5.6,18l7.2,27.1h-13.3l-4.2-19.7v19.7h-13.8V72.4h13.8v23.1l4.3-13.2H629.1z"/>
<path class="st1" d="M660.8,96.8h-12.2v-2.5c0.1-1.3,0-2.7-0.3-4c-0.2-0.6-0.8-0.8-1.8-0.8c-0.7-0.1-1.3,0.2-1.7,0.7
c-0.4,0.7-0.7,1.5-0.6,2.3c0,1,0.1,2.1,0.2,3.1c0.3,0.8,1,1.6,1.7,2.2c1.9,1.3,3.9,2.4,6,3.4c4,1.9,6.6,3.8,7.9,5.5
s1.9,4.2,1.9,7.5c0,3.6-0.5,6.5-1.4,8.3c-1.1,2-2.7,3.5-4.8,4.3c-2.6,1.1-5.3,1.6-8.1,1.5c-3.1,0.1-6.1-0.5-9-1.7
c-2.2-0.8-4-2.4-5.1-4.4c-0.9-1.8-1.4-4.6-1.4-8.5v-2.2h12.2v2.8c-0.1,1.6,0.1,3.2,0.5,4.7c0.3,0.7,1.1,1.2,1.8,1.1
c0.7,0.1,1.5-0.2,2.1-0.7c0.4-0.5,0.6-1.5,0.6-3.1c0-2.2-0.2-3.5-0.7-4.1c-0.5-0.6-3.2-2.2-8-4.8c-4.1-2.2-6.5-4.3-7.4-6.2
c-0.9-2.1-1.4-4.3-1.3-6.6c0-3.6,0.5-6.2,1.4-8c1.1-1.8,2.8-3.2,4.8-4c2.6-1,5.2-1.4,8-1.4c2.6-0.1,5.1,0.3,7.6,1.2
c1.8,0.6,3.5,1.7,4.8,3c1,1,1.7,2.2,2.1,3.5c0.2,1.7,0.4,3.3,0.3,5L660.8,96.8L660.8,96.8z"/>
<path class="st1" d="M197.5,72.9h10.1c6.8,0,11.4,0.2,13.8,0.8c2.4,0.5,4.5,2,5.9,4c1.5,2.2,2.2,5.6,2.2,10.3
c0,4.3-0.5,7.1-1.6,8.6s-3.2,2.3-6.3,2.7c2.8,0.7,4.7,1.7,5.7,2.8c0.8,0.9,1.5,2.1,1.8,3.2c0.2,1,0.3,3.7,0.3,8.1v14.5h-13.3
v-18.3c0-3-0.2-4.8-0.7-5.5c-0.5-0.7-1.7-1.1-3.6-1.1v24.9h-14.3L197.5,72.9L197.5,72.9z M211.9,82.3v12.3
c1.2,0.1,2.3-0.2,3.4-0.7c0.7-0.4,1-1.9,1-4.3v-3.1c0-1.7-0.3-2.9-0.9-3.5C214.8,82.5,213.5,82.3,211.9,82.3z"/>
<path class="st1" d="M246.9,100.3H234v-3.1c0-3.5,0.4-6.2,1.2-8c1-2.2,2.7-3.9,4.8-5c2.4-1.5,5.6-2.2,9.5-2.2
c4.6,0,8.1,0.8,10.5,2.5c2.2,1.4,3.7,3.6,4.2,6.1c0.5,2.4,0.7,7.3,0.7,14.8V128h-13.4v-4c-1.4,3.1-4.6,5-8,4.8
c-2.4,0-4.6-0.7-6.6-2c-2-1.3-3-4.3-3-8.9v-3.7c0-3.4,0.5-5.6,1.6-6.9c1.1-1.2,3.7-2.7,8-4.3c4.5-1.7,7-3,7.2-3.6
c0.4-1.2,0.6-2.5,0.5-3.7c0-2.3-0.2-3.9-0.5-4.6c-0.3-0.7-1-1.1-1.7-1.1c-0.9,0-1.5,0.3-1.7,0.9c-0.3,1.6-0.4,3.2-0.3,4.6
L246.9,100.3z M251.3,106.4c-2.2,1.6-3.5,3-3.8,4.1c-0.4,1.5-0.6,3.2-0.5,4.7c0,2.3,0.2,3.8,0.5,4.5s1.1,1.1,1.8,1
c0.7,0.1,1.3-0.2,1.7-0.8c0.2-0.6,0.4-2,0.4-4.2L251.3,106.4z"/>
<path class="st1" d="M283.9,72.9v7.2h-14.2v-7.2C269.8,72.9,283.9,72.9,283.9,72.9z M283.9,82.8v45.1h-14.2V82.8H283.9z"/>
<path class="st1" d="M319.9,98.6v11c0.1,3-0.1,6-0.6,9c-0.4,2-1.3,3.7-2.7,5.3c-1.3,1.7-3.2,2.9-5.1,3.6c-2.3,0.8-4.8,1.2-7.2,1.2
c-2.6,0.1-5.2-0.2-7.7-1c-1.9-0.5-3.6-1.6-4.9-3.1c-1.2-1.4-2.1-3.1-2.5-4.9c-0.6-2.8-0.8-5.7-0.7-8.6V99.6c0-4.2,0.4-7.5,1.3-9.8
c0.9-2.4,2.7-4.4,4.9-5.6c2.7-1.5,5.9-2.2,9-2.2c2.7-0.1,5.4,0.4,8,1.4c3.6,1.4,6.5,4.4,7.5,8.1C319.9,93.8,320,96.2,319.9,98.6z
M306.3,95.2c0.1-1.5,0-2.9-0.4-4.4c-0.2-0.6-0.9-1-1.6-0.9c-0.7-0.1-1.3,0.2-1.7,0.9c-0.2,0.6-0.4,2.1-0.4,4.4v20.4
c-0.1,1.4,0.1,2.8,0.4,4.1c0.2,0.7,0.9,1,1.6,1c0.7,0.1,1.3-0.2,1.7-0.9c0.3-1.2,0.5-2.6,0.4-3.8V95.2z"/>
<path class="st1" d="M338.7,72.9v55.1h-14.2V72.9H338.7z"/>
<path class="st1" d="M355.9,100.3H343v-3.1c0-3.5,0.4-6.2,1.2-8c1.1-2.2,2.7-3.9,4.9-5c2.4-1.4,5.6-2.2,9.5-2.2
c4.6,0,8.1,0.8,10.5,2.5c2.2,1.4,3.7,3.6,4.2,6.1c0.5,2.4,0.7,7.3,0.7,14.8V128h-13.4v-4c-1.4,3.1-4.6,5-8,4.8
c-2.4,0-4.6-0.7-6.6-2c-2-1.3-3-4.3-3-8.9v-3.7c0-3.4,0.5-5.6,1.6-6.9c1.1-1.2,3.7-2.7,8-4.3c4.5-1.7,7-3,7.2-3.6
c0.4-1.2,0.6-2.5,0.5-3.7c0-2.3-0.2-3.9-0.5-4.6c-0.3-0.7-1-1.1-1.7-1.1c-0.9,0-1.5,0.3-1.7,0.9c-0.3,1.6-0.4,3.2-0.3,4.6
L355.9,100.3z M360.2,106.4c-2.2,1.6-3.5,3-3.8,4.1c-0.4,1.5-0.6,3.2-0.5,4.7c0,2.3,0.2,3.8,0.5,4.5c0.3,0.7,1.1,1.1,1.8,1
c0.7,0.1,1.3-0.2,1.7-0.8c0.2-0.5,0.4-1.9,0.4-4.2L360.2,106.4z"/>
</g>
</g>
<g>
<path class="st1" d="M2.7,15.4v8.2h-4.8V0.3h9.1c1.7,0,3.3,0.3,4.6,1s2.3,1.5,3.1,2.7s1.1,2.5,1.1,4c0,2.3-0.8,4.1-2.3,5.4
s-3.7,2-6.5,2H2.7z M2.7,11.5h4.3c1.3,0,2.2-0.3,2.9-0.9c0.7-0.6,1-1.4,1-2.6c0-1.1-0.3-2.1-1-2.8S8.2,4.2,7.1,4.2H2.7V11.5z"/>
<path class="st1" d="M38.1,12.5c0,2.3-0.4,4.3-1.2,6s-2,3.1-3.5,4s-3.2,1.4-5.2,1.4c-1.9,0-3.6-0.5-5.2-1.4c-1.5-0.9-2.7-2.2-3.5-4
c-0.8-1.7-1.3-3.7-1.3-5.9v-1.2c0-2.3,0.4-4.3,1.2-6s2-3.1,3.5-4C24.5,0.5,26.2,0,28.2,0s3.7,0.5,5.2,1.4c1.5,0.9,2.7,2.3,3.5,4
c0.8,1.7,1.2,3.8,1.2,6V12.5z M33.2,11.4c0-2.4-0.4-4.3-1.3-5.6S29.8,4,28.2,4c-1.6,0-2.8,0.6-3.7,1.9c-0.9,1.3-1.3,3.1-1.3,5.5
v1.1c0,2.4,0.4,4.2,1.3,5.5c0.9,1.3,2.1,2,3.8,2c1.6,0,2.8-0.6,3.7-1.9c0.9-1.3,1.3-3.1,1.3-5.5V11.4z"/>
<path class="st1" d="M59.7,16.9l3.1-16.5h4.8l-5.2,23.3h-4.8L53.8,8L50,23.6h-4.8L40,0.3h4.8L48,16.8l3.8-16.5h4.1L59.7,16.9z"/>
<path class="st1" d="M84.2,13.5H75v6.2h10.8v3.8H70.2V0.3h15.6v3.9H75v5.5h9.2V13.5z"/>
<path class="st1" d="M97.2,15.1h-3.8v8.5h-4.8V0.3h8.6c2.7,0,4.9,0.6,6.4,1.8c1.5,1.2,2.2,3,2.2,5.2c0,1.6-0.3,2.9-1,4
c-0.7,1.1-1.7,1.9-3.1,2.5l5,9.5v0.2h-5.1L97.2,15.1z M93.4,11.2h3.9c1.2,0,2.1-0.3,2.8-0.9c0.7-0.6,1-1.5,1-2.5
c0-1.1-0.3-2-0.9-2.6s-1.6-0.9-2.9-0.9h-3.8V11.2z"/>
<path class="st1" d="M123.4,13.5h-9.2v6.2H125v3.8h-15.6V0.3H125v3.9h-10.8v5.5h9.2V13.5z"/>
<path class="st1" d="M127.8,23.6V0.3h7.2c2,0,3.9,0.5,5.5,1.4s2.9,2.2,3.8,3.9s1.4,3.6,1.4,5.8v1.1c0,2.2-0.4,4.1-1.3,5.8
c-0.9,1.7-2.1,3-3.8,3.9c-1.6,0.9-3.4,1.4-5.5,1.4H127.8z M132.6,4.2v15.5h2.3c1.9,0,3.3-0.6,4.3-1.8c1-1.2,1.5-3,1.5-5.3v-1.2
c0-2.4-0.5-4.2-1.5-5.4s-2.4-1.8-4.3-1.8H132.6z"/>
<path class="st1" d="M157.3,23.6V0.3h8.1c2.8,0,5,0.5,6.4,1.6s2.2,2.7,2.2,4.8c0,1.1-0.3,2.1-0.9,3s-1.4,1.5-2.4,1.9
c1.2,0.3,2.1,0.9,2.8,1.8c0.7,0.9,1,2,1,3.3c0,2.2-0.7,3.9-2.1,5.1c-1.4,1.2-3.5,1.7-6.1,1.8H157.3z M162,10.1h3.5
c2.4,0,3.6-1,3.6-2.9c0-1.1-0.3-1.8-0.9-2.3c-0.6-0.5-1.6-0.7-2.9-0.7H162V10.1z M162,13.4v6.3h4.1c1.1,0,2-0.3,2.6-0.8
c0.6-0.5,1-1.3,1-2.2c0-2.1-1.1-3.2-3.3-3.2H162z"/>
<path class="st1" d="M185.3,10.8l4.8-10.5h5.2l-7.6,14.8v8.4h-4.9v-8.4l-7.6-14.8h5.3L185.3,10.8z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 47.5 47.5" viewBox="0 0 47.5 47.5"><defs><clipPath id="a"><path d="M0 38h38V0H0v38Z"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(1.25 0 0 -1.25 0 47.5)"><path fill="#ffcc4d" d="M0 0c-1.842 0-2.654 1.338-1.806 2.973l15.609 30.055c.848 1.635 2.238 1.635 3.087 0L32.499 2.973C33.349 1.338 32.536 0 30.693 0H0Z" transform="translate(3.653 2)"/><path fill="#231f20" d="M0 0c0 1.302.961 2.108 2.232 2.108 1.241 0 2.233-.837 2.233-2.108v-11.938c0-1.271-.992-2.108-2.233-2.108-1.271 0-2.232.807-2.232 2.108V0Zm-.187-18.293a2.422 2.422 0 0 0 2.419 2.418 2.422 2.422 0 0 0 2.419-2.418 2.422 2.422 0 0 0-2.419-2.419 2.422 2.422 0 0 0-2.419 2.419" transform="translate(16.769 26.34)"/></g></svg>

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1 @@
<?php // Silence is golden

View File

@@ -0,0 +1,167 @@
function feedOriginInitAjax(element) {
let slug = element.getAttribute("data-slug");
element.classList.add('disabled');
if (element.getAttribute("data-form") === "uncategorized") {
var form_feed_origin = element.parentElement;
} else {
var form_feed_origin = document.getElementById("form-feed-origin-" + slug);
}
let data = new FormData(form_feed_origin);
data.append( 'license' , wpdbt_admin_vars.data.license_key);
data.append( 'license_url' , wpdbt_admin_vars.data.license_url);
data.append( 'version' , wpdbt_admin_vars.data.version);
data.append( 'comercial' , true);
if (element.classList.contains("vote")) {
data.append("vote", element.getAttribute("data-type"));
document.getElementById("container-votes-" + slug).classList.add("d-none");
}
if(slug == 'uncategorized-group' || slug == 'uncategorized-individual'){
data.append('mode','uncategorized');
let split_slug = data.get('slug').split('$');
data.set('slug', split_slug[0]);
// Search extra data plugin
let origin = null;
let origin_type = data.get('type');
let origin_slug = data.get('slug');
// plugins and themes is set when load data is ending
if(origin_type == 'plugin'){
origin = Object.values(plugins).find( plugin => plugin.slug === origin_slug );
}
if(origin_type == 'theme'){
origin = Object.values(themes).find( theme => theme.slug === origin_slug );
}
if(origin != null){
data.append('marketplace', origin.marketplace);
data.append('origin_name', origin.name);
data.append('origin_author', origin.author);
data.append('origin_author_name', origin.author_name);
data.append('origin_author_url', origin.author_url);
data.append('origin_description', origin.description);
data.append('origin_version', origin.version);
}
}else{
data.append('mode','votes');
data.set('name', '["' + data.get('name') + '"]');
data.set('prefix', '["' + data.get('prefix') + '"]');
}
fetch(wpdbt_admin_vars.data.api_domain + "/api/v2/feedback", {
method: "POST",
body: data,
})
.then(function (response) {
return response.json();
})
.then(function (result) {
let element_text = document.getElementById('feedback_message-' + slug);
if(result.success === false){
buildResponse(element_text,result.message, "bg-light-red", slug)
element.classList.remove('disabled');
return;
}
if(result.success === true){
var obj_names = JSON.parse(data.get("name"));
var obj_prefixes = [];
if(wpdbt_admin_vars.data.current_page == 'tables'){
obj_prefixes = JSON.parse(data.get("prefix"));
}
Object.keys(obj_names).forEach(key => {
var name_element = '';
if(wpdbt_admin_vars.data.current_page == 'tables' && obj_prefixes[key] == true || obj_prefixes[key] == 'true'){
name_element = wpdbt_admin_vars.data.prefix + obj_names[key];
}else{
name_element = obj_names[key];
}
list.get('name',name_element)[0]._values.feedback = true;
});
buildResponse(element_text,result.message, "bg-light-green", slug)
feedbackUserInitAjax(data);
element.classList.remove('disabled');
return;
}
})
.catch(function (error) {
console.error(error);
let element_text = document.getElementById('feedback_message-' + slug);
buildResponse(element_text,'ERROR', "bg-light-red", slug)
element.classList.remove('disabled');
return;
});
}
function buildResponse(element_text,message, bg_class, slug){
element_text.innerHTML = message;
document.getElementById("container-feedback-" + slug).classList.add(bg_class);
document.getElementById("container-feedback-" + slug).classList.remove("d-none");
}
function feedbackUserInitAjax(data) {
jQuery.ajax({
type: "POST",
url: ajax_var.url,
data:
"action=" +
ajax_var.action +
"&nonce=" +
ajax_var.nonce +
"&name=" +
data.get("name") +
"&prefix=" +
data.get("prefix") +
"&type=" +
data.get("type") +
"&section=" +
data.get("section") +
"&vote=" +
data.getAll("vote")[1] ?? null,
success: function (result) {
console.log("success");
},
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR.responseText);
},
done: function (result) {
console.log("done:");
},
});
}

View File

@@ -0,0 +1,89 @@
var counter_check = 1;
sleep(3000).then(() => {
checkFinishPriorityScanner();
});
function checkFinishPriorityScanner() {
counter_check++;
jQuery.ajax({
type: "post",
url: ajax_var_check_force_scanner.url,
data:
"action=" +
ajax_var_check_force_scanner.action +
"&nonce=" +
ajax_var_check_force_scanner.nonce,
success: function (response) {
response = JSON.parse(response);
if(response.cron_status == 'success'){
document.getElementById('status-indicator-cron-execute').style.color = '#bef6e2';
}
if(response.cron_status == 'error'){
document.getElementById('status-indicator-cron-execute').style.color = '#FFE6E8';
set_error(ajax_var_check_force_scanner.translations.errors.cron);
return;
}else{
if( counter_check >= 80 ){
document.getElementById('status-indicator-first-scanner').style.color = '#FFE6E8';
set_error(ajax_var_check_force_scanner.translations.errors.attempts);
return;
}
if (response.force_scanner == "NO") {
set_success(ajax_var_check_force_scanner.translations.success.scanner);
sleep(1500).then(() => {
location.reload();
});
}
if (response.force_scanner == "YES") {
sleep(3000).then(() => {
document.getElementById('status-indicator-counter').innerHTML = counter_check;
checkFinishPriorityScanner();
});
}
}
},
error: function (jqXHR, textStatus, errorThrown) {
console.log("error");
console.log(errorThrown);
console.log(jqXHR.responseText);
},
});
}
function sleep(time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
function set_error(message){
// Change image
document.getElementById('image-scanner-execute').src = ajax_var_check_force_scanner.image_error;
// Change error message
document.getElementById('error-message').innerHTML = message;
document.getElementById('error-message').style.visibility = 'initial';
}
function set_success(message){
// Change dot status
document.getElementById('status-indicator-first-scanner').style.color = '#bef6e2';
// Change error message
document.getElementById('success-message').innerHTML = message;
document.getElementById('success-message').style.visibility = 'initial';
}

View File

@@ -0,0 +1,62 @@
var load_status = 0;
var elem_load = document.getElementById("progress_data_bar");
var span_current_load_step = document.getElementById("load_current_step");
var span_load_total_step = document.getElementById("load_total_step");
var span_load_total_records = document.getElementById("load_total_records");
var span_load_indicator_step = document.getElementById("load_indicator_step");
if(page != 'general'){
init_load_data_status();
}else{
elem_load.style.width = "100%";
}
var first_call = true;
function init_load_data_status() {
var interval = setInterval(function () {
if (load_status == 100 && first_call != true) {
clearInterval(interval);
} else {
jQuery.ajax({
timeout: 100000,
type: "post",
url: ajax_var_load_status.url,
data:
"action=" +
ajax_var_load_status.action +
"&nonce=" +
ajax_var_load_status.nonce,
success: function (response) {
first_call = false;
response = JSON.parse(response);
span_load_total_records.innerHTML = response.data_loop.total;
if(response.cache === true){
span_load_indicator_step.innerHTML = ' (cache)'
}else{
span_load_total_step.innerHTML = response.data_loop.loops;
span_current_load_step.innerHTML = response.data_loop.current_loop;
}
if (load_status != 100) {
let current_porcent = response.porcent;
elem_load.style.width = current_porcent + "%";
load_status = current_porcent;
} else {
elem_load.style.width = 100 + "%";
}
},
error: function (jqXHR, textStatus, errorThrown) {
console.log("error");
console.log(errorThrown);
console.log(jqXHR.responseText);
},
});
}
}, 1000);
}

View File

@@ -0,0 +1,137 @@
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const page = urlParams.get("page");
var btn_scanner = document.getElementById('scanner-btn');
var btn_remove_all_transients = document.getElementById('btn_remove_all_transients');
init_load_data();
function init_load_data() {
jQuery.ajax({
timeout: 100000,
type: "post",
url: ajax_var_load_data.url,
data:
"action=" +
ajax_var_load_data.action +
"&nonce=" +
ajax_var_load_data.nonce +
"&page=" +
page,
success: function (response) {
var response = JSON.parse(response);
if( response.status_loading.data_loop.is_finish == true || response.status_loading.cache == true){
init_display_data(response);
btn_scanner.disabled = false;
btn_remove_all_transients.disabled = false;
}else{
init_load_data();
}
},
error: function (jqXHR, textStatus, errorThrown) {
console.log("error");
console.log(errorThrown);
console.log(jqXHR.responseText);
},
});
}
function init_display_data(response){
if(wpdbt_admin_vars.data.current_page == 'options' || wpdbt_admin_vars.data.current_page == 'transients'){
display_size(response.size)
}
// This set to load data is ending
plugins = response.plugins;
themes = response.themes;
var list_values = response.data;
var choices_values = response.origins;
list.add(list_values, function (items) {
console.log("All " + items.length + " were added!");
btn_all.innerHTML += "(" + items.length + ")";
var count_uncategorized = 0;
var count_plugin = 0;
var count_theme = 0;
var count_core = 0;
let origin_type = '';
items.forEach(function (item) {
if(typeof item._values.origin == 'undefined'){
// Do something
}else{
origin_type = item._values.origin.type;
if (origin_type == "uncategorized" || item._values.origin.warning === 'yes' ) {
count_uncategorized++;
}
if (origin_type == "plugin") {
count_plugin++;
}
if (origin_type == "theme") {
count_theme++;
}
if (origin_type == "core") {
count_core++;
}
}
});
btn_uncategorized.innerHTML += "(" + count_uncategorized + ")";
btn_plugin.innerHTML += "(" + count_plugin + ")";
btn_theme.innerHTML += "(" + count_theme + ")";
btn_core.innerHTML += "(" + count_core + ")";
load_status = 100;
elem_load.style.width = 100 + "%";
filterAll();
});
var current_number_page = document.querySelector("li.active a");
var current_number = current_number_page.getAttribute("data-i");
// Set get parameter filter
let current_element = select_choice._currentState.items.find(
(selection) => selection.active === true
);
select_choice.setChoices(choices_values);
if($_GET_origin != null && $_GET_origin != encodeString(current_element.value)){
select_choice._currentState.choices.forEach( function(valor, indice, array) {
if(encodeString(array[indice].value) === $_GET_origin){
select_choice.setChoiceByValue(array[indice].value);
}
});
}
}
function display_size(size){
let el_size_total = document.getElementById('info-size-total');
let el_size_autoload = document.getElementById('info-size-autoload');
el_size_total.innerHTML = size['total']['format']['size'] + size['total']['format']['type'];
el_size_autoload.classList.add(size['autoload']['indicator']);
el_size_autoload.innerHTML = size['autoload']['format']['size'] + size['autoload']['format']['type'];
}

View File

@@ -0,0 +1,32 @@
function remove_all_transients(){
let form = document.getElementById('remove_all_transients')
let data = new FormData(form);
let btn_remove_all_transients = document.getElementById('btn_remove_all_transients');
let btn_remove_all_transients_loader = document.querySelector('button#btn_remove_all_transients #loader');
btn_remove_all_transients.disabled = true;
btn_remove_all_transients_loader.style.visibility = 'initial';
jQuery.ajax({
type: "POST",
url: ajax_var.url,
data:
"action=" +
ajax_var.action +
"&nonce=" +
ajax_var.nonce +
"&remove=" +
data.get("remove"),
success: function (result) {
result = JSON.parse(result);
window.location.href = result;
},
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR.responseText);
},
done: function (result) {
console.log("done:");
},
});
}

View File

@@ -0,0 +1,77 @@
jQuery(document).ready(function ($) {
var btn_scanner = $("#scanner-btn");
var scanner_container = $("#scanner-feedback");
var scanner_container_loading = $("#scanner-feedback-not-loading");
var scanner_text = $("#scanner-text");
btn_scanner.on("click", function () {
btn_scanner.prop("disabled", true);
scanner_container.removeClass("d-none");
scanner_container_loading.addClass("d-none");
scannerInitAjax(true);
});
function scannerInitAjax(first_call) {
jQuery.ajax({
type: "post",
url: ajax_var_scanner.url,
data: "action=" + ajax_var_scanner.action + "&nonce=" + ajax_var_scanner.nonce + "&first_call=" + first_call + "&license=" + wpdbt_admin_vars.data.license_key,
timeout: 100000,
success: function (result) {
scannerResponse(result);
},
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR.responseText);
},
});
}
function scannerResponse(result) {
if (result != "") {
try {
result = JSON.parse(result)
scanner_text.text(result.message);
} catch (error) {
console.error(error);
scanner_text.text('ERROR');
}
if (result.status == "active") {
scannerInitAjax(false);
}
if (result.status == "success" || result.status == "error") {
var counter = 5;
var interval = setInterval(function () {
counter--;
scanner_text.text(wpdbt_admin_vars.data.translations.refreshing + ' ' + counter);
if (counter == 0) {
scanner_container.addClass("d-none");
scanner_container_loading.removeClass("d-none")
btn_scanner.prop("disabled", false);
clearInterval(interval);
location.reload();
}
}, 1000);
}
} else {
scannerInitAjax(false);
}
}
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,196 @@
/**!
* wp-color-picker-alpha
*
* This file contains the logic that share the
* list generation between the options|tables|cronjobs
* and between general|details
*
* Version: 1.0.1
*/
/* -------------------------------------------------------------------------- */
/* PERSISTENT FILTERS */
/* -------------------------------------------------------------------------- */
$_GET_details = findGetParameter("details");
$_GET_category = findGetParameter("category");
$_GET_origin = findGetParameter("origin");
$_GET_status = findGetParameter("status");
$_GET_autoload = findGetParameter("autoload");
$_GET_name = findGetParameter("name");
$_GET_page = findGetParameter("page");
function findGetParameter(parameterName) {
var result = null,
tmp = [];
var items = location.search.substr(1).split("&");
for (var index = 0; index < items.length; index++) {
tmp = items[index].split("=");
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
}
return result;
}
/* -------------------------------------------------------------------------- */
/* FILTER BY NAME */
/* -------------------------------------------------------------------------- */
input_name.addEventListener(
"keyup",
debounce((e) => {
updateValue(e);
}, 320)
);
function debounce(callback, wait) {
let timeout;
return (...args) => {
clearTimeout(timeout);
timeout = setTimeout(function () {
callback.apply(this, args);
}, wait);
};
}
function updateValue(e) {
filterAll();
}
/* -------------------------------------------------------------------------- */
/* COMMON FILTERS */
/* -------------------------------------------------------------------------- */
function filterSearchName(item) {
$_GET_name = input_name.value;
if (input_name.value == "") return true;
let search_result = item
.values()
["name"].toLowerCase()
.search($_GET_name.toLowerCase());
return search_result != -1;
}
/* -------------------------------------------------------------------------- */
/* HANDLE LOADER */
/* -------------------------------------------------------------------------- */
function handleLoader(is_loading) {
if (is_loading === true) {
content_list.style.display = "none";
loader.style.display = "block";
} else {
loader.style.display = "none";
content_list.style.display = "block";
}
if (list.visibleItems.length == 0) {
content_list_not_found.style.display = "block";
} else {
content_list_not_found.style.display = "none";
}
}
/* -------------------------------------------------------------------------- */
/* BUILD BACK URL */
/* -------------------------------------------------------------------------- */
function buildBackUrl() {
let available_parameters = [ "details", "name", "origin", "category", "status", "autoload"];
let back_url = window.location.origin + window.location.pathname;
back_url = back_url + '?page=' + $_GET_page;
available_parameters.forEach((element) => {
if(window['$_GET_' + element] != null ){
back_url = back_url + '&' + element + '=' + window['$_GET_' + element];
}
});
input_current_url.value = back_url;
}
/* -------------------------------------------------------------------------- */
/* SELECTORS */
/* -------------------------------------------------------------------------- */
function displaySelection() {
let selected = 0;
let list_items_check = list.get("check", true);
list_items_check.forEach(function (el) {
selected++;
});
span_selected.innerHTML = selected;
}
function resetCheck() {
let list_items_check = list.get("check", true);
list_items_check.forEach(function (el) {
el._values["check"] = false;
let input_select = document.querySelector(
"input[data-" + KEY_ATRIBUTE + '="' + el._values[KEY_ATRIBUTE] + '"]'
);
input_select.checked = false;
});
checkbox_all.checked = false;
// start methods only execute tables|options|cronjobs
updateMultipleUncategorized(list_items_check);
processSelectionsStatus();
// end methods only execute tables|options|cronjobs
displaySelection();
}
/* -------------------------------------------------------------------------- */
/* PAGINATION */
/* -------------------------------------------------------------------------- */
btn_first.addEventListener(
"click",
function (e) {
btn_first.dataset.i = 1;
btn_first.dataset.page = list.page;
},
false
);
btn_last.addEventListener(
"click",
function (e) {
let total = list.matchingItems.length;
let page = Math.ceil(total / list.page);
btn_last.dataset.i = page;
btn_last.dataset.page = list.page;
},
false
);
function updatePagination(pages) {
resetCheck();
list.page = pages;
list.update();
}
selectPagination.addEventListener("change", (event) => {
updatePagination(event.target.value);
});
document.querySelector("ul.pagination").addEventListener("click", (event) => {
resetCheck();
});
document.getElementById("btn-first").addEventListener("click", (event) => {
resetCheck();
});
document.getElementById("btn-last").addEventListener("click", (event) => {
resetCheck();
});

View File

@@ -0,0 +1,141 @@
if (wpdbt_admin_vars.data.current_page == "general") {
var options = {
valueNames: [
"name",
"cron",
"count",
"label-days",
{
name: "check",
attr: "data-check",
},
{
name: "key",
attr: "data-key",
},
{
name: "is-days",
attr: "data-isdays",
},
{
name: "class-active",
attr: "data-active",
},
{
name: "class-opacity-see",
attr: "data-opacity",
},
{
name: "class-opacity-delete",
attr: "data-opacity",
},
{
name: "class-opacity-edit",
attr: "data-opacity",
},
{
name: "class-opacity-cron",
attr: "data-opacity",
},
{
name: "icon-see",
attr: "src",
},
{
name: "icon-delete",
attr: "src",
},
{
name: "icon-edit",
attr: "src",
},
{
name: "icon-cron",
attr: "src",
},
{
name: "onclick-see",
attr: "onclick",
},
{
name: "onclick-delete",
attr: "onclick",
},
{
name: "onclick-edit",
attr: "onclick",
},
{
name: "onclick-cron",
attr: "onclick",
},
],
page: wpdbt_admin_vars.data.pagination,
pagination: true,
item: item,
};
var list = new List("list-display", options);
list.add(values, function (items) {
filterAll();
});
}
if (wpdbt_admin_vars.data.current_page == "details") {
var options = {
valueNames: [
"id",
"name",
"meta-key",
"meta-value",
"option-value",
"content",
{
name: "check",
attr: "data-check",
},
{
name: "key",
attr: "data-key",
},
{
name: "is-days",
attr: "data-isdays",
},
],
page: wpdbt_admin_vars.data.pagination,
pagination: true,
};
var list = new List("list-display", options);
filterAll();
}
/*
* Using calback when the filter is completed updates the pagination of the page number selector.
*/
list.on("filterComplete", function (list) {
current_elements.innerHTML = list.matchingItems.length;
});
function filterAll() {
handleLoader(true);
fetch(
wpdbt_admin_vars.data.admin_url + "/wp-database-tools-admin-fetch.json"
).then(function (response) {
resetCheck();
list.filter(function (item) {
return filterSearchName(item);
});
// Set sleep for hidden loading
sleep(200).then(() => {
handleLoader(false);
});
});
}
function sleep(time) {
return new Promise((resolve) => setTimeout(resolve, time));
}

View File

@@ -0,0 +1,360 @@
/* -------------------------------------------------------------------------- */
/* LIST JS */
/* -------------------------------------------------------------------------- */
// Constants
var choices_values = null;
var plugins = null;
var themes = null;
var options = {
item: null,
page: wpdbt_admin_vars.data.pagination,
pagination: true,
indexAsync: true,
searchDelay: 250,
};
if (wpdbt_admin_vars.data.current_page == "tables" ) {
options.item = function (values) {
return get_table_template(values);
};
}
if (wpdbt_admin_vars.data.current_page == "cronjobs") {
options.item = function (values) {
return get_cronjob_template(values);
};
}
if (wpdbt_admin_vars.data.current_page == "options") {
options.item = function (values) {
return get_option_template(values);
};
}
if (wpdbt_admin_vars.data.current_page == "transients") {
options.item = function (values) {
return get_transient_template(values);
};
}
// Create list
var list = new List("list-display", options);
/* -------------------------------------------------------------------------- */
/* CHOICES */
/* -------------------------------------------------------------------------- */
// Choices element
var element = document.getElementById("choices");
// Choices create obj
const select_choice = new Choices(element, {
searchEnabled: true,
placeholder: true,
placeholderValue: "Please Choose…",
removeItems: true,
removeItemButton: true,
searchPlaceholderValue: "Buscar",
classNames: {
containerOuter: "choices select-choices",
},
});
select_choice.passedElement.element.addEventListener(
"change",
function (event) {
let current_element = select_choice._currentState.items.find(
(selection) => selection.active === true
);
if(current_element !== undefined ){
let current_value = current_element.value.split("$");
let current_name = current_value[0];
let current_type = current_value[1];
let current_warning = current_value[2];
if( current_warning == 'yes'){
let element_filter = document.querySelector("#filters #uncategorized");
resetFiltersSelection(element_filter);
}
if ( (current_type == "plugin" || current_type == "theme") && current_warning == 'no') {
console.log('entre en no');
let element_filter = document.querySelector("#filters #" + current_type);
resetFiltersSelection(element_filter);
}
}
filterAll();
},
false
);
/* -------------------------------------------------------------------------- */
/* CHOICES UNCATEGORIZED */
/* -------------------------------------------------------------------------- */
let choice_options = {
searchEnabled: true,
placeholder: true,
placeholderValue: "Please Choose…",
removeItems: false,
removeItemButton: false,
searchPlaceholderValue: "Buscar",
classNames: {
containerOuter: "choices select-choices uncategorized",
},
};
// Choices element
var el_uncategorized_group = document.getElementById(
"choices-origin-uncategorized-group"
);
// Choices create obj
const choice_group_uncategorized = new Choices(
el_uncategorized_group,
choice_options
);
var el_uncategorized_individual = document.getElementById(
"choices-origin-uncategorized-individual"
);
// Choices create obj
const choice_individual_uncategorized = new Choices(
el_uncategorized_individual,
choice_options
);
/* -------------------------------------------------------------------------- */
/* RADIO STATUS */
/* -------------------------------------------------------------------------- */
function changeStatus() {
filterAll();
}
function changeAutoload() {
filterAll();
}
// Create elements filters
var btn_all = document.querySelector('button[data-type="all"]');
var btn_uncategorized = document.querySelector(
'button[data-type="uncategorized"]'
);
var btn_plugin = document.querySelector('button[data-type="plugin"]');
var btn_theme = document.querySelector('button[data-type="theme"]');
var btn_core = document.querySelector('button[data-type="core"]');
function filterList(element) {
resetFiltersSelection(element);
filterAll();
}
/*
* Using calback when the filter is completed updates the pagination of the page number selector.
*/
list.on("filterComplete", function (list) {
current_elements.innerHTML = list.matchingItems.length;
});
function resetFiltersSelection(element) {
let filters = document.querySelectorAll("#filters button");
filters.forEach(function (filterItem) {
filterItem.classList.remove("active");
});
element.classList.add("active");
}
function filterChoiceSelection(item) {
let current_element = select_choice._currentState.items.find(
(selection) => selection.active === true
);
$_GET_origin = encodeString(current_element.value);
let current_value = current_element.value.split("$");
current_value = current_value[0];
if((item._values.multiple == true) && current_value == wpdbt_admin_vars.data.translations.multiple){
return true;
}
if (current_value == "placeholder") {
return true;
}
let multiple_search = false;
if((item._values.multiple == true)){
item._values.origin.forEach(function(origin) {
if(origin.name == current_value){
multiple_search = true;
}
});
}
if(multiple_search == true) return true;
if (item._values.origin.name == current_value) {
return true;
} else {
return false;
}
}
function filterListSelection(item) {
let element = document.querySelectorAll("#filters button.active")[0];
$_GET_category = element.id;
if (element.id == "all") return true;
if(item._values.origin.warning === 'yes'){
if (element.id == "uncategorized") return true;
}
if(item._values.multiple === true){
let multiple_type = false;
item._values.origin.forEach(function(origin) {
if(origin.type == element.id){
multiple_type = true;
}
});
return multiple_type;
}
if (item._values.origin.type == element.id) {
return true;
} else {
return false;
}
}
function filterStatus(item) {
let checked = document.querySelector("input[name=status]:checked");
let filter_status = checked.value;
$_GET_status = filter_status;
if (filter_status == "all") {
return true;
}
if(item._values.multiple === true){
let multiple_status = false;
item._values.origin.forEach(function(origin) {
if(origin.status == filter_status){
multiple_status = true;
}
});
return multiple_status;
}
return filter_status == item._values.origin.status;
}
function filterAutoload(item){
if( wpdbt_admin_vars.data.current_page !== 'options' && wpdbt_admin_vars.data.current_page !== 'transients' ){
return true;
}
let checked = document.querySelector("input[name=autoload]:checked");
let filter_autoload = checked.value;
$_GET_autoload = filter_autoload;
if (filter_autoload == "all") {
return true;
}
return filter_autoload == item._values.autoload;
}
function filterAll() {
handleLoader(true);
fetch(
wpdbt_admin_vars.data.admin_url + "/wp-database-tools-admin-fetch.json"
).then(function (response) {
resetCheck();
list.filter(function (item) {
return (
filterChoiceSelection(item) &&
filterListSelection(item) &&
filterStatus(item) &&
filterSearchName(item) &&
filterAutoload(item)
);
});
// Set sleep for hidden loading
sleep(200).then(() => {
handleLoader(false);
});
});
}
function sleep(time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
/* -------------------------------------------------------------------------- */
/* SORT LIST */
/* -------------------------------------------------------------------------- */
function sortList(el) {
// Class active change
let sorts = document.querySelectorAll(".svg-sort");
sorts.forEach(function (current_sort, index) {
current_sort.classList.remove("active");
});
let svg_sort = el.querySelector(".svg-sort");
svg_sort.classList.add("active");
// Sort by atributte
let order = el.dataset.order;
let row = el.dataset.row;
if(row == 'origin'){
list.sort('', {
order: order,
sortFunction: function (a, b) {
return a._values.origin.name > b._values.origin.name ? 1 :
a._values.origin.name < b._values.origin.name ? -1 : 0;
}
});
}else{
list.sort(row, { order: order });
}
}

View File

@@ -0,0 +1,131 @@
function templateInfo(values) {
return `<div class='col-l mr-10'>\
<p class='font-bold font-md-x2 mt-25 mb-5 dark-blue-color'>${values.origin.name}</p>\
<p class='font-bold name m-0 dark-blue-color bg-light-gray-color-x2 overflow-wrap-any'>${values['name']}</p>\
<div class='mt-10'>\
${ templateButton(values.origin.homepage,wpdbt_admin_vars.data.translations.website) + templateButton(values.origin.download_link,wpdbt_admin_vars.data.translations.download) }
</div>\
</div>\
<div class='col-r mt-10'>\
<div class=''>\
<span class="font-sm-x1 label dark-blue-color">${wpdbt_admin_vars.data.translations.marketplace}:</span>
${ displayMarketplaceImage(values.origin.marketplace) }
<span class="font-sm m-0 text-uppercase d-block text-align-right">${values.origin.marketplace.name ?? 'Desconocido' }</span>
${ displayRating(values.origin, wpdbt_admin_vars) }
</div>\
<div class=''>\
<div class='likes'>\
<span class="font-sm-x1 label dark-blue-color">${wpdbt_admin_vars.data.translations.users_feedback}:</span>
<span class="font-sm label">${wpdbt_admin_vars.data.translations.votes}:</span>
<div class=''>\
<div class='text-align-right'>\
<p class='p-0 m-0'> <span class="font-sm">${wpdbt_admin_vars.data.translations.likes}</span> ${values.origin.likes}</p>\
</div>\
<div class='text-align-right'>\
<p class='p-0 m-0'><span class="font-sm">${wpdbt_admin_vars.data.translations.dislikes}</span> ${values.origin.dislikes} </p>\
</div>\
</div>\
</div>\
<div class='mt-10'>\
<span class="font-sm label">${wpdbt_admin_vars.data.translations.reliability}:</span>
<p class='font-sm text-align-right m-0 font-bold reliability ${values.origin.reliability_level} '>${values.origin.reliability}%</p>\
</div>\
</div>\
</div>`;
}
function displayMarketplaceImage(marketplace){
if(marketplace.image != '' && marketplace.image != null){
return `<img class="d-block" width="125px" src="${marketplace.image}">`;
}
return '';
}
function templateFeedback(feedback,slug){
let class_feedback = (feedback == true) ? 'bg-light-green' : 'd-none';
return `<div id='container-feedback-${slug}' class='feedback ${class_feedback}'>\
<p id="feedback_message-${slug}" class='font font-md mt-25 px-10 py-10 br-5 m-0'>${wpdbt_admin_vars.data.translations.thank_vote}</p>\
<div>`;
}
function templateVotes(values){
return `<div id='container-votes-${values.origin.slug}' class='votes bt-solid mt-10'>\
<p class='font-md m-0 mt-10'>${values.origin.question}</p>\
<div class='d-flex-between'>\
<div class='d-flex-between'>\
<div class='d-flex-between mr-10'>\
<img onclick='feedOriginInitAjax(this)' onmouseover='hover(this);' onmouseout='unhover(this);' data-slug='${values.origin.slug}' data-type='like'\
class='cursor-pointer vote' width='20px'\
id='btn-like'\
src='${wpdbt_admin_vars.data.admin_url}img/icon-like.svg'>\
<p class='ml-5'>${values.origin.likes}</p>\
</div>\
<div class='d-flex-between'>\
<img onclick='feedOriginInitAjax(this)' onmouseover='hover(this);' onmouseout='unhover(this);' data-slug='${values.origin.slug}' data-type='dislike'\
class='cursor-pointer vote' width='20px'\
id='btn-dislike'\
src='${wpdbt_admin_vars.data.admin_url}img/icon-dislike.svg'>\
<p class='ml-5'>${values.origin.dislikes}</p>\
</div>\
</div>\
</div>\
</div>`;
}
function templateButton(value,label){
let btn_disabled = (value == '') ? 'disabled' : '';
let btn_link =`<a class='${btn_disabled} button font-sm button-secondary b-none btn-light font-bold color-white py-5 px-10 text-uppercase mr-20'\
target='_blank' href='${value}' >${label}</a>`;
return btn_link;
}
function templateFeedOrigin(prefix,type,slug,name,reliability){
return `<form action='' id='form-feed-origin-${slug}'>\
<input type='hidden' name='action' value='origin-feedback'>\
<input id='type' type='hidden' name='type' value='${type}'>\
<input id='slug' type='hidden' name='slug' value='${slug}'>\
<input id='name' type='hidden' name='name' value='${name}'>\
${setInputPrefix(prefix)}
<input id='reliability' type='hidden' name='reliability' value='${reliability}'>\
<input id='section' type='hidden' name='section' value='${wpdbt_admin_vars.data.current_page}'>\
<input id='vote' type='hidden' name='vote' value=''>\
</form>`;
}
function setInputPrefix(prefix){
if(prefix != ''){
return `<input id='prefix' type='hidden' name='prefix' value='${prefix}'>`;
}
return '';
}
function displayRating(origin, wpdbt_admin_vars){
if(origin.rating !== '-' && typeof origin.rating !== 'undefined' ){
return `<span class="font-sm label">${wpdbt_admin_vars.data.translations.rating}:</span>
<div class='rating mb-10'>\
<img width='20px' src='${wpdbt_admin_vars.data.admin_url}img/icon-star.svg'>\
<span class='font-md'>\
<strong class='font-md-x2'>${origin.rating}</strong>\
/100</span>\
</div>`;
}
return '';
}

View File

@@ -0,0 +1,264 @@
function get_option_template(values) {
return `
<li class="d-flex-between px-10 bb-solid table-options">
<div class="d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements id" type="checkbox" data-id="${
values.id
}" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 id">${values.id}</p>
</div>
<div class="m-0 text-align-left">
<p class="name break-word">${values.name}</p>
</div>
<p class="text-align-left tooltip extract">
${ render_option_value(values.value, values.extract) }
</p>
<p class="text-align-center size">
${values.format_size}
</p>
<p class="text-align-center autoload">
${values.autoload}
</p>
<div class="text-align-center">
<p class="status text-lowercase m-auto" data-status="${values.multiple === true ? "multiple" : values.origin.status}">
${values.multiple === true ? wpdbt_admin_vars.data.translations.multiple : wpdbt_admin_vars.data.translations[values.origin.status]}
</p>
</div>
<div class="text-align-center">
${ render_origin_name(values) }
</div>
<div class="d-flex-center align-items-center">
<var class="key d-none"></var>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.remove}" data-individual="yes" data-modal="delete" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.remove}</span>
<img width="15px" src="${wpdbt_admin_vars.data.admin_url}img/icon-delete.svg">
</button>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.edit}" data-individual="yes" data-modal="edit" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.edit}</span>
<img width="15px" src="${wpdbt_admin_vars.data.admin_url}img/icon-edit.svg">
</button>
</div>
</li>
`;
}
function get_transient_template(values) {
return `
<li class="d-flex-between px-10 bb-solid table-options">
<div class="d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements id" type="checkbox" data-id="${
values.id
}" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 id">${values.id}</p>
</div>
<div class="m-0 text-align-left">
<p class="name break-word">${values.name}</p>
</div>
<p class="text-align-left tooltip extract">
${ render_option_value(values.value, values.extract) }
</p>
<p class="text-align-center size">
${values.format_size}
</p>
<p class="text-align-center autoload">
${values.autoload}
</p>
<div class="text-align-center">
<p class="status text-lowercase m-auto" data-status="${values.multiple === true ? "multiple" : values.origin.status}">
${values.multiple === true ? wpdbt_admin_vars.data.translations.multiple : wpdbt_admin_vars.data.translations[values.origin.status]}
</p>
</div>
<div class="text-align-center">
${ render_origin_name(values) }
</div>
<div class="d-flex-center align-items-center">
<var class="key d-none"></var>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.remove}" data-individual="yes" data-modal="delete" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.remove}</span>
<img width="15px" src="${wpdbt_admin_vars.data.admin_url}img/icon-delete.svg">
</button>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.edit}" data-individual="yes" data-modal="edit" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.edit}</span>
<img width="15px" src="${wpdbt_admin_vars.data.admin_url}img/icon-edit.svg">
</button>
</div>
</li>
`;
}
function get_table_template(values) {
return `<li class="d-flex-between px-10 bb-solid">
<div class="w-30p d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements id" type="checkbox" data-id="${
values.id
}" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 break-word name">${display_table_name(values)}</p>
</div>
<p class="w-10p text-align-center row">${values.row}</p>
<p class="w-10p text-align-center size">${values.format_size}</p>
<div class="w-15p text-align-center">
<p class="status text-lowercase" data-status="${values.multiple === true ? "multiple" : values.origin.status}">
${values.multiple === true ? wpdbt_admin_vars.data.translations.multiple : wpdbt_admin_vars.data.translations[values.origin.status]}
</p>
</div>
<div class="w-25p text-align-center">
${ render_origin_name(values) }
</div>
<div class="d-flex-center align-items-center w-10p">
<var class="key d-none" data-id="${values.id}"></var>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.remove}" data-individual="yes" data-modal="delete" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.remove}</span>
<img src="${wpdbt_admin_vars.data.admin_url}img/icon-delete.svg" class="icon-delete" width="15px" src="">
</button>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.empty}" data-individual="yes" data-modal="empty" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.empty}</span>
<img src="${wpdbt_admin_vars.data.admin_url}img/icon-empty.svg" class="icon-empty" width="15px" src="">
</button>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.optimize}" data-individual="yes" data-modal="optimize" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.optimize}</span>
<img src="${wpdbt_admin_vars.data.admin_url}img/icon-optimize.svg" class="icon-optimize" width="15px" src="">
</button>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.repair}<" data-individual="yes" data-modal="repair" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.repair}</span>
<img src="${wpdbt_admin_vars.data.admin_url}img/icon-repair.svg" class="icon-repair" width="15px" src="">
</button>
</div>
</li>`;
}
function get_cronjob_template(values) {
return `<li class="d-flex-between px-20 bb-solid table-cronjobs">
<div class="d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements" type="checkbox" data-id="${values.id}" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 mr-10 break-word name">${values.name}</p>
</div>
<p class="text-align-left break-word args">
${ render_args(values.args_array) }
</p>
<p class="text-align-left break-word display">${values.display}</p>
<p class="text-align-left break-word next-run">${values.next_run}</p>
<div class="text-align-center">
<p class="status text-lowercase m-auto" data-status="${values.multiple === true ? "multiple" : values.origin.status}">
${values.multiple === true ? wpdbt_admin_vars.data.translations.multiple : wpdbt_admin_vars.data.translations[values.origin.status]}
</p>
</div>
<div class="text-align-center">
${ render_origin_name(values) }
</div>
<div class="d-flex-center align-items-center">
<var class="id d-none" data-id="${values.id}"></var>
<var class="is-days d-none" data-isdays=""></var>
<button onclick="showModal(this)" data-label="${wpdbt_admin_vars.data.translations.remove}" data-individual="yes" data-modal="delete" class="tooltip cursor-pointer b-none bg-none p-0">
<span class="tooltiptext small">${wpdbt_admin_vars.data.translations.remove}</span>
<img width="15px" src="${wpdbt_admin_vars.data.admin_url}img/icon-delete.svg">
</button>
</div>
</li>`;
}
function render_option_value(value, extract){
// Prepare extract
if (value.length > 16) {
let span_element = '<span class="tooltiptext value">' + value + '</span>';
let image = '<img width="15px" src="' + wpdbt_admin_vars.data.admin_url + 'img/icon-information.svg">';
return image + extract + span_element;
} else {
return value;
}
}
function render_args(args) {
if (args.length > 0) {
let content = '';
args.forEach(function (arg) {
if(arg != null){
content += "<span class='args'>" + arg + "</span>";
}
});
return content;
}
return "Ninguno";
}
function render_origin_name(values){
let display_name = '';
if( values.origin.warning == 'no' || values.origin.name == 'Uncategorized'){
display_name = values.origin.name;
}else{
display_name =
"<img class='mr-5' width='13px' src='" + wpdbt_admin_vars.data.admin_url + "img/warning.svg'>" +
values.origin.name;
}
if( values.multiple === true ){
display_name = wpdbt_admin_vars.data.translations.multiple
}
if( values.origin.name == 'Uncategorized'){
display_name = wpdbt_admin_vars.data.translations.uncategorized
}
return `<button
onclick="${license === true ? 'showModal(this)' : ''}"
class="break-word cursor-pointer b-none bg-none button ${license === true ? '' : 'disabled'}"
id="${values.id}"
href="#"
data-warning="${values.origin.warning}"
data-type="${values.origin.type}"
data-label="${wpdbt_admin_vars.data.translations.details}" data-individual="details" data-modal="details"
>
<div class="d-block">
${display_name}
</div>
</button>`
}
function display_table_name(values){
return (values.prefix == true) ? `<span class="opacity-05">${wpdbt_admin_vars.data.prefix}</span>${values.name_without_prefix}` : `${values.name_without_prefix}`;
}

View File

@@ -0,0 +1,63 @@
/*
* Contains variables passed from php stored in the variable wpdbt_admin_vars.
* It also includes the definition of variables used in the plugin scripts.
*/
/* -------------------------------------------------------------------------- */
/* CONST */
/* -------------------------------------------------------------------------- */
const MODE_GENERAL =
wpdbt_admin_vars.data.current_page == 'details' ||
wpdbt_admin_vars.data.current_page == 'general';
const KEY_ATRIBUTE = (MODE_GENERAL == false) ? "id" : "key";
/* -------------------------------------------------------------------------- */
/* INPUT */
/* -------------------------------------------------------------------------- */
var input_current_url = document.getElementById('input-current-url');
var input_name = document.getElementById("search-name");
/* -------------------------------------------------------------------------- */
/* GETS */
/* -------------------------------------------------------------------------- */
$_GET_autoload = '';
$_GET_category = '';
$_GET_details = '';
$_GET_origin = '';
$_GET_status = '';
$_GET_name = '';
$_GET_page = '';
/* -------------------------------------------------------------------------- */
/* LOADER */
/* -------------------------------------------------------------------------- */
var loader = document.getElementById("container_list_loader");
var content_list = document.getElementById("container_list_display");
var content_list_not_found = document.getElementById("container_list_not_found");
/* -------------------------------------------------------------------------- */
/* SELECTORS */
/* -------------------------------------------------------------------------- */
var checkbox_elements = document.getElementsByClassName("check-elements");
var checkbox_all = document.getElementById("check-typebox-all");
var span_selected = document.getElementById("span-selected");
var title_modal = document.getElementById("modal-1-title");
/* -------------------------------------------------------------------------- */
/* PAGINATION */
/* -------------------------------------------------------------------------- */
var btn_first = document.getElementById("btn-first");
var btn_last = document.getElementById("btn-last");
var selectPagination = document.getElementById("select_pagination");
/* -------------------------------------------------------------------------- */
/* LIS ELEMENTS */
/* -------------------------------------------------------------------------- */
var current_elements = document.querySelector("#current-elements span#span-elements");

View File

@@ -0,0 +1,688 @@
MicroModal.init({
openClass: "is-open",
disableScroll: true,
});
// Actions inputs forms
var form_process_actions = document.getElementById("process_actions");
// Modals structure
var modals_container_elements = document.querySelectorAll(".container-modal");
var container_details_plugins = document.getElementById(
"modal-details-plugins"
);
var container_details_themes = document.getElementById("modal-details-themes");
var container_details_cores = document.getElementById("modal-details-cores");
var container_details_uncategorized = document.getElementById(
"modal-details-uncategorized"
);
var container_details_inside_plugins = document.getElementById(
"container-modal-details-plugins"
);
var container_details_inside_themes = document.getElementById(
"container-modal-details-themes"
);
var container_details_inside_cores = document.getElementById(
"container-modal-details-cores"
);
var container_details_inside_uncategorized = document.getElementById(
"container-modal-details-uncategorized"
);
var title_uncategorized = document.getElementById("title-uncategorized");
var btn_save = document.getElementById("btn-save");
var icon_base_path = wpdbt_admin_vars.data.admin_url + "img/icon-";
var icon_el_title_modal = document.getElementById("modal-title-icon");
// Select actions btn
var can_selections_actions = false;
var can_selections_uncategoryzed = false;
var current_list_el = null;
var multiple_message_warning = document.getElementById('warning-multiple');
document.addEventListener("DOMContentLoaded", function (event) {
processSelectionsStatus();
});
function showModal(element) {
buildBackUrl();
if (element.classList.contains("inactive")) {
return;
}
hiddenContentModal();
let label = element.getAttribute("data-label");
let modal_type = element.getAttribute("data-modal");
let individual = element.getAttribute("data-individual");
let action = element.getAttribute("data-action");
let current_modal = document.getElementById("modal-" + modal_type);
btn_save.style.display = "block";
updateTextSave(modal_type);
// Details
if (individual == "details" || individual == "uncategorized") {
var icon_path = icon_base_path + "details.svg";
current_list_el = getCurrentListElementValues(element, "detail");
btn_save.style.display = "none";
let multiple_values = current_list_el["multiple"] ?? 0;
// Build modal HTML content for multiple values
if (multiple_values == true)
{
document.getElementById("modal-details").classList.remove("individual");
document.getElementById("modal-details").classList.add("multiple");
let item_multiple = current_list_el;
let item_multiple_origins = item_multiple.origin;
item_multiple_origins.forEach(function (origin) {
item_multiple.origin = origin;
let type = origin.type;
let html = generateHtmlCard(item_multiple);
displayDetails(type, html);
});
current_list_el.origin = item_multiple_origins;
// Build modal HTML content for single value
} else {
document.getElementById("modal-details").classList.add("individual");
document.getElementById("modal-details").classList.remove("multiple");
// Build HTML card
let type = current_list_el.origin.type;
let html = generateHtmlCard(current_list_el);
if (current_list_el.origin.warning == "yes") {
type = "uncategorized";
let slug_choice_value = current_list_el.origin.slug + "$" + current_list_el.origin.type;
choice_individual_uncategorized.setChoiceByValue(slug_choice_value);
}
// If is uncategorized
if ( current_list_el.origin.name == "Uncategorized" || current_list_el.origin.warning == "yes")
{
var data = [];
data['names'] = '';
data['prefixes'] = '';
switch(wpdbt_admin_vars.data.current_page)
{
case 'tables':
data.prefixes = current_list_el.prefix;
data.names = current_list_el.name_without_prefix;
break;
default:
data.names = current_list_el.name;;
}
setFormUncategorizedInputs("individual", data);
title_uncategorized.innerHTML = current_list_el.name;
slug = "uncategorized-individual";
html = templateFeedback(current_list_el.feedback, slug);
}
displayDetails(type, html);
}
// Actions
} else {
var icon_path = icon_base_path + modal_type + ".svg";
current_list_el = getCurrentListElementValues(element, "action");
processDataOnActions(
current_modal,
modal_type,
current_list_el,
individual
);
}
title_modal.innerHTML = label;
icon_el_title_modal.setAttribute("src", icon_path);
current_modal.style.display = "block";
MicroModal.show("modal-1");
}
function escapeHtml(text) {
return text
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
function getCurrentListElementValues(element, mode) {
// TODO: retrieve the element with the same attribute
// Details origin
if (mode == "detail") {
let id = element.getAttribute(KEY_ATRIBUTE);
if(wpdbt_admin_vars.data.current_page == 'cronjobs'){
id = escapeHtml(id);
}
let list_element = list.get(KEY_ATRIBUTE, id);
return list_element[0]._values;
}
// Buttons actions
if (mode == "action") {
let individual = element.getAttribute("data-individual");
if (individual == "yes") {
let parent = element.parentElement.parentElement;
let key = parent.querySelectorAll("." + KEY_ATRIBUTE)[0].getAttribute("data-" + KEY_ATRIBUTE);
if(wpdbt_admin_vars.data.current_page == 'cronjobs'){
key = escapeHtml(key);
}
let list_element = list.get(KEY_ATRIBUTE, key);
if (MODE_GENERAL === true) {
list_element = list.get(KEY_ATRIBUTE, key);
}
return list_element[0]._values;
} else {
let list_items_check = list.get("check", true);
return list_items_check;
}
}
}
function processDataOnActions(current_modal, modal_type, elements, individual) {
multiple_message_warning.style.display = "none";
btn_save.style.display = "block";
// Build uncategorized HTML for modal actions
if (modal_type == "uncategorized") {
btn_save.style.display = "none";
// Uncategorized group
slug = "uncategorized-group";
html = templateFeedback(false, slug);
displayDetails("uncategorized-group", html);
}
// Affected Records
let affected_records_list = current_modal.querySelector(
".container_affected_records_list"
);
affected_records_list.innerHTML = "";
// Single selection
if (individual == "yes") {
if(current_list_el.multiple == true){
multiple_message_warning.style.display = "block";
}
// Label origin
var type_label = '';
if(wpdbt_admin_vars.data.current_page != 'general'){
if(current_list_el.multiple == true){
multiple_message_warning.style.display = "block";
type_label = '<span id="rows_label" class="multiple">multiple</span>';
}else{
type_label = `<span id="rows_label" class="${current_list_el.origin.type}">${current_list_el.origin.type}</span>`;
}
}
switch(wpdbt_admin_vars.data.current_page)
{
case 'options':
form_process_actions.elements["action-keys"].value = elements.name;
break;
case 'transients':
form_process_actions.elements["action-keys"].value = elements.name;
break;
case 'tables':
form_process_actions.elements["action-keys"].value = elements.name_without_prefix;
form_process_actions.elements["action-prefix"].value = elements.prefix;
break;
default:
form_process_actions.elements["action-keys"].value = elements[KEY_ATRIBUTE];
}
form_process_actions.elements["action-is-days"].value = elements["is-days"];
affected_records_list.innerHTML += `<li class"break-word">${type_label}${current_list_el.name != '' ? current_list_el.name : current_list_el.id}</li>`;
} else {
let current_key = new Array();
let current_prefix = new Array();
let current_day = new Array();
var type_label = '';
elements.forEach(function (el) {
if(wpdbt_admin_vars.data.current_page != 'general'){
if(el._values.multiple == true){
multiple_message_warning.style.display = "block";
type_label = '<span id="rows_label" class="multiple">multiple</span>';
}else{
type_label = `<span id="rows_label" class="${el._values.origin.type}">${el._values.origin.type}</span>`;
}
}
switch(wpdbt_admin_vars.data.current_page)
{
case 'options':
var key_list = el._values.name;
break;
case 'transients':
var key_list = el._values.name;
break;
case 'tables':
var key_list = el._values.name_without_prefix;
var key_prefix = el._values.prefix;
break;
default:
var key_list = el._values[KEY_ATRIBUTE];
}
current_key.push(key_list);
current_prefix.push(key_prefix);
let day_list = el._values["is-days"];
current_day.push(day_list);
if (modal_type == "uncategorized") {
if (
el._values.origin.name == "Uncategorized" ||
el._values.origin.warning == "yes"
) {
affected_records_list.innerHTML += `<li class"break-word">${type_label}${el._values.name != '' ? el._values.name : el._values.id}</li>`;
}
} else {
affected_records_list.innerHTML += `<li class"break-word">${type_label}${el._values.name != '' ? el._values.name : el._values.id}</li>`;
}
});
form_process_actions.elements["action-keys"].value = current_key.join('↕');
form_process_actions.elements["action-prefix"].value = current_prefix.join('↕');
form_process_actions.elements["action-is-days"].value = current_day.join('↕');
}
form_process_actions.elements["action-type"].value = modal_type;
form_process_actions.elements["action-individual"].value = individual;
}
function hiddenContentModal() {
// All containers modals
modals_container_elements.forEach(function (el) {
el.style.display = "none";
});
// Containers details of modal-details
container_details_plugins.style.display = "none";
container_details_themes.style.display = "none";
container_details_cores.style.display = "none";
// Containers details inside modal detaisl types
container_details_inside_themes.innerHTML = "";
container_details_inside_plugins.innerHTML = "";
container_details_inside_cores.innerHTML = "";
}
function updateMultipleUncategorized(list) {
if (MODE_GENERAL === false)
{
var data = [];
data['names'] = [];
data['prefixes'] = [];
list.forEach(function (el) {
if (el._values.origin.name == "Uncategorized" || el._values.origin.warning == "yes"){
switch(wpdbt_admin_vars.data.current_page)
{
case 'tables':
data.names.push(el._values.name_without_prefix);
data.prefixes.push(el._values.prefix);
break;
default:
data.names.push(el._values.name);
}
}
});
setFormUncategorizedInputs("group", data );
}
}
function updateTextSave(txt) {
btn_save.innerHTML = txt;
}
function setFormUncategorizedInputs(mode, data) {
if (MODE_GENERAL !== true)
{
let forms = document.getElementsByClassName(
"form-feed-origin-uncategorized-class"
);
if (mode == "group") {
var form = forms[0];
var current_choice = choice_group_uncategorized._currentState.items.find(
(selection) => selection.active === true
);
}
if (mode == "individual") {
var form = forms[1];
var current_choice =
choice_individual_uncategorized._currentState.items.find(
(selection) => selection.active === true
);
}
// Inputs forms
let input_section = form.elements.section;
let input_type = form.elements.type;
let input_name = form.elements.name;
let input_prefix = form.elements.prefix;
// Choices
if (current_choice.value != null)
{
let current_value = current_choice.value.split("$");
let current_type = current_value[1];
input_section.value = wpdbt_admin_vars.data.current_page;
input_type.value = current_type;
}
if (mode == "individual" && data != null) {
switch(wpdbt_admin_vars.data.current_page) {
case 'tables':
input_name.value = '["' + data.names + '"]';
input_prefix.value = '["' + data.prefixes + '"]';
break;
default:
input_name.value = '["' + data.names + '"]';
}
}
if (mode == "group" && data != null) {
switch(wpdbt_admin_vars.data.current_page) {
case 'tables':
input_name.value = JSON.stringify(data.names);
input_prefix.value = JSON.stringify(data.prefixes);
break;
default:
input_name.value = JSON.stringify(data.names);
}
}
}
}
function processAction(element) {
btn_save.classList.add('disabled');
document.getElementById("process_actions").submit();
}
function displayDetails(type, html) {
container_details_uncategorized.style.display = "none";
if (type == "plugin") {
container_details_plugins.style.display = "block";
container_details_inside_plugins.innerHTML += html;
}
if (type == "theme") {
container_details_themes.style.display = "block";
container_details_inside_themes.innerHTML += html;
}
if (type == "core") {
container_details_cores.style.display = "block";
container_details_inside_cores.innerHTML += html;
}
if (type == "uncategorized") {
container_details_uncategorized.style.display = "block";
document.getElementById(
"container-modal-details-uncategorized-feedback-individual"
).innerHTML = html;
if (html.includes("d-none")) {
document
.getElementById("container-modal-details-uncategorized-form-individual")
.classList.remove("d-none");
} else {
document
.getElementById("container-modal-details-uncategorized-form-individual")
.classList.add("d-none");
}
}
if (type == "uncategorized-group") {
document.getElementById(
"container-modal-details-uncategorized-feedback-group"
).innerHTML = html;
if (html.includes("d-none")) {
document
.getElementById("container-modal-details-uncategorized-form-group")
.classList.remove("d-none");
} else {
document
.getElementById("container-modal-details-uncategorized-form-group")
.classList.add("d-none");
}
}
}
/* -------------------------------------------------------------------------- */
/* TEMPLATES */
/* -------------------------------------------------------------------------- */
function generateHtmlCard(data_el) {
let slug = data_el.origin.slug;
let info = templateInfo(data_el);
let votes = data_el.feedback == true ? "" : templateVotes(data_el);
let feedback = templateFeedback(data_el.feedback, slug);
let prefix = (wpdbt_admin_vars.data.current_page == 'tables') ? data_el.prefix : '';
let input_name = (wpdbt_admin_vars.data.current_page == 'tables') ? data_el.name_without_prefix : data_el.name;
let form = templateFeedOrigin(
prefix,
data_el.origin.type,
data_el.origin.slug,
input_name,
data_el.origin.reliability
);
let html = buildCard(votes, form, feedback, info);
return html;
}
function buildCard(votes, form, feedback, info) {
return (
"<div class='card-details'>\
<div class='d-flex-between mb-10'>\
" +
info +
"\
</div>\
" +
votes +
"\
" +
feedback +
"\
" +
form +
"\
</div>"
);
}
/* -------------------------------------------------------------------------- */
/* HOVER IMAGES */
/* -------------------------------------------------------------------------- */
function hover(element) {
element.setAttribute(
"src",
wpdbt_admin_vars.data.admin_url + "img/icon-" +
element.dataset.type +
"-fill.svg"
);
}
function unhover(element) {
element.setAttribute(
"src",
wpdbt_admin_vars.data.admin_url + "img/icon-" +
element.dataset.type +
".svg"
);
}
/* -------------------------------------------------------------------------- */
/* SELECT */
/* -------------------------------------------------------------------------- */
function updateFormUncategorized(element) {
let mode = element.getAttribute("data-type"); // individual | group
setFormUncategorizedInputs(mode, null);
}
/* -------------------------------------------------------------------------- */
/* CHECKED */
/* -------------------------------------------------------------------------- */
function checkAll(element) {
let check_status = element.checked;
for (var i = 0; i < checkbox_elements.length; ++i) {
checkbox_elements[i].checked = check_status;
list.visibleItems[i]._values.check = check_status;
}
let list_items_check = list.get("check", true);
updateMultipleUncategorized(list_items_check);
processSelectionsStatus();
displaySelection();
}
function checkSelected(element) {
let check_status = element.checked;
let parent = element.parentElement.parentElement;
let id = parent
.querySelectorAll("." + KEY_ATRIBUTE)[0]
.getAttribute("data-" + KEY_ATRIBUTE);
if(wpdbt_admin_vars.data.current_page == 'cronjobs'){
id = escapeHtml(id);
}
let list_element = list.get(KEY_ATRIBUTE, id)[0];
element.setAttribute("data-check", check_status);
list_element._values["check"] = check_status;
let list_items_check = list.get("check", true);
checkbox_all.checked = list_items_check.length != 0;
updateMultipleUncategorized(list_items_check);
processSelectionsStatus();
displaySelection();
}
// allows the selection of buttons in batch actions
function setCanSelect() {
let list_items_check = list.get("check", true);
can_selections_actions = list_items_check.length > 0;
// Status btn action uncategorized
if (MODE_GENERAL == false) {
can_selections_uncategoryzed = false;
list_items_check.forEach(function (el) {
if (
el._values.origin.type == "uncategorized" ||
el._values.origin.warning == "yes"
) {
can_selections_uncategoryzed = true;
return;
}
});
}
}
function updateButtonsActions() {
let btns_actions = document.querySelectorAll(
".btn-selections button:not(.uncategorized)"
);
btns_actions.forEach(function (el) {
can_selections_actions === true
? el.classList.add("active")
: el.classList.remove("active");
!can_selections_actions === true
? el.classList.add("inactive")
: el.classList.remove("inactive");
});
let btn_action_uncategorized = document.querySelector(
".btn-selections button.uncategorized"
);
if (MODE_GENERAL !== true) {
can_selections_uncategoryzed === true
? btn_action_uncategorized.classList.add("active")
: btn_action_uncategorized.classList.remove("active");
!can_selections_uncategoryzed === true
? btn_action_uncategorized.classList.add("inactive")
: btn_action_uncategorized.classList.remove("inactive");
}
}
function processSelectionsStatus() {
setCanSelect();
updateButtonsActions();
}
function encodeString(input){
input = decodeURI(input);
return encodeURI(input.replace(/[^0-9a-z]/gi, ''));
}

View File

@@ -0,0 +1,8 @@
<div class="w-40p d-grid">
<input
id="search-name"
value="<?php echo $settings_page['filters']['name']; ?>"
class="b-none bg-light-gray-color px-20 py-10 br-5"
placeholder="<?php echo __( 'Search by name', $this->plugin_name ); ?>"
/>
</div>

View File

@@ -0,0 +1,6 @@
<div class="mb-10 container_affected_records">
<h4 class="text-uppercase m-0 dark-blue-color"><?php echo __( 'Records affected', $this->plugin_name ); ?>:</h4>
<p class="pb-10 m-0"><?php echo __( 'The action will be executed on the following records', $this->plugin_name ); ?></p>
<ul class="m-0 mt-5 container_affected_records_list ml-20">
</ul>
</div>

View File

@@ -0,0 +1,6 @@
<div class="bg-light-red px-10 py-10 br-5 font-bold">
<div class="d-flex-start ">
<img class="mr-5" width="15px" src='<?php echo WPDBT_ADMIN_URL; ?>img/warning.svg'>
<p class="m-0"><?php echo __( "This operation is irreversible! Don't forget to make a backup of your database first!", $this->plugin_name ); ?></p>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<form id="form-feed-origin-uncategorized-<?php echo $id; ?>" class="d-flex-start gap-10 form-feed-origin-uncategorized-class">
<select id="choices-origin-uncategorized-<?php echo $id; ?>" class="" onchange="updateFormUncategorized(this)" data-type="<?php echo $id; ?>" class="mr-20" name="slug">
<?php if ( ! empty( $this->database->get_plugins() ) ) : ?>
<optgroup data-type="plugin" value="plugin" label="Plugins">
<?php foreach ( $this->database->get_plugins() as $key => $plugin ) : ?>
<option value="<?php echo $plugin['slug'] . '$' . 'plugin'; ?>"><?php echo $plugin['name']; ?></option>
<?php endforeach; ?>
</optgroup>
<?php endif; ?>
<?php if ( ! empty( $this->database->get_themes() ) ) : ?>
<optgroup data-type="theme" value="theme" label="Themes">
<?php foreach ( $this->database->get_themes() as $key => $theme ) : ?>
<option value="<?php echo $theme['slug'] . '$' . 'theme'; ?>"><?php echo $theme['name']; ?></option>
<?php endforeach; ?>
</optgroup>
<?php endif; ?>
<optgroup data-type="core" value="core" label="Core">
<!-- <option>WordPress Core</option> -->
<option selected value="core$core">WordPress Core</option>
</optgroup>
</select>
<input id="uncategorized-section" type="hidden" name="section" value="options">
<input id="uncategorized-value" type="hidden" name="name" value="">
<input id="uncategorized-prefix" type="hidden" name="prefix" value="">
<input id="uncategorized-type" type="hidden" name="type" value="">
<input type="hidden" name="reliability" value="-">
<a onclick="feedOriginInitAjax(this)" data-slug="uncategorized-<?php echo $id; ?>" data-form="uncategorized" class="button font-md button-secondary b-none btn-dark color-white py-5 px-10 text-uppercase mr-20" value="<?php echo __( 'Enviar', $this->plugin_name ); ?>">Enviar</a>
</form>

View File

@@ -0,0 +1,14 @@
<!-- SELECTION -->
<div class="d-flex-start">
<p class="w-95"><?php echo __( 'Selection', $this->plugin_name ); ?>(<span id="span-selected">0</span>):</p>
<div class="d-flex-center align-items-center btn-selections">
<?php foreach ( $settings_page['bulk_actions'] as $key => $action ) : ?>
<button onclick="showModal(this)" data-label="<?php echo $action['label']; ?>" data-individual="no" data-modal="<?php echo $key; ?>" class="tooltip b-none cursor-pointer bg-none p-0 <?php echo $key; ?>">
<span class="tooltiptext small"><?php echo $action['txt']; ?></span>
<img width="15px" src="<?php echo $settings_page['admin_url'] . 'img/icon-' . $key . '.svg'; ?> ">
</button>
<?php endforeach; ?>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="d-flex-start mt-5">
<p class="m-0 text-uppercase font-md dark-blue-color font-bold">
<?php echo __( 'Bulk Actions', $this->plugin_name ) . ':'; ?>
</p>
</div>

View File

@@ -0,0 +1,114 @@
<div id="container_filters">
<div class="d-flex-start mt-5">
<img width="20px" src="<?php echo WPDBT_ADMIN_URL; ?>img/icon-filter.svg">
<p class="ml-5 text-uppercase font-md dark-blue-color font-bold my-10"><?php echo __( 'Advanced filters', $this->plugin_name ); ?>:</p>
</div>
<div class="">
<div class="d-flex-start">
<div id="filters-status" class="mb-10 bb-solid">
<div>
<p class="m-0 text-uppercase font-sm font-bold color-dark-gray"><?php echo __( 'Status', $this->plugin_name ); ?>:</p>
</div>
<div class="d-flex-start ml-10 py-5">
<?php $check = ( $settings_page['filters']['status'] == 'all' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-all" type="radio" name="status" value="all" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="status-all"><?php echo __( 'All', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'uninstalled' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-uninstalled" type="radio" name="status" value="uninstalled" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="status-uninstalled"><?php echo __( 'Uninstalled', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'active' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-active" type="radio" name="status" value="active" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="status-active"><?php echo __( 'Active', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'inactive' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-inactive" type="radio" name="status" value="inactive" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="status-inactive"><?php echo __( 'Inactive', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'unknown' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-unknown" type="radio" name="status" value="unknown" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="status-unknown"><?php echo __( 'Unknown', $this->plugin_name ); ?></label>
</div>
</div>
</div>
<?php if ( 'options' === $settings_page['current_page'] || 'transients' === $settings_page['current_page'] ) : ?>
<div id="filters-autoload" class="pl-15 ml-15" style="border-left: 2px solid gainsboro;">
<div>
<p class="m-0 text-uppercase font-sm font-bold color-dark-gray"><?php echo __( 'Autoload', $this->plugin_name ); ?>:</p>
</div>
<div class="d-flex-start ml-10 py-5">
<?php $check = ( $settings_page['filters']['autoload'] == 'all' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeAutoload(this);" id="autoload-all" type="radio" name="autoload" value="all" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="autoload-all"><?php echo __( 'All', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['autoload'] == 'yes' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeAutoload(this);" id="autoload-yes" type="radio" name="autoload" value="yes" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="autoload-yes"><?php echo __( 'Yes', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['autoload'] == 'no' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeAutoload(this);" id="autoload-no" type="radio" name="autoload" value="no" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="autoload-no"><?php echo __( 'No', $this->plugin_name ); ?></label>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div>
<div>
<p class="m-0 text-uppercase font-sm font-bold color-dark-gray"><?php echo __( 'Categories', $this->plugin_name ); ?>:</p>
</div>
<div class="d-flex-between ml-10">
<div id="filters" class="d-flex-start mb-10">
<?php $class = ( $settings_page['filters']['cat'] == 'all' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="all" id="all" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'All', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'uncategorized' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="uncategorized" id="uncategorized" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'Uncategorized', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'plugin' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="plugin" id="plugin" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'Plugins', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'theme' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="theme" id="theme" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'Themes', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'core' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="core" id="core" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5">
<?php echo __( 'WordPress Core', $this->plugin_name ); ?>
</button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="header d-flex-between bg-white px-20 py-10">
<div class="d-flex-center">
<div class="br-solid pr-20 bc-light-orange-color">
<img src="<?php echo $settings_page['admin_url']; ?>img/logo-wp-database-tools-color.svg" width="120px">
</div>
<div class="ml-20">
<p style="line-height: 1;" class="m-0 dark-blue-color font-bold text-uppercase font-sm"><?php echo __( 'Version', WPDBT_SLUG ); ?></p>
<p class="m-0 dark-blue-color font-bold font-sm"><?php echo WPDBT_VERSION; ?></p>
</div>
</div>
<img src="<?php echo $settings_page['admin_url']; ?>img/raiola-logotipo-horizontal.svg" width="150px">
</div>
<script>
var license = <?php echo json_encode( $this->license->get_is_active() ); ?>
</script>

View File

@@ -0,0 +1,30 @@
<li class="d-flex-between px-20 bb-solid">
<div class="w-60p d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements id" type="checkbox" data-id="" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 name"></p>
</div>
<p class="w-10p text-align-center class-active count" data-active=""></p>
<p class="w-10p text-align-center label-days"></p>
<div class="d-flex-center align-items-center w-10p">
<var class="key d-none" data-key=""></var>
<var class="is-days d-none" data-isdays=""></var>
<button data-opacity="" onclick="" data-label="<?php echo __( 'See', $this->plugin_name ); ?>" data-modal="see" class="tooltip cursor-pointer b-none bg-none p-0 class-opacity-see onclick-see">
<span class="tooltiptext small"><?php echo __( 'See', $this->plugin_name ); ?></span>
<img class="icon-see" src="">
</button>
<button data-opacity="" onclick="showModal(this)" data-label="<?php echo __( 'Remove', $this->plugin_name ); ?>" data-individual="yes" data-modal="delete" class="tooltip cursor-pointer b-none bg-none p-0 class-opacity-delete onclick-delete">
<span class="tooltiptext small"><?php echo __( 'Remove', $this->plugin_name ); ?></span>
<img class="icon-delete" src="">
</button>
<button data-opacity="" onclick="" data-label="<?php echo __( 'Edit', $this->plugin_name ); ?>" data-individual="yes" data-modal="edit" class="class-opacity-edit tooltip cursor-pointer b-none bg-none p-0 onclick-edit">
<span class="tooltiptext small"><?php echo __( 'Edit', $this->plugin_name ); ?></span>
<img class="icon-edit" src="">
</button>
</div>
</li>

View File

@@ -0,0 +1,72 @@
<div class="d-flex-between align-items-start">
<?php if ( $this->license->get_is_active() ) : ?>
<div class="mr-30">
<img class="mr-10 mt-5" src="<?php echo $settings_page['admin_url']; ?>img/pro.svg" width="200px">
</div>
<div class="w-60p mr-30">
<h2 class="p-0 font-md-x2"><?php echo __( 'Pro version', $this->plugin_name ); ?></h2>
<h3 class="p-0 font-sm text-uppercase font-bold dark-blue-color m-0 mt-10"><?php echo __( 'Features', $this->plugin_name ); ?></h3>
<div id="pro-features">
<?php if ( $this->license->get_features() ) : ?>
<?php echo $this->license->get_features(); ?>
<?php endif; ?>
</div>
</div>
<?php else : ?>
<div class="d-flex-start w-80p">
<div class="w-60p mr-30">
<h2 class="p-0 font-md-x2"><?php echo __( 'Pro version', $this->plugin_name ); ?></h2>
<h3 class="p-0 font-sm text-uppercase font-bold dark-blue-color m-0 mt-10"><?php echo __( 'Features', $this->plugin_name ); ?></h3>
<div id="pro-features">
<?php if ( $this->license->get_features() ) : ?>
<?php echo $this->license->get_features(); ?>
<?php endif; ?>
</div>
<a target="_blank" href="https://wpdatabasetools.com/plugin/wp-database-tools/" class="button button-secondary b-none btn-dark color-white py-5 px-20 text-uppercase">
<?php echo __( 'Quiero ser pro', $this->plugin_name ); ?>
</a>
</div>
<div class="w-40p text-align-right pr-30">
<?php if ( $this->license->get_price() ) : ?>
<?php foreach ( $this->license->get_price() as $key => $price ) : ?>
<div class="mt-10">
<h4 class="p-0 m-0 font-md mb-5 text-uppercase dark-blue-color"><?php echo $key; ?></h4>
<h5 class="p-0 m-0 font-md-x1"><?php echo $price . '€'; ?><span class="font-sm">/<?php echo __( 'year', $this->plugin_name ); ?></span></h5>
<span class="font-sm"><?php echo __( 'Price including VAT', $this->plugin_name ); ?></span>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<div class="d-flex-start w-20p bl-dotted pl-30 ">
<div>
<h4 class="m-0 text-uppercase"><?php echo __( 'Current License', $this->plugin_name ); ?></h4>
<?php if ( $this->license->get_is_active() ) : ?>
<span class="bg-light-green px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'PRO License', 'WpAdminStyle' ); ?></span>
<?php else : ?>
<span class="bg-light-red px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'Free License', 'WpAdminStyle' ); ?></span>
<?php endif; ?>
</div>
</div>
</div>
<style>
#pro-features ul li {
background: url('<?php echo WPDBT_ADMIN_URL; ?>img/icon-check.svg') no-repeat left center;
}
</style>

View File

@@ -0,0 +1,28 @@
<div id="loader">
<svg width="200px" height="200px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;">
<circle cx="75" cy="50" fill="#e9c588" r="6.39718">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.875s"></animate>
</circle>
<circle cx="67.678" cy="67.678" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.75s"></animate>
</circle>
<circle cx="50" cy="75" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.625s"></animate>
</circle>
<circle cx="32.322" cy="67.678" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.5s"></animate>
</circle>
<circle cx="25" cy="50" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.375s"></animate>
</circle>
<circle cx="32.322" cy="32.322" fill="#e9c588" r="4.80282">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.25s"></animate>
</circle>
<circle cx="50" cy="25" fill="#e9c588" r="6.40282">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.125s"></animate>
</circle>
<circle cx="67.678" cy="32.322" fill="#e9c588" r="7.99718">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="0s"></animate>
</circle>
</svg>
</div>

View File

@@ -0,0 +1,233 @@
<div class="modal micromodal-slide" id="modal-1" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="">
<header class="modal__header">
<div class="d-flex-start">
<img width="20px" id="modal-title-icon" class="mr-5" src="">
<h4 class="modal__title font-lg p-0 color-dark-gray" id="modal-1-title">
<?php esc_html_e( 'Remove', 'wp-database-tools' ); ?>
</h4>
</div>
<button class="modal__close" aria-label="Close modal" data-micromodal-close></button>
</header>
<main class="modal__content" id="modal-1-content">
<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post" id="process_actions">
<!-- Function PHP -->
<?php if ( get_admin_page_title() === __( 'General', 'wp-database-tools' ) ) : ?>
<input type="hidden" name="action" value="process_general">
<?php endif; ?>
<?php if ( get_admin_page_title() === __( 'Tables', 'wp-database-tools' ) ) : ?>
<input type="hidden" name="action" value="process_tables">
<?php endif; ?>
<?php if ( get_admin_page_title() === __( 'Options', 'wp-database-tools' ) ) : ?>
<input type="hidden" name="action" value="process_options">
<?php endif; ?>
<?php if ( get_admin_page_title() === __( 'Transients', 'wp-database-tools' ) ) : ?>
<input type="hidden" name="action" value="process_transients">
<?php endif; ?>
<?php if ( get_admin_page_title() === __( 'Cronjobs', 'wp-database-tools' ) ) : ?>
<input type="hidden" name="action" value="process_cronjobs">
<?php endif; ?>
<!-- Current url -->
<input type="hidden" id="input-current-url" name="current-url" value="<?php echo home_url( $_SERVER['REQUEST_URI'] ); ?>">
<!-- Action type -->
<input type="hidden" id="action-type" name="action-type">
<!-- Action elements -->
<input type="hidden" id="action-individual" name="action-individual">
<!-- Action keys -->
<input type="hidden" id="action-keys" name="action-keys">
<!-- Action keys -->
<input type="hidden" id="action-prefix" name="action-prefix">
<!-- Is days -->
<input type="hidden" id="action-is-days" name="action-is-days">
<!-- Is details -->
<input type="hidden" id="action-is-details" name="action-is-details" value="<?php echo $has_details_table ? $detail_page : 'no'; ?>">
<?php wp_nonce_field( 'edd_sample_nonce', 'edd_sample_nonce' ); ?>
<div class="container-modal" id="modal-edit">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
<?php if ( get_admin_page_title() == __( 'General', 'wp-database-tools' ) ) : ?>
<p><?php esc_html_e( 'How many days do you want to keep the data?', 'wp-database-tools' ); ?></p>
<input type="number" value="0" name="action-days">
<?php endif; ?>
<?php if ( get_admin_page_title() === __( 'Options', 'wp-database-tools' ) || get_admin_page_title() === __( 'Transients', 'wp-database-tools' ) ) : ?>
<p><?php esc_html_e( 'What value do you want to set the autolaod to?', 'wp-database-tools' ); ?></p>
<div>
<div>
<input type="radio" id="autoloadChoice1" name="autoload" value="yes" checked="checked">
<label for="autoloadChoice1"><?php esc_html_e( 'Yes', 'wp-database-tools' ); ?></label>
</div>
<div>
<input type="radio" id="autoloadChoice2" name="autoload" value="no">
<label for="autoloadChoice2"><?php esc_html_e( 'No', 'wp-database-tools' ); ?></label>
</div>
</div>
<?php endif; ?>
</div>
<div class="container-modal" id="modal-cron">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
</div>
<div class="container-modal" id="modal-empty">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
</div>
<div class="container-modal" id="modal-delete">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
<?php if ( get_admin_page_title() == __( 'General', 'wp-database-tools' ) ) : ?>
<div class="mb-20">
<div class="mb-10">
<input type="radio" id="select-delete" name="action-delete" value="selected" checked="checked">
<label for="select-delete">
<?php esc_html_e( 'Delete only records that match in date range according to the marked days', 'wp-database-tools' ); ?>
</label>
</div>
<div>
<input type="radio" id="all-delete" name="action-delete" value="all">
<label for="all-delete">
<?php esc_html_e( 'Delete records irrespective of whether they comply with the set date range', 'wp-database-tools' ); ?>
</label>
</div>
</div>
<?php endif; ?>
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
<div id="warning-multiple" class="bg-light-red px-10 py-10 br-5 font-bold mt-10">
<div class="d-flex-start ">
<img class="mr-5" width="15px" src='<?php echo WPDBT_ADMIN_URL; ?>img/warning.svg'>
<p class="m-0"><?php esc_html_e( 'We discourage the deletion of records identified as multiple', 'wp-database-tools' ); ?></p>
</div>
</div>
</div>
<div class="container-modal" id="modal-optimize">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
</div>
<div class="container-modal" id="modal-repair">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
</div>
</form>
<div class="container-modal" id="modal-uncategorized">
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
<div id="container-modal-details-uncategorized-form-group" class="bt-solid mt-10 py-10 group container-modal-class-uncategorized-form">
<p class='font-md m-0 mt-10'>
<?php esc_html_e( 'Does it belong to any origin?', 'wp-database-tools' ); ?>
</p>
<?php $id = 'group'; ?>
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-uncategorized-form.php'; ?>
</div>
<div id="container-modal-details-uncategorized-feedback-group">
</div>
</div>
<div class="container-modal" id="modal-details">
<div id="modal-details-plugins" class="d-none">
<h3 data-type="plugin" class="m-0 pb-10">
<?php esc_html_e( 'Plugins', 'wp-database-tools' ); ?>
</h3>
<div id="container-modal-details-plugins">
<!-- JS CONTENT -->
</div>
</div>
<div id="modal-details-themes" class="d-none">
<h3 data-type="theme" class="m-0 pb-10">
<?php esc_html_e( 'Themes', 'wp-database-tools' ); ?>
</h3>
<div id="container-modal-details-themes">
<!-- JS CONTENT -->
</div>
</div>
<div id="modal-details-cores" class="d-none">
<h3 data-type="core" class="m-0 pb-10">
<?php esc_html_e( 'WordPress core', 'wp-database-tools' ); ?>
</h3>
<div id="container-modal-details-cores">
<!-- JS CONTENT -->
</div>
</div>
<div id="modal-details-uncategorized" class="d-none">
<!-- <h3>Uncategorized</h3> -->
<div id="container-modal-details-uncategorized">
<div class='card-details'>
<p id="title-uncategorized" class='font-bold font-md-x1 mt-25'><?php esc_html_e( 'Name', 'wp-database-tools' ); ?></p>
<div id="container-modal-details-uncategorized-form-individual" class="bt-solid mt-10 py-10 individual container-modal-class-uncategorized-form">
<p class='font-md m-0 mt-10'>
<?php esc_html_e( 'Does it belong to any origin?', 'wp-database-tools' ); ?>
</p>
<div class="d-flex-between">
<?php $id = 'individual'; ?>
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-uncategorized-form.php'; ?>
</div>
</div>
<div id="container-modal-details-uncategorized-feedback-individual">
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="modal__footer d-flex-start mt-10">
<button onclick="processAction(this)" id="btn-save" class="button button-secondary b-none btn-dark color-white py-5 px-20 text-uppercase mr-20">
<?php esc_html_e( 'Save', 'wp-database-tools' ); ?>
</button>
<button class="button button-secondary b-none py-5 px-20" data-micromodal-close aria-label="Close this dialog window">
<?php esc_html_e( 'Close', 'wp-database-tools' ); ?>
</button>
</footer>
</div>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<nav id="navigation" class="d-flex-start bg-light-blue-color-x2">
<?php
global $submenu;
foreach ( $submenu[ $this->plugin_name ] as $key => $menu ) {
$is_active_class = ( get_admin_page_title() == $menu[0] ) ? '--active' : '';
echo '<a class="dark-blue-color ' . $is_active_class . '" href="' . menu_page_url( $menu[2], false ) . '">' . $menu[0] . '</a>';
}
?>
</nav>

View File

@@ -0,0 +1,5 @@
<div id="not-found">
<div>
<p class="text-align-center py-10 font-md">No se encontraron resultados</p>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<!-- CURRENT ELEMENTS -->
<div id="current-elements">
<p class="w-100p text-align-right"><span id="span-elements">0</span> <?php echo __( 'Elements', $this->plugin_name ); ?></p>
</div>
<!-- PAGE NUMBER SELECTOR -->
<select class="ml-10" name="select_pagination" id="select_pagination">
<?php foreach ( WPDBT_LIST_PAGINATION as $page ) : ?>
<option value="<?php echo $page; ?>"><?php echo $page; ?></option>
<?php endforeach; ?>
</select>

View File

@@ -0,0 +1,9 @@
<nav class="nav d-flex-between mt-25">
<button id="btn-first" class="button font-sm button-secondary b-none btn-dark py-5 px-10 text-uppercase mr-20 font-bold">
<?php echo __( 'First', $this->plugin_name ); ?>
</button>
<ul class="pagination d-flex-center"></ul>
<button id="btn-last" class="button font-sm button-secondary b-none btn-dark py-5 px-10 text-uppercase ml-20 font-bold">
<?php echo __( 'Last', $this->plugin_name ); ?>
</button>
</nav>

View File

@@ -0,0 +1,19 @@
<div class="my-10">
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo __( 'Current scanner', $this->plugin_name ); ?></h4>
<div id="scanner-feedback-not-loading">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Unexecuted', $this->plugin_name ); ?></p>
</div>
<div id="scanner-feedback" class="d-none">
<div class="d-flex-start align-items-center bg-dark-blue-color br-5">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
<p id="scanner-text" class="m-0 text-uppercase color-light-blue-color-x2 font-sm text-align-left "><?php echo __( 'Performing scanner', $this->plugin_name ); ?></p>
</div>
<div>
<?php echo __( 'This may take a few minutes', $this->plugin_name ); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,169 @@
<?php if (
$_GET['page'] != 'wp-database-tools' &&
$_GET['page'] != 'license' &&
$_GET['page'] != 'general' &&
$settings_page['force_execute_scanner'] != 'YES'
) : ?>
<div class="bg-white br-10 px-30 py-20 mt-6">
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo get_admin_page_title(); ?>
(<span id="load_total_records">0</span>)
</h4>
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Data loading', $this->plugin_name ); ?>
<span id="load_indicator_step"><span id="load_current_step">0</span>/<span id="load_total_step">0</span></span>
</p>
<div class="m-0" id="progress_data">
<div id="progress_data_bar"></div>
</div>
<?php if ( get_admin_page_title() == __( 'Options', $this->plugin_name ) || get_admin_page_title() == __( 'Transients', $this->plugin_name ) ) : ?>
<div class="m-0 mt-5">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Information size (estimate)', $this->plugin_name ); ?></p>
<p class="m-0"><?php echo __( 'Total', $this->plugin_name ); ?>: <span id="info-size-total">-</span></p>
<p class="m-0"><?php echo __( 'Autoloads', $this->plugin_name ); ?>: <span id="info-size-autoload" class="br-5 px-5 py-2">-</span></p>
</div>
<?php endif; ?>
</div>
<?php if ( get_admin_page_title() == __( 'Transients', $this->plugin_name ) ) : ?>
<div class="bg-white br-10 px-30 py-20 mt-6">
<form id="remove_all_transients" class="mt-10">
<label class="mb-5 d-block">
<?php echo __( 'Type <strong>"REMOVE"</strong> to <strong>delete all transients</strong>', 'wp-database-tools' ); ?>
</label>
<input class="w-100p placeholder-light" type="text" placeholder="REMOVE" name="remove" onkeyup="this.value = this.value.toUpperCase();" required>
<button onclick="remove_all_transients(this)" type="button" name="" id="btn_remove_all_transients"
class="d-flex-center button button-secondary b-none btn-dark py-2 px-10 text-uppercase mt-10 w-100p font-md"
style="max-height: 30px;"
disabled
>
<p class="ml-20"><?php echo esc_html__( 'Execute', 'wp-database-tools' ); ?></p>
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</button>
</form>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="bg-white br-10 px-30 py-20 mt-6">
<div>
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-scanner-feedback.php'; ?>
</div>
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo __( 'Last scanner', $this->plugin_name ); ?></h4>
<div class="d-flex-between">
<div>
<div class="">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Date', $this->plugin_name ); ?></p>
<?php
$time_scanner = ( isset( $settings_page['scanner']->time ) ) ? $settings_page['scanner']->time : '-';
?>
<p class="m-0"><?php echo $time_scanner; ?></p>
</div>
</div>
<div class="">
<p class="m-0 font-bold font-sm px-5 text-uppercase"><?php echo __( 'Status', $this->plugin_name ); ?></p>
<?php
$status_scanner = ( isset( $settings_page['scanner']->status ) ) ? $settings_page['scanner']->status : '-';
?>
<?php if ( $status_scanner == 'success' ) : ?>
<span class="bg-light-green font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Success', 'wp-database-tools' ); ?></span>
<?php elseif ( $status_scanner == 'error' ) : ?>
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Error', 'wp-database-tools' ); ?></span>
<?php else : ?>
<span class="">-</span>
<?php endif; ?>
</div>
</div>
<div class="">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Message', $this->plugin_name ); ?></p>
<?php
$time_scanner = ( isset( $settings_page['scanner']->message ) ) ? $settings_page['scanner']->message : 'Sin mensaje';
?>
<p class="m-0"><?php echo $time_scanner; ?></p>
</div>
</div>
<div class="bg-white br-10 px-30 py-20 mt-6">
<h4 class="m-0 text-uppercase dark-blue-color"><?php esc_html_e( 'CRONJOB STATUS', 'wp-database-tools' ); ?></h4>
<div class="d-flex-between">
<div>
<div class="">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Date', $this->plugin_name ); ?></p>
<p class="m-0"><?php esc_html_e( get_transient( WPDBT_PREFIX . 'cron_check_date' ) ?? '-' ); ?></p>
</div>
</div>
<div>
<p class="m-0 font-bold font-sm text-uppercase"><?php esc_html_e( 'Status', 'wp-database-tools' ); ?></p>
<?php if ( 'success' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
<span class="bg-light-green font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Success', 'wp-database-tools' ); ?></span>
<?php elseif ( 'error' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Error', 'wp-database-tools' ); ?></span>
<?php elseif ( 'warning' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Warning', 'wp-database-tools' ); ?></span>
<?php else : ?>
<span class="">-</span>
<?php endif; ?>
</div>
</div>
<p class="m-0 font-bold font-sm text-uppercase"><?php esc_html_e( 'Message', 'wp-database-tools' ); ?></p>
<p class="m-0"><?php esc_html_e( get_transient( WPDBT_PREFIX . 'cron_check_message' ) ?? '-' ); ?></p>
</div>
<div class=" mt-6">
<div class="m-0" id="">
<?php if ( $this->license->get_is_active() ) : ?>
<span class="bg-light-green px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'PRO License', 'wp-database-tools' ); ?></span>
<?php else : ?>
<span class="bg-light-red px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'Free License', 'wp-database-tools' ); ?></span>
<?php endif; ?>
</div>
</div>
<div class="sm_col-1-1">
<div class="d-flex-center">
<div class="bg-white br-10 px-10 py-20 mt-6">
<?php
$url_support = ( $settings_page['config'] !== false ) ? $settings_page['config']->support->url : '#';
?>
<img width="18px" class="w-100p" src="<?php echo $settings_page['admin_url'] . 'img/support.svg'; ?>">
<a target="_blank" href="<?php echo $url_support; ?>" name="submit" class="d-flex-center button button-secondary b-none btn-orange py-5 px-20 text-uppercase w-100p mt-10">
<span class="font-sm font-bold font-bold text-uppercase"><?php echo __( 'Support', $this->plugin_name ); ?></span>
</a>
</div>
<div class="bg-white br-10 px-10 py-20 mt-6">
<img width="18px" class="w-100p" src="<?php echo $settings_page['admin_url'] . 'img/buy.svg'; ?>">
<a target="_blank" href="https://wpdatabasetools.com/plugin/wp-database-tools/" name="submit" class="d-flex-center button button-secondary b-none btn-dark py-5 px-20 text-uppercase w-100p mt-10">
<span class="font-sm font-bold font-bold text-uppercase"><?php echo __( 'Purchase', $this->plugin_name ); ?></span>
</a>
</div>
</div>
<div class="sm_d-flex">
<?php if ( $settings_page['config'] !== false ) : ?>
<?php foreach ( $settings_page['config']->banners as $key => $banner ) : ?>
<div class="mt-10">
<a target="_blank" href="<?php echo $banner->url; ?>">
<img class="mw-100p" src="<?php echo $banner->image; ?>">
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<div class="container-sorts">
<svg onclick="sortList(this);" data-row="<?php echo $sort_row; ?>" data-order="asc" class="container-svg-sort" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.91 7.72">
<g>
<polygon class="svg-sort <?php echo $sort_active_asc; ?>" points="4.46 1 6.25 4.11 8.05 7.22 4.46 7.22 0.87 7.22 2.66 4.11 4.46 1"/>
</g>
</svg>
<svg onclick="sortList(this);" data-row="<?php echo $sort_row; ?>" data-order="desc" class="container-svg-sort rotate" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.91 7.72">
<g>
<polygon class="svg-sort <?php echo $sort_active_desc; ?>" points="4.46 1 6.25 4.11 8.05 7.22 4.46 7.22 0.87 7.22 2.66 4.11 4.46 1"/>
</g>
</svg>
</div>

View File

@@ -0,0 +1,30 @@
<div id="top-bar" class="d-flex-between">
<!-- SEARCH-->
<?php require plugin_dir_path( __DIR__ ) . 'components/list/wp-database-tools-component-list-search.php'; ?>
<select id="choices" class="w-40p d-grid" placeholder="<?php echo __( 'Filter by origin', $this->plugin_name ); ?>">
<option selected disabled hidden value="placeholder$default" data-select-options="placeholder" placeholder><?php echo __( 'Filter by origin', $this->plugin_name ); ?></option>
</select>
<div class="d-flex-between">
<?php if ( $this->license->get_is_active() ) : ?>
<button type="submit" name="submit" id="scanner-btn" class="button button-secondary b-none btn-dark py-5 px-20 text-uppercase ml-20" disabled>
<?php echo __( 'Scan', $this->plugin_name ); ?>
</button>
<?php else : ?>
<button disabled id="scanner-btn" class="button button-secondary b-none btn-dark py-5 px-20 text-uppercase ml-20">
<?php echo __( 'Scan', $this->plugin_name ); ?>
</button>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,80 @@
<div id="list-display" class="cronjobs">
<!-- TOP BAR -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-20 table-cronjobs">
<div class="d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo 'Name'; ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-left font-bold"><?php echo __( 'Arguments', $this->plugin_name ); ?></p>
<p class="text-align-left font-bold"><?php echo __( 'Schedule', $this->plugin_name ); ?></p>
<p class="text-align-left font-bold"><?php echo __( 'Next run', $this->plugin_name ); ?></p>
<div class="text-align-center pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
</div>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0" >
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,135 @@
<?php
$table_titles = $this->database->get_table_titles( $data['table'] );
?>
<div id="list-display" class="details">
<!-- SEARCH-->
<?php require plugin_dir_path( __DIR__ ) . 'components/list/wp-database-tools-component-list-search.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<!-- HEADER TABLE -->
<div class="d-flex-between bg-light-blue-color-x2 px-20">
<?php foreach ( $table_titles as $key => $title ) : ?>
<?php
$class = ( $key == ( count( $table_titles ) - 1 ) ) ? 'text-align-right' : 'text-align-left'
?>
<?php if ( $key == 0 ) : ?>
<div class="w-60p d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold mr-10"><?php echo $title; ?></p>
</div>
<?php else : ?>
<p class="w-100p mr-10 <?php echo $class; ?>"><?php echo $title; ?></p>
<?php endif; ?>
<?php endforeach ?>
</div>
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul class="list m-0">
<?php if ( count( $data['data'] ) == 0 ) : ?>
<li class="d-flex-between px-20 bb-solid">
</li>
<?php endif; ?>
<?php foreach ( $data['data'] as $index => $row ) : ?>
<?php
$info_tables = $this->database->get_info_tables( $data['table'], $row );
?>
<li class="d-flex-between px-20 bb-solid">
<?php foreach ( $info_tables as $key => $value ) : ?>
<?php if ( $key == 'id' ) : ?>
<div class="w-60p d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements" type="checkbox" data-key="<?php echo $index; ?>" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 id"><?php echo $value; ?></p>
</div>
<?php else : ?>
<?php
$value = esc_attr( wp_strip_all_tags( $value ) );
// Prepare content
if ( strlen( $value ) > 20 && ( $key == 'content' || $key == 'meta-value' || $key == 'option-value' ) ) {
$span_element = '<span class="tooltiptext value">' . $value . '</span>';
$image = '<img width="15px" src="' . WPDBT_ADMIN_URL . 'img/icon-information.svg">';
$content = $image . substr( $value, 0, 20 ) . '...' . $span_element;
} else {
$content = $value;
}
?>
<?php
$key = str_contains( $key, 'name' ) ? 'name' : $key;
$key = ( $key == 'title' ) ? 'name' : $key;
?>
<p class="w-100p text-align-left tooltip extract break-word mr-10 <?php echo $key; ?>"><?php echo $content; ?></p>
<?php endif; ?>
<?php endforeach ?>
<div class="d-flex-end align-items-left w-100p">
<var class="key d-none" data-key="<?php echo $index; ?>"></var>
<var class="is-days d-none" data-isdays="no"></var>
<button onclick="showModal(this)" data-label="<?php echo __( 'Remove', $this->plugin_name ); ?>" data-individual="yes" data-modal="delete" class="tooltip b-none bg-none p-0">
<span class="tooltiptext small">
<?php echo __( 'Remove', $this->plugin_name ); ?>
</span>
<img src="<?php echo $settings_page['admin_url']; ?>img/icon-delete.svg">
</button>
</div>
</li>
<?php endforeach ?>
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>

View File

@@ -0,0 +1,105 @@
<!-- PREPARE DATA -->
<?php
ob_start();
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-item-general.php';
$item = ob_get_clean();
$list_data = array();
foreach ( $this->database->get_general_data() as $key => $data ) {
$user_options_general = get_option( WPDBT_PREFIX . 'user_options_general' );
$days = isset( $user_options_general[ $key ]['days'] ) ? $user_options_general[ $key ]['days'] : 0;
$has_clean_tables = $data['count'] > 0;
$is_days = $data['is-days'];
$details_url = '&details=' . $key;
// ATRIBUTES
$format_data['name'] = $data['label'];
$format_data['count'] = $data['count'];
$format_data['key'] = $key;
// EXTRA
$format_data['class-active'] = $has_clean_tables ? 'active' : 'inactive';
$format_data['class-opacity-see'] = $has_clean_tables ? 'normal' : 'opacity';
$format_data['class-opacity-delete'] = $has_clean_tables ? 'normal' : 'opacity';
$format_data['class-opacity-edit'] = $is_days ? '' : 'opacity';
$format_data['class-opacity-cron'] = '';
$format_data['is-days'] = $is_days ? 'yes' : 'no';
$format_data['label-days'] = ! $is_days ? 'N/A' : $days;
$format_data['icon-see'] = $settings_page['admin_url'] . 'img/icon-see.svg';
$format_data['icon-delete'] = $settings_page['admin_url'] . 'img/icon-delete.svg';
$format_data['icon-edit'] = $is_days ? $settings_page['admin_url'] . 'img/icon-edit.svg' : '';
$format_data['icon-cron'] = $settings_page['admin_url'] . 'img/icon-cron.svg';
$format_data['onclick-see'] = $has_clean_tables ? "location.href='" . admin_url( sprintf( basename( $_SERVER['REQUEST_URI'] ) ) ) . $details_url . "'" : '';
$format_data['onclick-delete'] = $has_clean_tables ? 'showModal(this)' : '';
$format_data['onclick-edit'] = $is_days ? 'showModal(this)' : '';
$format_data['onclick-cron'] = $settings_page['admin_url'];
// SAVE ARRAY
array_push( $list_data, $format_data );
}
?>
<script>
var item = <?php echo json_encode( $item ); ?>;
var values = <?php echo json_encode( $list_data ); ?>;
</script>
<div id="list-display">
<!-- SEARCH-->
<?php require plugin_dir_path( __DIR__ ) . 'components/list/wp-database-tools-component-list-search.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<!-- HEADER TABLE -->
<div class="d-flex-between bg-light-blue-color-x2 px-20">
<div class="w-60p d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)" >
<p class="m-0 ml-10 font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
</div>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Totals', $this->plugin_name ); ?></p>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Keep', $this->plugin_name ); ?></p>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<div id="container_list_display" style="display: none;">
<ul class="list m-0">
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>

View File

@@ -0,0 +1,101 @@
<div id="list-display" class="options">
<!-- TOP BAR -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-10 table-options">
<div class="d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo __( 'ID', $this->plugin_name ); ?></p>
<?php
$sort_row = 'id';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="text-align-left d-flex-start align-items-center">
<p class="font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-left font-bold"><?php echo __( 'Value', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Size', $this->plugin_name ); ?></p>
<?php
$sort_row = 'size';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Autoload', $this->plugin_name ); ?></p>
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0">
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<div class="text-align-center">
<h3><?php echo __( 'Scanner in process', $this->plugin_name ); ?></h3>
<p><?php echo __( 'We are running a priority scan of your database', $this->plugin_name ); ?></p>
<div class="d-flex-center">
<div class="container">
<div class="d-flex-start m-auto">
<p id="status-indicator-first-scanner" class="status process finish font-md p-0 m-0" style="color:#eded89">⬤</p>
<p id="status-indicator-txt" class="text-uppercase m-0"><?php echo __( 'Processing', $this->plugin_name ); ?> (<span id="status-indicator-counter">1</span>) </p>
</div>
<div class="d-flex-start m-auto">
<p id="status-indicator-cron-execute" class="status process finish font-md p-0 m-0" style="color:#eded89">⬤</p>
<p id="status-indicator-txt" class="text-uppercase m-0"><?php echo __( 'Cron execute', $this->plugin_name ); ?></p>
</div>
</div>
<div class="ml-20">
<img id="image-scanner-execute" width="80px" class="" src="<?php echo $settings_page['admin_url'] . 'img/eye-scanner-blue.gif'; ?>">
</div>
</div>
<div class="container-message">
<p id="error-message" style="visibility: hidden;" class="m-auto py-5 px-10 bg-light-red w-fit-content br-5"></p>
<p id="success-message" style="visibility: hidden;" class="m-auto py-5 px-10 bg-light-green w-fit-content br-5"></p>
</div>
</div>

View File

@@ -0,0 +1,99 @@
<div id="list-display" class="tables">
<!-- Top bar -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-10">
<div class="w-30p d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="w-10p d-flex-center align-items-center">
<p class="text-align-left font-bold"><?php echo 'Rows'; ?></p>
<?php
$sort_row = 'row';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="w-10p text-align-left pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Size', $this->plugin_name ); ?></p>
<?php
$sort_row = 'size';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="w-15p text-align-center pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
</div>
<div class="w-25p text-align-left pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0" >
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,101 @@
<div id="list-display" class="transients">
<!-- TOP BAR -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-10 table-options">
<div class="d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo __( 'ID', $this->plugin_name ); ?></p>
<?php
$sort_row = 'id';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="text-align-left d-flex-start align-items-center">
<p class="font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-left font-bold"><?php echo __( 'Value', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Size', $this->plugin_name ); ?></p>
<?php
$sort_row = 'size';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Autoload', $this->plugin_name ); ?></p>
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0">
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,66 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
$detail_page = null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo $this->plugin_name; ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo $this->plugin_name; ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-cronjobs.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.php'; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,74 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
$data = $has_details_table ? $this->database->get_general_data()[ $detail_page ] : $this->database->get_general_data();
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo $this->plugin_name; ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo $this->plugin_name; ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<!-- LICENSE -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php if ( $has_details_table ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-details.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-general.php'; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.php'; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,90 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo $this->plugin_name; ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo $this->plugin_name; ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
<h1></h1>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<h1><?php echo __( 'License', $this->plugin_name ); ?></h1>
<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post" id="active_plugin" class="d-flex-start">
<input type="hidden" name="action" value="active_plugin">
<?php wp_nonce_field( 'edd_sample_nonce', 'edd_sample_nonce' ); ?>
<div class="user-pass-wrap">
<input id="input_password" type="password" name="license" id="license" class="input password-input bg-light-gray-color b-none py-5 px-10 w-250" value="" size="20">
<button id="show-password" onclick="viewPassword()" type="button" class="button button-secondary wp-hide-pw hide-if-no-js b-none btn-dark ml--20 color-white py-5 px-10 h-100" data-toggle="0" aria-label="Show password">
<span id="btn_visibility" class="dashicons dashicons-visibility" aria-hidden="true"></span>
</button>
</div>
<input type="submit" name="submit" id="submit" class="button button-secondary b-none btn-dark color-white py-5 px-20 text-uppercase ml-20" value="<?php echo __( 'Active', $this->plugin_name ); ?>">
</form>
</div>
</div>
<div class="bg-white br-10 px-30 py-20 mt-20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-license.php'; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
<script>
function viewPassword() {
var btn_visibility = document.getElementById("btn_visibility");
var input_password = document.getElementById("input_password");
btn_visibility.classList.toggle("dashicons-hidden");
btn_visibility.classList.toggle("dashicons-visibility");
(input_password.type === "password") ?
input_password.type = "text": input_password.type = "password";
}
</script>
</div>

View File

@@ -0,0 +1,66 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo esc_html( $this->plugin_name ); ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo esc_html( $this->plugin_name ); ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-options.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.php'; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,67 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo $this->plugin_name; ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo $this->plugin_name; ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-tables.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.php'; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,66 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo esc_html( $this->plugin_name ); ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo esc_html( $this->plugin_name ); ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-transients.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.php'; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,64 @@
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://raiolanetworks.es
* @since 1.0.0
*
* @package Wp_Database_Tools
* @subpackage Wp_Database_Tools/admin/partials
*/
$settings_page = $this->get_settings_pages();
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo $this->plugin_name; ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo $this->plugin_name; ?>-header ml--20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
</div>
<div class="wrap">
<!-- For display notices -->
<h2></h2>
<div id="poststuff">
<div id="post-body" class="metabox-holder md_col-2">
<div id="post-body-content">
<!-- LICENSE -->
<div class="inside">
<div class="d-grid col-4 gap-20">
<?php foreach ( $settings_page['dashboard']['info'] as $key => $info ) : ?>
<div class="bg-white br-10 px-30 py-20 d-flex-start">
<img width="55px" class="mr-10" src="<?php echo $info['icon']; ?>">
<div>
<p class="m-0 font-bold font-md-x2"><?php echo $info['data']; ?></p>
<span class="color-dark-gray mt--5 d-block"><?php echo $info['label']; ?></span>
</div>
</div>
<?php endforeach ?>
</div>
<div class="bg-white br-10 px-30 py-20 mt-20">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-license.php'; ?>
</div>
</div>
</div>
<!-- SIDEBAR -->
<div id="postbox-container-1" class="postbox-container">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
</div>
</div>
<br class="clear">
</div>
</div>
</div>
</div>