| 1 |
<?php |
| 2 |
|
| 3 |
namespace UiCoreElements; |
| 4 |
|
| 5 |
/** |
| 6 |
* Admin Pages Handler |
| 7 |
*/ |
| 8 |
class Admin { |
| 9 |
|
| 10 |
/** |
| 11 |
* Constructor function to initialize hooks |
| 12 |
* |
| 13 |
* @return void |
| 14 |
*/ |
| 15 |
public function __construct() { |
| 16 |
$this->elementor_style(); |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Elementor Editor Style, Fonts and Scripts |
| 21 |
* |
| 22 |
* @return void |
| 23 |
* @author Andrei Voica <andrei@uicore.co |
| 24 |
* @since 1.0.0 |
| 25 |
*/ |
| 26 |
public function elementor_style() |
| 27 |
{ |
| 28 |
add_action('elementor/editor/before_enqueue_scripts', function () { |
| 29 |
|
| 30 |
echo '<style id="uicore-csss" > |
| 31 |
.elementor-element .icon .ui-e-widget:after { |
| 32 |
height: 28px; |
| 33 |
width: 28px; |
| 34 |
margin-right: 10px; |
| 35 |
border-radius: 3px; |
| 36 |
background-color: #532df5; |
| 37 |
background-image: url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'16\' height=\'16\' viewBox=\'0 0 16 16\' xml:space=\'preserve\'%3E%3Cpath d=\'M5.383 15.217c3.1 0 5.4-2.3 5.4-5.3v-7.9h-2.9v7.9c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5v-7.9h-2.9v7.9c0 3 2.3 5.3 5.4 5.3zM14.283 4.117c1 0 1.7-.7 1.7-1.7s-.7-1.7-1.7-1.7-1.7.7-1.7 1.7.7 1.7 1.7 1.7zM15.683 15.017v-9.6h-2.8v9.6z\' fill=\'%23fff\'/%3E%3C/svg%3E"); |
| 38 |
background-size: 16px; |
| 39 |
background-position: center; |
| 40 |
background-repeat: no-repeat; |
| 41 |
} |
| 42 |
|
| 43 |
.elementor-element .icon .ui-e-widget:after { |
| 44 |
content: ""; |
| 45 |
position: absolute; |
| 46 |
right: 5px; |
| 47 |
top: 5px; |
| 48 |
margin-right: 0; |
| 49 |
width: 16px; |
| 50 |
height: 16px; |
| 51 |
background-size: 9px; |
| 52 |
background-color: #656c7196; |
| 53 |
transition: background-color .3s ease-in-out; |
| 54 |
} |
| 55 |
.elementor-element:hover .icon .ui-e-widget:after { |
| 56 |
background-color: #532df5; |
| 57 |
transition: background-color .3s ease-in-out; |
| 58 |
} |
| 59 |
</style>'; |
| 60 |
}); |
| 61 |
} |
| 62 |
} |