This file contains hidden or 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
{ | |
"BTTWidgetName" : "CPU", | |
"BTTTriggerType" : 642, | |
"BTTTriggerTypeDescription" : "Shell Script \/ Task Widget", | |
"BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
"BTTPredefinedActionType" : -1, | |
"BTTPredefinedActionName" : "No Action", | |
"BTTShellScriptWidgetGestureConfig" : "\/bin\/bash:::-c", | |
"BTTEnabled2" : 1, | |
"BTTUUID" : "2242BFF7-6346-4EBF-AE18-407E91CFEA57", |
This file contains hidden or 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
{ | |
"BTTTriggerType" : 632, | |
"BTTTriggerTypeDescription" : "Remaining Battery Time Widget", | |
"BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
"BTTPredefinedActionType" : -1, | |
"BTTPredefinedActionName" : "No Action", | |
"BTTEnabled2" : 1, | |
"BTTUUID" : "58565999-B2C5-48BB-943F-1B24CC662EC4", | |
"BTTEnabled" : 1, | |
"BTTOrder" : 2, |
This file contains hidden or 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 | |
new Mstdn_Link_Builder(); | |
/** | |
* Class Name: Mstdn_Link_Builder | |
*@author @ottanxyz | |
*/ | |
class Mstdn_Link_Builder { | |
function __construct() { |
This file contains hidden or 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( 'amp_post_template_analytics', function ( $analytics ) { | |
if ( ! is_array( $analytics ) ) { | |
$analytics = array(); | |
} | |
// https://developers.google.com/analytics/devguides/collection/amp-analytics/ | |
$analytics['xyz-googleanalytics'] = array( | |
'type' => 'googleanalytics', | |
'attributes' => array(), |
This file contains hidden or 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
<!doctype html> | |
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"> | |
<?php do_action( 'amp_post_template_head', $this ); ?> | |
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script> | |
<style amp-custom> | |
<?php $this->load_parts( array( 'style' ) ); ?> | |
<?php do_action( 'amp_post_template_css', $this ); ?> |
This file contains hidden or 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
@font-face { | |
font-family: 'FontAwesome'; | |
src: url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.eot?v=4.7.0'); | |
src: url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
.fa { | |
display: inline-block; | |
font-family: FontAwesome; |
This file contains hidden or 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( 'amp_post_template_css', function() { | |
?> | |
// Your style sheet here. | |
<?php | |
} ); | |
?> |
This file contains hidden or 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( 'amp_post_template_file', function ( $file, $type, $post ) { | |
if ( 'single' === $type ) { | |
$file = dirname( __FILE__ ) . '/include/amp/single.php'; | |
} | |
return $file; | |
}, 10, 3 ); | |
?> |
This file contains hidden or 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 | |
new Safari_Extensions_Link_Builder(); | |
/** | |
* Class Name: Safari Extensions Link Builder | |
*@author @ottanxyz | |
*/ | |
class Safari_Extensions_Link_Builder { | |
function __construct() { |
This file contains hidden or 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 | |
new Chrome_Web_Store_Link_Builder(); | |
/** | |
* Class Name: Chrome Web Store Link Builder | |
*@author @ottanxyz | |
*/ | |
class Chrome_Web_Store_Link_Builder { | |
function __construct() { |