This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$css = file_get_contents(dirname(__FILE__) . '/pollen.css'); | |
$css = preg_replace( | |
[ | |
"/\/\*\*[^\/]*\//m", // Remove any comments | |
"/\:root\s*\{/", // Remove :root { | |
"/\}/", // Remove trailing } | |
"/\n\s*\n/m", // Remove any empty lines | |
"/^\s*/m", // remove empty spaces from the front end of variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Entity\VichUploadableEntity; | |
use Vich\UploaderBundle\Storage\StorageInterface; | |
class GetPictureFileFullUrl { | |
private StorageInterface $storage; | |
public function __construct(StorageInterface $storage) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: merianos | |
* Date: 6/7/2018 | |
* Time: 8:39 μμ | |
*/ | |
class OtTaxonomiesMetabox { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS Code for the DL List in the sidebar of the page: /stoixima-odigos-theoria */ | |
/* 07/May/2018 */ | |
.icon-listed-dl { | |
display: table; | |
width: calc( 100% - 10px ); | |
background: #FFF; | |
padding: 5px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// After the Elementor update to 1.7.10, the fonts list has change in the | |
// control settings from `fonts` to `options`. | |
// | |
// Thus for version after 1.7.10 we should use the following code for retrive | |
// and set the new font families. | |
$fonts = $controls_registry->get_control( 'font' )->get_settings( 'options' ); | |
// Register here the custom font families |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Responsible to modify the fonts list in the font control. | |
*/ | |
function modify_controls( $controls_registry ) { | |
// First we get the fonts setting of the font control | |
$fonts = $controls_registry->get_control( 'font' )->get_settings( 'fonts' ); | |
// Then we append the custom font family in the list of the fonts we retrieved in the previous step | |
$new_fonts = array_merge( [ 'Custom Font Family Name' => 'system' ], $fonts ); | |
// Then we set a new list of fonts as the fonts setting of the font control | |
$controls_registry->get_control( 'font' )->set_settings( 'fonts', $new_fonts ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'uninstall', | |
1 verbose cli '-g', | |
1 verbose cli 'webpack' ] | |
2 info using npm@5.0.3 | |
3 info using node@v8.0.0 | |
4 verbose npm-session bcc51cdedb9ff1c1 | |
5 silly install loadCurrentTree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $checkBoxes = document.querySelectorAll('._1sy'); | |
$checkBoxes.forEach( | |
function ( item ) { | |
var $parent = item.parentElement; | |
var $grandParent = $parent.parentElement; | |
var $grandGrandParent = $grandParent.parentElement; | |
var $grandGrandGrandParent = $grandGrandParent.parentElement; | |
var $grandGrandGrandGrandParent = $grandGrandGrandParent.parentElement; | |
$grandGrandGrandGrandParent.remove(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#"> | |
<span></span> | |
Do Something | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1081: { | |
"id": 1081 | |
"name": "Argentina: Primera Division" | |
"category": "Primera Division" | |
"country": "Argentina" | |
"date": 1477414809 | |
"matches": [19] | |
0: { | |
"id": 2235305 | |
"status": "FT" |
NewerOlder