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 | |
if(!defined('ABSPATH')) { | |
die; | |
} | |
class DTSP_Flavor_Gallery extends \Bricks\Element_Slider { | |
public $name = 'flavor-gallery'; |
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 | |
add_filter('dgv_wpforms_enable_modal_popup', '__return_true'); |
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 | |
// Loop videos | |
$database = new WP_DGV_Db_Helper(); | |
$videos = $database->get_videos([ | |
'author' => 'USER_ID_GOES_HERE', | |
'posts_per_page' => 5, | |
'paged' => 1, | |
]); |
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 | |
/** | |
* Saves uploaded video through WPForms to current user meta. | |
* | |
* @param $hook_data | |
* | |
* What $hook_data contains: | |
* | |
* $hook_data = array( |
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
#!/usr/bin/env bash | |
# | |
# This is a script that can automatically | |
# setup DOMjudge server & judgehost, inside a same server. | |
# | |
# you can leave it by its default value | |
USERNAME=domjudge | |
USER_PASSWORD=domjudge |
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 | |
add_action('dgv_frontend_after_upload', function($data){ | |
/** | |
* Example of the $data array: | |
* $data = array( | |
* 'vimeo_title' => $vimeo_title, | |
* 'vimeo_description' => $vimeo_description, | |
* 'vimeo_id' => $vimeo_id, |
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
blueprint: | |
name: Motion-activated Switch and/or Light | |
description: Turn on a switch and/or light when motion is detected. | |
domain: automation | |
source_url: https://darkog.com/blog/home-assistant-motion-lights-with-switches/ | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: |
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 | |
/** | |
* Plugin Name: DLM Disable Software from REST API | |
* Description: Sample plugin that disables software requirement for software parameter in activate endpoint in the rest api. | |
* Author: Darko Gjorgjijoski | |
* Version: 1.0.0 | |
* License: GPLv2 or later | |
*/ | |
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 | |
/** | |
* Plugin Name: DLM Emails Move Licenses On-Top | |
* Description: Move the licenses table above order details in the WooCommerce order email | |
* Author: Darko Gjorgjijoski | |
* Version: 1.0.0 | |
* License: GPLv2 or later | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { |
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 | |
/** | |
* Plugin Name: DLM Product Defaults | |
* Description: Sample plugin that sets product defaults when you publish a product for a first time or create via Woo APIs. | |
* Author: Darko Gjorgjijoski | |
* Version: 1.0.0 | |
* License: GPLv2 or later | |
*/ | |
NewerOlder