This file contains hidden or 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
# 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. | |
### |
This file contains hidden or 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
# --------------------------------------------------------------------------- | |
# | |
# 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 |
This file contains hidden or 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
//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 ) { |
This file contains hidden or 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
/** | |
* 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( |
This file contains hidden or 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
// 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; | |
} |
This file contains hidden or 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
[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 |
This file contains hidden or 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
<body> | |
<div><i>n</i><i>e</i><i>o</i><i>n</i></div> | |
</body> |