View more-json-info.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
/*---------------------------------JSON MOD FOR ADDITIONAL SITE INFO----------------------------------*/ | |
function extraJsonData($response){ | |
$blog_id = get_current_blog_id(); | |
$blog_details = get_blog_details($blog_id); | |
$data = $response->data; | |
$data['created'] =$blog_details->registered; | |
$data['last_updated'] =$blog_details->last_updated; | |
$data['post_count'] =$blog_details->post_count; | |
$data['page_count'] = wp_count_posts('page','publish'); |
View wp-config.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
/** | |
* these are two alternative settings for wp-config.php don't use both! | |
**/ | |
/** | |
* super shush any errors or warnings | |
**/ | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); |
View catalog.css
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
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
.h1 { | |
font-family: Domine, georgia, serif; | |
} | |
#app-header { |
View config.json
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
{ | |
"options": { | |
"bookmarkThumbHeight": 150, | |
"bookmarkThumbWidth": 90, | |
"leftPanelEnabled": true, | |
"limitLocales": true, | |
"minWidthBreakPoint": 610, | |
"navigatorEnabled": true, | |
"openTemplate": "http://universalviewer.io?manifest={0}", | |
"overrideFullScreen": false, |
View example-pything-dooo.py
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
# full path | |
data = open("../../test/test.php", "w") | |
phpheader = ["<?php \n", "defined( 'ABSPATH' ) || exit; \n", "$bar = '"] | |
data.writelines(phpheader) | |
# regular csv stuff to populate the variable |
View victor-chen-custom.css
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
section.chapter header h1, | |
.front-matter h5, | |
.part h5, | |
.chapter h5, | |
.back-matter h5, | |
body#tinymce.wp-editor h5, | |
.front-matter h2, | |
.part h2, | |
.chapter h2, | |
.back-matter h2, |
View escape-the-panopticon.js
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
javascript: (() => {var tableRows = document.querySelector('.session-list').querySelectorAll('tr');tableRows.forEach((row) => {if(row.dataset){var dlUrl = 'https://midd.hosted.panopto.com/Panopto/Podcast/Download/'+row.dataset.id+'.mp4?mediaTargetType=videoPodcast';window.open(dlUrl);}});})(); |
View bava-library-options.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 | |
//simple GF merge field modifier that replaces the space with a dash | |
add_filter( 'gform_merge_tag_filter', function ( $value, $merge_tag, $modifier, $field, $raw_value, $format ) { | |
if ( $merge_tag != 'all_fields' && $modifier == 'urlmaker' ) { | |
$value = str_replace(" ", "-", $value); | |
} | |
return $value; | |
}, 10, 6 ); |
View gf_to_events_calendar.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( 'gform_after_submission_3', function ( $entry ) { | |
if ( ! function_exists( 'tribe_create_event' ) ) { | |
return; | |
} | |
$start_date = rgar( $entry, '2' ); | |
$start_time = rgar( $entry, '3' ); | |
$end_date = rgar( $entry, '4' ); | |
$end_time = rgar( $entry, '5' ); | |
View sensus.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
<h1>SensusAccess Stats Index</h1> | |
<?php | |
function create_file_name($string){ | |
$name = str_replace('middlebury-report-','', $string); | |
$name = substr($name,0,10); | |
return $name; | |
} | |
$files = scandir('.'); |
NewerOlder