Skip to content

Instantly share code, notes, and snippets.

View f7en's full-sized avatar

Foundations Aesthetics Resource f7en

  • Foundations Aesthetics Resource
  • 2029 Century Park East, 14th Floor, Los Angeles, California, 90067
View GitHub Profile
@f7en
f7en / Subscribe to Campaign Monitor.coffee
Created August 17, 2020 00:42 — forked from torpio/Subscribe to Campaign Monitor.coffee
An example script to demonstrate adding a subscriber to Campaign Monitor.
# CoffeeScript
###
This example Torpio script creates a Campaign Monitor subscriber from the details entered into its settings. It should give you a good idea how to:
1. Add <a href="https://torpio.com/developers/settings_editor.html" target="_blank">settings</a> to a Torpio script.
2. Add a subscriber through Torpio's ```service.post 'campaign_monitor'``` service wrapper.
###
@f7en
f7en / .bash_profile
Created June 8, 2020 00:52 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@f7en
f7en / function.php
Created June 26, 2019 16:19 — forked from bigdigital/function.php
Add SVG as logo in The7 theme
//to able to use svg you can install following plugin https://uk.wordpress.org/plugins/svg-support/
function presscore_get_logo_image( $logos = array(), $class = '' ) {
if ( ! is_array( $logos ) ) {
$logos = array( $logos );
}
// get default logo
foreach ( $logos as $logo ) {
if ( $logo ) {
@f7en
f7en / Polylang rewrite slugs
Created September 29, 2015 16:55 — forked from scheurta/Polylang rewrite slugs
Polylang Rewrite Slugs
/**
* Post types slugs
*
*/
add_filter( 'pll_translated_post_type_rewrite_slugs', function( $post_type_translated_slugs )
{
$post_type_translated_slugs = array(
// cpt_name
'cpt_name' => array(
@f7en
f7en / functions.php
Created September 29, 2015 16:53 — forked from taninbkk/functions.php
Polylang Shortcode
// Polylang Shortcode - https://wordpress.org/plugins/polylang/
// Add this code in your functions.php
// Put shortcode [polylang] to post/page for display flags
function polylang_shortcode() {
ob_start();
pll_the_languages(array('show_flags'=>1,'show_names'=>0));
$flags = ob_get_clean();
return $flags;
}
@f7en
f7en / shotecodes
Created January 8, 2014 00:08 — forked from anonymous/shotecodes
[vc_row][vc_column width="1/1"][dt_teaser type="image" image="http://the7.dream-demo.com/wp-content/uploads/2013/05/composer-scr.gif" image_alt="composer" style="1" content_size="normal" text_align="left" background="fancy" animation="none"]
<h3 style="text-align: center;">BUILD ANY LAYOUT YOU CAN IMAGINE!</h3>
<h5 style="text-align: center;">With Visual Composer you can drag and drop content where you want to create cool complex page layouts.</h5>
[/dt_teaser][/vc_column][/vc_row][vc_row][vc_column width="1/1"][dt_gap height="20"][vc_column_text]
<h3>Screenshots</h3>
[/vc_column_text][dt_gap height="20"][/vc_column][/vc_row][vc_row margin_top="0" margin_bottom="20" padding_left="40" padding_right="40" bg_position="top" bg_repeat="no-repeat" bg_cover="false" bg_attachment="false" padding_top="40" padding_bottom="40" parallax_speed="0.1"][vc_column width="1/3"][dt_fancy_image type="image" image="http://the7.dream-demo.com/wp-content/uploads/2013/10/vc01.jpg" image_alt="composer" lightbox="true" style="3" width
<body>
<div><i>n</i><i>e</i><i>o</i><i>n</i></div>
</body>