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 | |
class WPSEO_Frontend { | |
function __construct() { | |
$options = get_wpseo_options(); | |
add_action( 'wp_head', array(&$this, 'head'), 1, 1 ); | |
remove_action( 'wp_head', 'rel_canonical' ); |
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 | |
class Post_Taxonomy_Columns_And_Filter { | |
/** | |
* Constructor | |
*/ | |
function Post_Taxonomy_Columns_And_Filter() { | |
add_filter( 'manage_edit-mycustomposttype_columns', array( $this, 'manage_mycustomposttype_columns' ) ); | |
add_action( 'manage_mycustomposttype_posts_custom_column', array( $this, 'show_mycustomposttype_columns' ) ); |
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
If you remove the following code from the wpsc-shopping_cart_page.php template, I think it works normally: | |
Around line 358: | |
<?php | |
}elseif( $wpsc_checkout->checkout_item->unique_name == 'billingemail'){ ?> | |
<?php $email_markup = | |
"<div class='wpsc_email_address'> | |
<p class='" . wpsc_checkout_form_element_id() . "'> | |
<label class='wpsc_email_address' for='" . wpsc_checkout_form_element_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
/* Detach carousel - same as destroy but content is not removed */ | |
detach: function() { | |
this.stopAutoplay(); | |
this._itemsWrapper.unbind(this._downEvent); | |
$(document).unbind(this._moveEvent).unbind(this._upEvent); | |
$(window).unbind(this._resizeEvent); | |
if(this.settings.keyboardNav) { | |
$(document).unbind("keydown.touchcarousel"); | |
} | |
if (this._dragContainer.parent().hasClass('touchcarousel-wrapper')) { |
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
/** | |
* Fix scale on rotate issue | |
*/ | |
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) { | |
var viewportmeta = document.querySelector('meta[name="viewport"]'); | |
if (viewportmeta) { | |
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0'; | |
document.body.addEventListener('gesturestart', function () { | |
viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6'; | |
}, false); |
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
/* Prevent text scaling on rotate for iPad/iPhone */ | |
html { -webkit-text-size-adjust: none; } |
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
diff --git a/sitepress.class.php b/sitepress.class.php | |
index d5b2802be9a9de8b64244e889328b3e2ad776c9b..ecd861877107f00a7b111c3477bd65df12e86e6f 100644 | |
--- a/sitepress.class.php | |
+++ b/sitepress.class.php | |
@@ -2775,7 +2775,7 @@ class SitePress{ | |
// if the list of values has 1 element run update | |
// this will either ADD or UPDATE the value on the translated document | |
if(count($meta_values) == 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
/** | |
* Add extra category fields | |
* Requires the Term_Taxonomymeta plugin | |
*/ | |
function add_category_excerpt_fields( $category ) { | |
if ( ! class_exists( 'Term_Taxonomymeta' ) ) | |
return; | |
$category_metadata = get_metadata( 'term_taxonomy', $category->term_id, 'excerpt', true ); | |
?> | |
<tr class="form-field"> |
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 wpml-{ICL_LANGUAGE_CODE} class to body tag | |
*/ | |
function wpml_body_class( $classes ) { | |
if ( defined( 'ICL_LANGUAGE_CODE' ) ) | |
$classes[] = 'wpml-' . strtolower( ICL_LANGUAGE_CODE ); | |
return $classes; | |
} | |
add_filter( 'body_class', 'wpml_body_class' ); |
OlderNewer