This file contains hidden or 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
JQUERY: //ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js | |
GITHUB: https://github.com/theproductguy/ThreeDots | |
<div class='text_here' style="width: 200px;"> | |
<span class='ellipsis_text'> | |
TEXT | |
</span> | |
</div> | |
This file contains hidden or 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
http://www.queness.com/post/14256/10-powerful-responsive-lightboxes |
This file contains hidden or 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
$select= $this->_getTable()->select()->setIntegrityCheck(false) | |
->from(array('BLG' => 'articles'), array('month' => new Zend_Db_Expr($m), 'count' => new Zend_Db_Expr('COUNT(BLG.id_articles)'))) | |
->joinLeft( | |
array('LNG' => 'languages'), | |
'LNG.id_languages = BLG.id_languages', | |
array('lang' => 'code') | |
) | |
->where('LNG.code = ?', $lang) | |
; |
This file contains hidden or 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 getPostAuthors() { | |
global $wpdb; | |
$authors = array(); | |
$results = $wpdb->get_results( $wpdb->prepare("SELECT post_author FROM $wpdb->posts WHERE (post_type = '%s' AND ID = %d) OR (post_type = 'revision' AND post_parent = %d) GROUP BY post_author", get_post_type( get_the_ID() ), get_the_ID(), get_the_ID() ) ); | |
foreach ($results as $row) { | |
if (isset($coma)) { | |
echo $coma; | |
} else { | |
$coma = ', '; | |
} |
NewerOlder