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
// Scrolling GitHub on my iPhone 4 (iOS 4.3.5) is almost impossible since it is extremely laggy / unresponsive. | |
// Digging through GitHub's code I discovered that unbinding some touch events solved the problem. | |
// No side effects detected. | |
javascript:jQuery('body').unbind(%22touchstart%20touchmove%20touchend%20touchcancel%22); |
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
<script src="http://mysite.com/jquery.js"></script> | |
<script>$.fn.myplugin = function(){}</script> | |
<script> | |
console.log($.fn.myplugin); | |
--> function() | |
</script> | |
<script src="http://archive.org/jquery.js"></script> | |
<script> |
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
UPDATE wp_posts wpp LEFT JOIN (SELECT comment_post_id AS c_post_id, count(*) AS cnt FROM wp_comments WHERE comment_approved = 1 GROUP BY comment_post_id) wpc ON wpp.id=wpc.c_post_id SET wpp.comment_count=wpc.cnt WHERE wpp.post_type IN ('post', 'page') AND (wpp.comment_count!=wpc.cnt OR (wpp.comment_count != 0 AND wpc.cnt IS NULL)); | |
SET @trid = (SELECT MAX(trid) FROM wp_icl_translations); | |
INSERT INTO wp_icl_translations (element_type, element_id, trid, language_code) | |
SELECT 'comment', missing_comments.comment_ID, (@trid:=@trid+1) AS trid, language_code | |
FROM wp_icl_translations | |
RIGHT JOIN ( | |
SELECT comment_ID, comment_post_ID FROM wp_comments | |
WHERE NOT EXISTS ( | |
SELECT * FROM wp_icl_translations |
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
on adding folder items to theWatchedFolder after receiving theDetectedItems | |
set _public to "Macintosh HD:Users:me:Dropbox:Public:Screenshots" | |
set _private to "Macintosh HD:Users:me:Dropbox:Photos:Screenshots" | |
try | |
set _choice to button returned of (display dialog "Share on DropBox?" buttons {"No", "Yes"} default button 2 cancel button "No") | |
if _choice = "Yes" then |
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
<!-- | |
WP-Polls allows for template settings (/wp-admin/admin.php?page=wp-polls/polls-templates.php). To match the design, the following definitions were used on our dev environment. | |
Since WP-Polls doesn't play nice with WPML, a custom JavaScript solution was chosen to translate the strings. Every element of a poll which has the class 'localize' is searched for a data attribute with the current language and the text is replaced accordingly. | |
Example: <button type="submit" class="localize" data-de="Abstimmen">Vote</button> | |
--> | |
<!-- Voting Form Header --> |
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
Plugins | |
Zusätzliche Plugins: | |
* Subscribe to Comments Reloaded: Kommentar-Abo | |
* Widget Logic: Steuerung der Widget-Anzeige durch WordPress' Conditional Tags (Bsp: "is_home()" zeigt das Widget nur auf der Startseite an) | |
* ZigWidgetClass (EDITED): Vergabe von CSS-Klassen an Widgets (Bsp: "bg-inner" setzt den Widget-Inhalt - ohne Titel - in eine graue Box). Dieses Widget wurde insofern angepasst, dass das entsprechende Form-Label nicht mehr "ZigClass", sondern "Classes" heisst, um Verwirrung zu vermeiden. |
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 | |
/** | |
* WPML language switcher: Transform names to language codes | |
* | |
* The language switcher is added to the theme by setting | |
* 'Den Sprachumschalter im WP-Menü anzeigen' to 'Meta right'. | |
* However, there is no option to display the language code only. | |
* Instead, the whole name is displayed (e.g., "Deutsch"). | |
* As a work-around we filter all items of this navigation and |
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 | |
/** | |
* Register navigations | |
*/ | |
register_nav_menus(array( | |
'main' => __('Main navigation', THEME_TEXTDOMAIN), | |
'meta' => __('Meta navigation', THEME_TEXTDOMAIN) | |
)); |
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 | |
/** | |
* Enable shortcodes in widgets | |
*/ | |
add_filter('widget_text', 'do_shortcode'); | |
/** |
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
/** | |
* Styles for the Polldaddy widget (not used for now, but who knows...) | |
* Some definitions were commented out when the design changed | |
*/ | |
.PDS_Poll { | |
display: block !important; | |
} |
OlderNewer