This file contains 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
<?php | |
$mb->the_field('content'); | |
$mb_content = html_entity_decode($mb->get_the_value(), ENT_QUOTES, 'UTF-8'); | |
$mb_editor_id = sanitize_key($mb->get_the_name()); | |
$mb_settings = array('textarea_name'=>$mb->get_the_name(),'textarea_rows' => '5',); | |
wp_editor( $mb_content, $mb_editor_id, $mb_settings ); | |
?> |
This file contains 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
<?php if (wpsc_have_custom_meta()) : ?> | |
<div class="custom_meta"> | |
<?php while ( wpsc_have_custom_meta() ) : wpsc_the_custom_meta(); ?> | |
<?php if (stripos(wpsc_custom_meta_name(),'g:') !== FALSE || (stripos(wpsc_custom_meta_name(),'bwps') !== FALSE)) continue; ?> | |
<strong><?php echo wpsc_custom_meta_name(); ?>: </strong><?php echo wpsc_custom_meta_value(); ?><br /> | |
<?php endwhile; ?> | |
</div><!--close custom_meta--> | |
<?php endif; ?> |
This file contains 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
/*** HEADER ***/ | |
add_action('wp_head','msdlab_add_open_graph_meta',1); | |
/** | |
* Add new image sizes | |
*/ | |
add_image_size('facebook', 200, 200, TRUE); | |
add_image_size('linkedin', 180, 110, TRUE); | |
/** |
This file contains 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
//Goes in custom.less | |
.leadership{ | |
.entry-content{ | |
ul{ | |
margin: 0; | |
li{ | |
list-style: none outside none; | |
float: left; | |
width: 49%; | |
padding-top: 1.5rem; |
This file contains 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
<header class="row" id="header"> | |
<div class="col-xs-12 top"> | |
<div class="col-sm-6" id="logo"> | |
<a href="/home.php"> | |
<img src="http://pricedynamics.ro/images/logo-white.png"> | |
</a> | |
</div> | |
<div class="col-sm-6"> | |
<ul class="nav navbar-nav pull-right"> |
This file contains 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
$(window).ready(function() { | |
var quantity = 30, //number of dots | |
duration = 3, //duration (in seconds) | |
path = [{x:100, y:0}, {x:200, y:100}, {x:100, y:200}, {x:0, y:100},{x:100, y:0}]; //points on the path (BezierPlugin will plot a Bezier through these). Adjust however you please. | |
This file contains 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
<?php | |
$list = explode("\n",'test | |
list | |
here'); | |
foreach($list AS $l){ | |
$ret .= ' | |
<li><i class="fa-li fa fa-angle-right"></i>'.$l.'</li>'; | |
} | |
ts_data($ret); | |
?> |
This file contains 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
add_filter('filter_allowed_sorting_columns','msdlab_sort_by_title_allowed'); | |
function msdlab_sort_by_title_allowed($allowed){ | |
$allowed[] = 'media_title'; | |
return $allowed; | |
} |
This file contains 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
/** | |
* @desc Create content type | |
*/ | |
function register_cpt_contest_entry() { | |
$labels = array( | |
'name' => _x( 'Contest Entries', 'contest-entry' ), | |
'singular_name' => _x( 'Contest Entry', 'contest-entry' ), | |
'add_new' => _x( 'Add New', 'contest-entry' ), | |
'add_new_item' => _x( 'Add New Contest Entry', 'contest-entry' ), |
This file contains 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
function remove_redirect_guess_404_permalink( $redirect_url ) { | |
if ( is_404() && !isset($_GET['p']) ) | |
return false; | |
return $redirect_url; | |
} | |
add_filter( 'redirect_canonical', 'remove_redirect_guess_404_permalink' ); |