Skip to content

Instantly share code, notes, and snippets.

@populationtwo
populationtwo / Install-Solr.ps1
Last active August 22, 2019 18:43 — forked from themattconnolly/Install-Solr.ps1
Install-Solr.ps1
Param(
$installFolder = "c:\solr",
$solrPort = "8721",
$solrHost = "solr",
$solrSSL = $true,
$downloadFolder = "$PSScriptRoot"
)
$solrVersion = "6.6.2"
$solrName = "solr-$solrVersion"
/* Navigation */
.top-bar {
background: #e895b5;
}
.top-bar-section ul li {
background: #e895b5;
}
<?php
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
$lead1 = new stdClass();
$lead1->email = $_POST['hfemail'];
$name = explode( " ", $_POST['hfname'] );
if ( isset( $name[0] ) && isset( $name[1] ) ) {
$lead1->firstName = $name[0];
$lead1->lastName = $name[1];
}
@populationtwo
populationtwo / header.php
Created February 10, 2016 21:31
Peekaboo 2.10. full width main menu
<?php
/*
* Peekaboo Header
*/
global $smof_data;
?>
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" <?php language_attributes(); ?> > <![endif]-->
@populationtwo
populationtwo / mod-cta.php
Last active February 2, 2016 01:02
Peekaboo theme - CTA mod with clearfix every third items.
<div class="row">
<hr>
</div>
<?php if ($smof_data['pkb_cta_mod_title']) { ?>
<div class="row section-title">
<div class="columns large-10">
<?php if ($smof_data['pkb_cta_mod_url']) { ?>
<h4 class="replace"><a
href="?p=<?php echo stripslashes($smof_data['pkb_cta_mod_url']); ?>"><?php echo stripslashes($smof_data['pkb_cta_mod_title']); ?></a>
@populationtwo
populationtwo / woocommerce.php
Last active February 8, 2016 15:55
Peekaboo theme - woocommerce template with sidebar
<div class="row">
<hr>
</div>
<?php if ($smof_data['pkb_cta_mod_title']) { ?>
<div class="row section-title">
<div class="columns large-10">
<?php if ($smof_data['pkb_cta_mod_url']) { ?>
<h4 class="replace"><a
href="?p=<?php echo stripslashes($smof_data['pkb_cta_mod_url']); ?>"><?php echo stripslashes($smof_data['pkb_cta_mod_title']); ?></a>
@populationtwo
populationtwo / office.php
Created October 20, 2015 14:05
office 365
//load Bootstrap, Font Awesome and Custom Styles for O365 E&S and Managed Services Template Pages
if ( is_page_template( 'page-365-es.php' ) || is_page_template( 'page-managed-services.php' ) ) {
wp_enqueue_style( 'bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css' ); // Bootstrap CDN
wp_enqueue_style( 'bootstrap-theme', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css' ); // Bootstrap Theme CDN
wp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' ); // Font Awesome CDN
wp_enqueue_style( 'ms-styles', get_stylesheet_directory_uri() . '/assets/css/managed-services-styles.css' ); // Managed Services Styles
}
[
{
"ID": 126,
"name": "Akron",
"slug": "akron",
"description": "",
"taxonomy": "states",
"parent": {
"ID": 125,
"name": "Ohio",
{
"bold_folder_labels": true,
"caret_style": "solid",
"color_scheme": "Packages/Theme - Gravity/Monokai Gravity (SL).tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@populationtwo
populationtwo / loop.php
Created June 7, 2015 19:53
Peekaboo loop
<?php
/*
* The loop that displays posts.
*/
global $smof_data;
?>
<?php if (!have_posts()) : /* If there are no posts to display */ ?>
<h1><?php _e('Not Found', 'peekaboo'); ?></h1>
<p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'peekaboo'); ?></p>