Skip to content

Instantly share code, notes, and snippets.

View s3w47m88's full-sized avatar

Spencer Hill s3w47m88

View GitHub Profile
<?php while ($upw_query->have_posts()) : $upw_query->the_post(); ?>
<?php $current_post = ($post->ID == $current_post_id && is_single()) ? 'active' : ''; ?>
<article <?php post_class($current_post); ?>>
<header>
<?php if (current_theme_supports('post-thumbnails') && $instance['show_thumbnail'] && has_post_thumbnail()) : ?>
<select name="ctl00$ctl00$ContentPlaceHolder1$ContentPlaceHolder1$ctParametrosDestino_v21$ddlBankBranchName" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ctl00$ContentPlaceHolder1$ContentPlaceHolder1$ctParametrosDestino_v21$ddlBankBranchName\',\'\')', 0)" id="ContentPlaceHolder1_ContentPlaceHolder1_ctParametrosDestino_v21_ddlBankBranchName" data-track-field-name="branch name">
<option selected="selected" value="0">Please select</option>
<option value="BD090059">AGRABAD CHITTAGONG</option>
<option value="BD090064">ASHULIA DHAKA</option>
<option value="BD090022">BABURHAT NARSINGDI</option>
<option value="BD090041">BANANI DHAKA</option>
<option value="BD090043">BANDURA DHAKA</option>
<option value="BD090061">BARISAL BRANCH BARISAL</option>
<option value="BD090048">BASHUNDARA DHAKA</option>
<option value="BD090027">BASURHAT NOAKHALI</option>
@s3w47m88
s3w47m88 / gist:174f63d25306c7d3eb49
Created June 19, 2015 17:28
dev.iteratemarketing.com styles
@media screen and (min-width:783px) {
.admin-bar .navbar-fixed-top {top:32px !important;}
}
@media screen and (min-width:600px) and (max-width:782px){
.admin-bar .navbar-fixed-top {top:46px !important;}
}
.cth-pagecontent > * {
max-width: 100%;
}
.cth-pagecontent img {
This file has been truncated, but you can view the full file.
[Thu Mar 3 22:52:19 2016] [hphp] [25100:7f63019602c0:0:000001] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:52:20 2016] [hphp] [25100:7f63019602c0:0:000002] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:52:21 2016] [hphp] [25100:7f63019602c0:0:000003] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:52:22 2016] [hphp] [25100:7f63019602c0:0:000004] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:52:23 2016] [hphp] [25100:7f63019602c0:0:000005] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:53:44 2016] [hphp] [25397:7fde281cf2c0:0:000001] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:53:45 2016] [hphp] [25397:7fde281cf2c0:0:000002] [] Unable to read pid file /var/run/hhvm/pid for any meaningful pid
[Thu Mar 3 22:53:46 2016] [hphp] [25397:7fde281cf2c0:0:000003] [] Unable to read pid file /var/run/
@s3w47m88
s3w47m88 / gist:6462719beb5561c3229d55df5c3f3055
Created March 19, 2017 01:22
bedrock/web/wp/composer.json
{
"name": "johnpbloch/wordpress",
"description": "WordPress is web software you can use to create a beautiful website or blog.",
"keywords": ["blog", "cms"],
"type": "wordpress-core",
"homepage": "http://wordpress.org/",
"license": "GPL-2.0+",
"authors": [
{
"name": "WordPress Community",
@s3w47m88
s3w47m88 / gist:341a52b77bfe31cfbb83e438f39a474d
Created March 19, 2017 21:32
ACF Pro Composer Command Line Output
user@ip-173-30-1-96 /home/theportlandcompany/public_html/wp-content/plugins
% cd /home/theportlandcompany/domains/deploy.theportlandcompany.com/public_html/bedrock
user@ip-173-30-1-96 /home/theportlandcompany/domains/deploy.theportlandcompany.com/public_html/bedrock
% composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
user@ip-173-30-1-96 /home/theportlandcompany/domains/deploy.theportlandcompany.com/public_html/bedrock
% composer require advanced-custom-fields/advanced-custom-fields-pro:*
@s3w47m88
s3w47m88 / gist:eab3a08b2ca3db9f96f5b92778b3f80c
Created March 19, 2017 21:33
bedrock/composer.js for ACF Pro inclusion
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* The routing is enclosed within an anonymous function so that you can
* always reference jQuery with $, even when in .noConflict() mode.
@s3w47m88
s3w47m88 / gist:0bdb33390cb7d2c6e162fbbf46aa48ae
Created March 27, 2017 18:52
(Don't Delete) Font-Awesome Inclusion to Sage & Bootstrap 4
,
"overrides": {
"font-awesome": {
"main": [
"./scss/font-awesome.scss",
"./fonts/*"
]
}
}
# Documentation: https://roots.io/trellis/docs/vault/
vault_mysql_root_password: {omitted}
# Documentation: https://roots.io/trellis/docs/security/
vault_users:
- name: "{{ admin_user }}"
password: {omitted}
# Variables to accompany `group_vars/staging/wordpress_sites.yml`
# Note: the site name (`example.com`) must match up with the site name in the above file.