Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($results as $result){
- //var_dump($result['count']);
- if($zerohide && $result['count'] == 0){ continue;}
- $output .= '<div class="cbsocialcrowditem cbsocialcrowditem'.$result['network'].' cbsocialcrowditem'.$style.' '.(($gradient)?'cbsocialcrowditem'.$style.'grad':'').' '.(($border)?'cbsocialcrowditem'.$style.'border':'').' '.(($i == 1 && $rounded == 0 && $border)?'cbsocialcrowditem'.$style.'first':'').' " style="'.(($rounded)?'-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; margin:0 0 5px 0; border:1px solid '.$colors[$style].';':'').'">';
- $output .= '<div class="cbsocialcrowditemleft"><span class="cbsocialcrowdicon cbsocialcrowdicon'.$result['network'].'"><a href="'.$result['link'].'">'.$result['network'].'</a></span></div>';
- $output .= '<div class="cbsocialcrowditemright"><span class="cbsocialcrowdctext cbsocialcrowdctext'.$result['network'].'">'.$result['count'].$result['counttext'].'</span>';
- $output .= '<span class="cbsocialcrowdclabel cbsocialcrowdlabel'.$result['network'].'"><a href="'.$result['link'].'" target="_blank">'.$result['label'].'</a></span></div>';
- $output .= '</div>';
- $i++;
- }
- css:
- .clear{ clear: both;}
- .cbsocialcrowdwrapper{
- }
- div.cbsocialcrowditem{
- margin: 0; padding:0px; float: left; clear: both; width: 100%;
- }
- div.cbsocialcrowditemclean{
- }
- div.cbsocialcrowditemcleanborder{
- border: 1px solid #ccc;
- border-top: 0 none;
- }
- div.cbsocialcrowditemcleanfirst{
- border-top: 1px solid #DFDFDF;
- }
- div.cbsocialcrowditemgray{
- background: #F1F1F1;
- }
- div.cbsocialcrowditemgrayborder{
- border: 1px solid #DFDFDF;
- border-top: 0 none;
- }
- div.cbsocialcrowditemgrayfirst{
- border-top: 1px solid #DFDFDF;
- }
- div.cbsocialcrowditemgraygrad{
- background: #F1F1F1;
- background: -ms-linear-gradient(top,#F9F9F9,#ECECEC);
- background: -moz-linear-gradient(top,#F9F9F9,#ECECEC);
- background: -o-linear-gradient(top,#F9F9F9,#ECECEC);
- background: -webkit-gradient(linear,left top,left bottom,from(#F9F9F9),to(#ECECEC));
- background: -webkit-linear-gradient(top,#F9F9F9,#ECECEC);
- background: linear-gradient(top,#F9F9F9,#ECECEC);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#ECECEC',GradientType=0 );
- }
- div.cbsocialcrowditemdark{
- background: #2b2b2b;
- }
- div.cbsocialcrowditemdarkborder{
- border: 1px solid #000;
- }
- div.cbsocialcrowditemdarkfirst{
- border-top: 1px solid #000;
- }
- div.cbsocialcrowditemdarkgrad{
- background: #2b2b2b;
- background: -moz-linear-gradient(top, #2b2b2b 11%, #4d4d4d 100%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(11%,#2b2b2b), color-stop(100%,#4d4d4d));
- background: -webkit-linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
- background: -o-linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
- background: -ms-linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
- background: linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2b2b2b', endColorstr='#4d4d4d',GradientType=0 );
- }
- div.cbsocialcrowditemleft{ float: left; display: inline; width: 32px; height: 32px; padding: 0; margin: 0; margin: 5px 0 5px 5px;}
- div.cbsocialcrowditemright{ float: left; display: inline; min-width: 120px; margin: 5px 5px 5px 0; width: auto;}
- div.cbsocialcrowditem span.cbsocialcrowdicon{ float: left; display: inline; width: 32px; height: 32px;}
- div.cbsocialcrowditem span.cbsocialcrowdctext{ float: left; display: inline-block; margin-left: 5px;}
- div.cbsocialcrowditem span.cbsocialcrowdclabel{ float: left; display: inline-block; margin-left: 5px; clear: both;}
- div.cbsocialcrowditem span.cbsocialcrowdicon a{ width: 48px; height: 48px; display: block; text-indent: -99999px;
- }
- div.cbsocialcrowditemdark, div.cbsocialcrowditemdark a, div.cbsocialcrowditemdark a:hover, div.cbsocialcrowditemdark a:visited{ color: #fff;}
- div.cbsocialcrowditem span.cbsocialcrowdiconfacebook a{
- background:url('../images/facebook.png') left top no-repeat;
- }
- div.cbsocialcrowditem span.cbsocialcrowdicontwitter a{
- background:url('../images/twitter.png') left top no-repeat;
- }
- div.cbsocialcrowditem span.cbsocialcrowdiconyoutube a{
- background:url('../images/youtube.png') left top no-repeat;
- }
- div.cbsocialcrowditem span.cbsocialcrowdiconfeedburner a{
- background:url('../images/feedburner.png') left top no-repeat;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement