Skip to content

Instantly share code, notes, and snippets.

View arielk's full-sized avatar

Ariel Klikstein arielk

View GitHub Profile
@arielk
arielk / insert-in-your-functions.php
Created January 29, 2015 12:29
pojo.me + WPML: Change your logo by language
function pojo_wpml_get_multilang_logo( $value ) {
if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
$logos = array(
'en' => 'logo-en.png',
'he' => 'logo-he.png',
);
$default_logo = $logos['en'];
$current_lang = ICL_LANGUAGE_CODE;
$assets_url = get_stylesheet_directory_uri() . '/assets/images/';
@arielk
arielk / insert-in-your-functions.php
Last active August 29, 2015 14:14
pojo.me + Polylang: Change your logo by language
function pojo_polylang_get_multilang_logo( $value ) {
if ( function_exists( 'pll_current_language' ) ) {
$logos = array(
'en' => 'logo-en.png',
'he' => 'logo-he.png',
);
$default_logo = $logos['en'];
$current_lang = pll_current_language();
$assets_url = get_stylesheet_directory_uri() . '/assets/images/';
@arielk
arielk / wpcf7
Created September 30, 2014 16:38
Contact Form 7 - Responsive Design for Pojo Themes
.wpcf7 input,
.wpcf7 textarea {
width: 100%;
max-width: 100%;
margin-top: 6px;
padding: 6px;
-webkit-transition: all .3s linear;
-moz-transition: all .3s linear;
-ms-transition: all .3s linear;
-o-transition: all .3s linear;
@arielk
arielk / content-gallery_square.php
Last active August 29, 2015 14:06
Everest - content-gallery_square.php 480*680px
@arielk
arielk / header.php
Last active August 29, 2015 14:06
Header with UberMenu for Atlanta Theme
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$logo_img = get_theme_mod( 'image_logo' ); // Getting from option your choice.
$sticky_logo_img = get_theme_mod( 'image_sticky_header_logo' ); // Getting from option your choice.
if ( ! $sticky_logo_img )
$sticky_logo_img = $logo_img;
?><!DOCTYPE html>
<!--[if lt IE 7]>
@arielk
arielk / content-small_thumb.php
Created August 27, 2014 12:56
content-small_thumb with full content
<?php
/**
* Content: Small Thumbnail
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $_pojo_parent_id;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'pojo_post_classes', array( 'media small-thumbnail' ), get_post_type() ) ); ?>>
<div class="inbox">
@arielk
arielk / recent_post-grid_three.php
Created August 3, 2014 16:57
Titanium - Recent Posts Grid Three for Tablet
<?php
/**
* Recent Post: Grid Three
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $_current_widget_instance;
?>
<div class="recent-post grid-item col-md-4 col-sm-4 col-xs-12">
@arielk
arielk / content-product.php
Last active September 25, 2016 18:08
Everest + WooCommerce / without AddToCart Button (Archive)
<?php
/**
* The template for displaying product content within loops
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@arielk
arielk / content-gallery_square.php
Created July 3, 2014 10:24
content-gallery_square without Link to gallery
@arielk
arielk / content-three_columns.php
Created July 1, 2014 07:22
content-three_columns with Read More in the caption
<?php
/**
* Content: Three Columns
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $_pojo_parent_id;
?>
<div id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'pojo_post_classes', array( 'grid-item col-md-4 col-sm-6 col-xs-12' ), get_post_type() ) ); ?>>
<div class="inbox">