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 | |
class CSSIgniter_Fontawesome_Convert_4_to_5 { | |
public static $fa5_prefixes = array( | |
'fas', // Solid | |
'far', // Regular | |
'fal', // Light | |
'fab', // Brands | |
); | |
public static function convert( $icon_4, $return = 'string' ) { |
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: Custom Registration Fields | |
Plugin URI: | |
Description: | |
Version: 0.1 | |
Author: CSSIgniter | |
Author URI: | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
class My_Dropdown_Category_Control extends WP_Customize_Control { | |
public $type = 'dropdown-category'; | |
protected $dropdown_args = false; | |
protected function render_content() { | |
?><label><?php |
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( 'some_hook', 'maxslider_enqueue_slider_css' ); | |
function maxslider_enqueue_slider_css() { | |
$css = ''; | |
// ... | |
if ( true === $something ) { | |
$css = 'body { background-color: ' . $color . '; }'; | |
} |