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
mysql> select * from hashtag_count order by count desc limit 50; | |
+------------------------+-------+ | |
| hashtag | count | | |
+------------------------+-------+ | |
| #cybermonday | 39674 | | |
| #sale | 32346 | | |
| #shopping | 32038 | | |
| #jewelry | 25354 | | |
| #thanksgiving | 22650 | | |
| #shop | 22254 | |
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
mysql> select * from hashtag_count order by count desc limit 50; | |
+--------------------+-------+ | |
| hashtag | count | | |
+--------------------+-------+ | |
| #cybermonday | 37662 | | |
| #shopping | 31014 | | |
| #sale | 30682 | | |
| #jewelry | 24776 | | |
| #shop | 21960 | | |
| #thanksgiving | 21840 | |
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 | |
/** | |
* General template tags that can go anywhere in a template. | |
* | |
* @package WordPress | |
* @subpackage Template | |
*/ | |
/** | |
* Load header template. |
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 | |
/*** turn on error reporting ***/ | |
error_reporting( E_ALL ); | |
/*** an array of test values ***/ | |
$values = array( $var, null, 0, false, 100, ''); | |
echo '<tr>'; | |
echo '<td>isset()</td>'; | |
foreach( $values as $val ) | |
{ |
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 | |
$calendar_output .= '<td style="position:relative">'; | |
if ( in_array($day, $daywithpost) ){ // any posts today? | |
$title_div = "<div class='event-titles'>"; | |
foreach($ak_titles_for_day[$day] as $ak_title){ | |
$title_div .= "<a href='".$ak_title['url']."' title='".$ak_title['title']."'>".$ak_title['title']."</a><br/>"; |
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-calendar span').hover( function () { | |
$(this).next().show(); | |
}, | |
function () { | |
$(this).next().hide(); | |
}); | |
$('#wp-calenda div').hover( function () { | |
$(this).show() | |
}, |
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 | |
$calendar_output .= '<td>'; | |
if ( in_array($day, $daywithpost) ){ | |
$title_div = "<div>"; | |
foreach($ak_titles_for_day[$day] as $ak_title){ | |
$title_div .= "<a href='".$ak_title['url']."' title='".$ak_title['title']."'>".$ak_title['title']."</a><br/>"; | |
} | |
$title_div .= "</div>"; | |
$calendar_output .= "<span>$day</span>".$title_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
<?php | |
$calendar_output .= '<td>'; | |
if ( in_array($day, $daywithpost) ) // any posts today? | |
$calendar_output .= '<a href="' . get_day_link( $thisyear, $thismonth, $day ) . '" title="' . esc_attr( $ak_titles_for_day[ $day ] ) . "\">$day</a>"; | |
else | |
$calendar_output .= $day; | |
$calendar_output .= '</td>'; |
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 | |
if ( $dayswithposts ) { | |
foreach ( $dayswithposts as $daywith ) { | |
$daywithpost[] = $daywith->dom; | |
$post_title = esc_attr( apply_filters( 'the_title', $daywith->post_title, $daywith->post_id ) ); | |
if(empty($ak_titles_for_day)){ | |
$ak_titles_for_day[$daywith->dom]= array (); |
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 | |
$ak_titles_for_day = array(); | |
$ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom " | |
."FROM $wpdb->posts " | |
."WHERE post_date >= '{$thisyear}-{$thismonth}-01 00:00:00' " | |
."AND post_date <= '{$thisyear}-{$thismonth}-{$last_day} 23:59:59' " | |
."AND post_type = 'post' AND post_status = 'publish'" | |
); | |
if ( $ak_post_titles ) { |