Date: [date]
Between us [company name] and you [customer name].
Summary:
In short; neither of us will share any confidential information about each-other, by any means, with anyone else.
require "nokogiri" | |
require "open-uri" | |
url = "https://github.com/#{params['username']}" | |
document = Nokogiri::HTML(open(url)) | |
contrib_boxes = document.css('svg.js-calendar-graph-svg')[0] | |
contrib_boxes['xmlns']="http://www.w3.org/2000/svg" | |
width = (params['width']||54*13-2).to_i | |
height = (params['height']||89).to_i | |
contrib_boxes.css('text').remove | |
contrib_boxes['width']=(width+11).to_s+'px' |
<?php | |
/** | |
* Plugin Name: Classic Editor Addon | |
* Plugin Author: Pieter Bos (https://so-wp.com) and Greg Schoppe (https://gschoppe.com) | |
* Description: The Classic Editor plugin doesn't remove Gutenberg by default. With this function we set the option that controls this from no-replace to replace and we remove the Settings link from the main Plugins page | |
*/ | |
function classic_editor_addon_hardcode_replace( $value ) { | |
return 'replace'; |
<?php | |
return function($site, $pages, $page) { | |
$alert = null; | |
if(get('submit')) { | |
$data = array( | |
'name' => get('name'), |
<?php | |
/** | |
* To get this to work, you need to tinker with the acf/settings/ filter and reset the default language | |
* so that the get_field() function returns the correct results even when not on the default language. | |
* | |
* You can add the filter before you call the get_field() function and then call it again with the current | |
* language to reset it again, so it will affect other pages. | |
* | |
* answer courtesy of James of ACF Support | |
*/ |
<?php | |
/** | |
* Function that grabs the first image in a Post | |
* If there is no image, then it loads a default image | |
* | |
* @source: //wordpress.stackexchange.com/a/60267/2015 | |
*/ | |
// add this function to your functions.php file or to your functionality file or plugin |
<?php | |
if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) { | |
// Output old, custom favicon feature. | |
} |
<?php | |
/** | |
* The template for displaying Category pages | |
* | |
* Change the number of the category you want to make inaccessible | |
* on line 21 | |
* | |
* @link https://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package WordPress |
<?php | |
/** | |
* Sample loop that can be used on index.php template to show full content to logged-in users | |
* and excerpts to visitors. | |
* | |
* ### IMPORTANT: ### | |
* ### Theme should use separate template for homepage for this to work. ### | |
* | |
* @original question: //linkedin.com/grp/post/2203862-6042328310845833217 | |
*/ |
Date: [date]
Between us [company name] and you [customer name].
In short; neither of us will share any confidential information about each-other, by any means, with anyone else.