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 ( have_rows( 'repeater_field', $order_id ) ) : | |
while ( have_rows( 'repeater_field', $order_id ) ) : the_row(); | |
$type = get_sub_field( 'type', $order_id ); | |
if( $type === 'tekst' ): ?> | |
<div id="customerMessageTxt"> | |
<?php the_sub_field($type, $order_id); ?> | |
</div> | |
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 | |
$base_taxonomy = 'pays'; | |
$term_id = '1'; | |
$required_taxonomy = 'villes'; | |
$required_terms = array(); | |
$required_terms_id = array(); | |
$objects_in_tax = get_objects_in_term( $term_id, $taxonomy ); |
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 | |
add_action( 'wp_footer', 'rp_add_google_search_markup' ); | |
function rp_add_google_search_markup() { | |
if ( is_front_page() ) { | |
?> | |
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "WebSite", | |
"url": "<?php echo esc_url( home_url( '/' ) ); ?>", |
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
<div itemscope itemtype="http://schema.org/WebSite"> | |
<meta itemprop="url" content="<?php esc_url( echo home_url( '/' ) ); ?>"/> | |
<form itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction" role="search" method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<div> | |
<label class="visually-hidden" for="s"><?php _e( 'Search for:', 'themeslug' ); ?></label> | |
<meta itemprop="target" content="<?php esc_url( echo home_url( '/' ) ); ?>?s={s}"/> | |
<input itemprop="s" type="search" value="<?php the_search_query(); ?>" name="s" id="s" class="searchfield" placeholder="<?php _e( 'Input search terms', 'themeslug'); ?>" /> | |
<input type="submit" id="searchsubmit" class="searchsubmit" value="<?php _e( 'Search' ); ?>" /> | |
</div> | |
</form> |
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
class Text_Editor_Custom_Control extends WP_Customize_Control | |
{ | |
public $type = 'textarea'; | |
/** | |
** Render the content on the theme customizer page | |
*/ | |
public function render_content() { ?> | |
<label> | |
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> | |
<?php |
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( $ ) { | |
wp.customizerCtrlEditor = { | |
init: function() { | |
$(window).load(function(){ | |
$('textarea.wp-editor-area').each(function(){ | |
var tArea = $(this), | |
id = tArea.attr('id'), |
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 register_theme_customizer() { | |
$wp_customize->add_section( 'editor', array( | |
'title' => 'Editeur', | |
'description' => 'Editeur TinyMCE', | |
'priority' => 300 | |
) ); | |
$wp_customize->add_setting( 'theme[editor_content]', array( | |
'default' => '', | |
'transport' => 'postMessage', |
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
GeoMashup.addAction( 'loadedMap', function( properties, map ) { | |
var gmap = map.getMap(); | |
var styles = [ | |
{ | |
"featureType": "water", | |
"elementType": "geometry.fill", | |
"stylers": [ | |
{ "color": "#8eade4" } | |
] | |
},{ |
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
/* Maps fill the frame, makes percentage height maps a bit easier */ | |
html, body { height: 100%; overflow: hidden; margin: 0; } | |
/* Info window */ | |
.locationinfo { overflow:auto; width:600px; height:300px; } | |
.user-location-info { overflow:auto; width:150px; height:80px; } | |
.comment-location-info { overflow:auto; width:200px; height:140px; } | |
.info-window-max { overflow:auto; } |
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 | |
// A potentially heavy-handed way to remove shortcode-like content | |
add_filter( 'the_excerpt', array( 'GeoMashupQuery', 'strip_brackets' ) ); | |
?> | |
<div class="locationinfo post-location-info"> | |
<?php if (have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<section class="line entry-content"> |
OlderNewer