Skip to content

Instantly share code, notes, and snippets.

View georgeolaru's full-sized avatar

George Olaru georgeolaru

View GitHub Profile
@georgeolaru
georgeolaru / media-card-color-signal.html
Created June 12, 2023 08:54
Media Card + Color Signal
<!-- wp:novablocks/supernova {"variation":"novablocks-card-media","contentType":"custom","showCollectionTitle":false,"showCollectionSubtitle":false,"contentPosition":"center left","cardLayout":"horizontal","postsToShow":1,"columns":1,"imagePadding":50,"contentPadding":100,"blockTopSpacing":0,"blockBottomSpacing":1,"emphasisTopSpacing":1,"emphasisBottomSpacing":1,"layoutGutter":100,"paletteVariation":11,"colorSignal":3,"contentColorSignal":3} -->
<!-- wp:novablocks/supernova-item {"defaultsGenerated":true,"lock":{"remove":false,"move":false},"contentType":"custom","showCollectionTitle":false,"showCollectionSubtitle":false,"contentPosition":"center left","cardLayout":"horizontal","postsToShow":1,"columns":1,"imagePadding":50,"contentPadding":100,"blockTopSpacing":0,"blockBottomSpacing":1,"emphasisTopSpacing":1,"emphasisBottomSpacing":1,"layoutGutter":100,"colorSignal":3,"images":[{"id":"TIrXot28Znc","url":"https://images.unsplash.com/uploads/14116941824817ba1f28e/78c8dff1?crop=entropy\u0026cs=tinysrgb\u0026fit=
@georgeolaru
georgeolaru / list-styles-sample-markup
Last active July 6, 2021 14:45
Sample content to test list styles for Pixelgrade LT design system.
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"level":5} -->
<h5 class="has-normal-font-size">Bullet</h5>
<!-- /wp:heading -->
<!-- wp:list {"className":"sm-palette-1 novablocks-list"} -->
<ul class="sm-color-signal-0 nb-list sm-palette-1 novablocks-list"><li>We took a good long look</li><li>At the default</li><li>Unordered</li><li>Lists.</li></ul>
<!-- /wp:list --></div>
<!-- /wp:column -->
@georgeolaru
georgeolaru / listable-map-button.css
Last active March 20, 2017 16:29
Listable Mobile testing the View Map Button
.mobile-buttons .btn.btn--view-map span {
display: block;
}
.mobile-buttons .btn.btn--view-map:after {
right: 8px;
}
.mobile-buttons .btn--view-map {
  background: white;
[row cols_nr="2"][col size="6"]
I’m a travelling and fashion photographer who currently resides in New York City. I grew up in Staffordshire, England where I discovered my interest in photography at an early age. Later moved to London to pursue fashion photography full-time before making NYC my home in 2015.
I have won a boatload of awards for my work, and I’m grateful for every single one of them, but I’ve always been unsure of whether I earned them or whether the jury was rigged.<span class="Apple-converted-space">  </span>Let’s be friends. Better yet, let’s swim the English Channel.
<a href="https://www.facebook.com/PixelGradeMedia/"><img class="alignnone size-full wp-image-493" src="http://noah.dev/wp-content/uploads/2016/11/Facebook.png" alt="facebook" width="15" height="15" /></a>    <a href="https://www.behance.net/babbardel"><img class="alignnone size-full wp-image-491" src="http://noah.dev/wp-content/uploads/2016/11/Behance.png" alt="behance" width="20" height="13" /></a>    <a href="https://dribb
@georgeolaru
georgeolaru / extras.php
Created December 8, 2015 12:55
Listable Map Localization
/**
* Force WPJM to fetch geolocation data based on current site language
*
* @param $url
* @param $raw_address
*
* @return string
*/
function listable_add_google_language_param( $url, $raw_address ) {
$url = add_query_arg( array( 'language' => get_locale() ), $url );
<?php
$settings['panels'] = array(
'exemplu-panou' => array(
'title' => 'Titlu Panou',
'sections' => array(
'exemplu-sectiune' => array(
'title' => 'Titlu Sectiune',
'options' => array(
'culoare_accent' => array(
'label' => 'Culoarea Accentuata',
/**
* Colors
*/
/* Accent Color */
blockquote a:hover,
.format-quote .edit-link a:hover,
.content-quote blockquote:before,
.widget a:hover,
@georgeolaru
georgeolaru / header-single.php
Created January 2, 2015 13:55
Bucket - Show Captions for Featured Images
<?php
if (has_post_thumbnail()):
// $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'blog-big' );
//
$featured_image_ID = get_post_thumbnail_id( $post->ID );
$image = wp_get_attachment_image_src( $featured_image_ID, 'blog-big' );
$image_medium = wp_get_attachment_image_src( $featured_image_ID, 'blog-medium' );
// Get the image meta informations
#respond h3 {
/*Aici trebuie modificat in SCSS */
margin-bottom: 36px;
}
/* Textarea */
.highlander-dark #respond #comment-form-comment, .highlander-dark #comment-form-share-text-padder {
background: none;
box-shadow: none;
border: 1px solid #d7d7d7;
max-width: 100%;
@georgeolaru
georgeolaru / pile-logo1.svg
Created October 17, 2014 06:31
Pile SVG Logo Code
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.