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 class="rt_form"> | |
<ul> | |
<li class="form-input">[text* your-name class:fullwidth placeholder "Your Name (*)"]</li> | |
<li class="form-input">[email* your-email class:fullwidth placeholder "Your Email (*)" ]</li> | |
<li class="form-input">[text* your-subject class:fullwidth placeholder "Your Subject" ]</li> | |
<li class="form-input">[textarea* your-message class:fullwidth placeholder "Your Message (*)" ]</li> | |
<li class="submit-button">[submit "Send"]</li> | |
</ul> | |
</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
add_filter( "wp_image_editors", function( $editors ){ | |
//default: array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) | |
return array( 'WP_Image_Editor_GD' ); | |
}, 10, 1 ); |
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 rt_portfolio( $atts, $content = null ) { | |
//[portfolio_box id="" item_width="5" pagination="" portf_list_orderby="" portf_list_order="" item_per_page="9" filterable="" categories="" display_descriptions ="" display_titles ="" display_embedded_titles =""] | |
global $rt_item_width, $post, $wp_query, $rt_display_descriptions, $rt_display_titles, $rt_display_embedded_titles, $paged; | |
$sortNavigation = $filter_holder = ""; | |
//counter |
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 languages_list(){ | |
$languages = icl_get_languages('skip_missing=0&orderby=code'); | |
if(!empty($languages)){ | |
echo '<ul class="flags">'; | |
foreach($languages as $l){ | |
echo '<li>'; | |
if($l['country_flag_url']){ | |
echo '<a href="'.$l['url'].'" title="'.$l['native_name'].'">'.$l["native_name"].'</a>'; | |
} | |
echo '</li>'; |
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
/** | |
* SET RTL FOR FRONT-END ONLY | |
*/ | |
function rt_frontend_only_rtl() { | |
global $wp_locale; | |
if( is_admin() ){ | |
return; | |
} |