Advertisement
manchumahara

Untitled

Jun 26th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. foreach($results as $result){
  2. //var_dump($result['count']);
  3. if($zerohide && $result['count'] == 0){ continue;}
  4.  
  5. $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].';':'').'">';
  6. $output .= '<div class="cbsocialcrowditemleft"><span class="cbsocialcrowdicon cbsocialcrowdicon'.$result['network'].'"><a href="'.$result['link'].'">'.$result['network'].'</a></span></div>';
  7. $output .= '<div class="cbsocialcrowditemright"><span class="cbsocialcrowdctext cbsocialcrowdctext'.$result['network'].'">'.$result['count'].$result['counttext'].'</span>';
  8. $output .= '<span class="cbsocialcrowdclabel cbsocialcrowdlabel'.$result['network'].'"><a href="'.$result['link'].'" target="_blank">'.$result['label'].'</a></span></div>';
  9. $output .= '</div>';
  10. $i++;
  11. }
  12.  
  13.  
  14.  
  15.  
  16. css:
  17.  
  18. .clear{ clear: both;}
  19. .cbsocialcrowdwrapper{
  20.  
  21. }
  22.  
  23. div.cbsocialcrowditem{
  24. margin: 0; padding:0px; float: left; clear: both; width: 100%;
  25. }
  26. div.cbsocialcrowditemclean{
  27.  
  28. }
  29.  
  30. div.cbsocialcrowditemcleanborder{
  31. border: 1px solid #ccc;
  32. border-top: 0 none;
  33. }
  34. div.cbsocialcrowditemcleanfirst{
  35. border-top: 1px solid #DFDFDF;
  36. }
  37. div.cbsocialcrowditemgray{
  38.  
  39. background: #F1F1F1;
  40. }
  41.  
  42. div.cbsocialcrowditemgrayborder{
  43. border: 1px solid #DFDFDF;
  44. border-top: 0 none;
  45. }
  46. div.cbsocialcrowditemgrayfirst{
  47. border-top: 1px solid #DFDFDF;
  48. }
  49.  
  50. div.cbsocialcrowditemgraygrad{
  51. background: #F1F1F1;
  52. background: -ms-linear-gradient(top,#F9F9F9,#ECECEC);
  53. background: -moz-linear-gradient(top,#F9F9F9,#ECECEC);
  54. background: -o-linear-gradient(top,#F9F9F9,#ECECEC);
  55. background: -webkit-gradient(linear,left top,left bottom,from(#F9F9F9),to(#ECECEC));
  56. background: -webkit-linear-gradient(top,#F9F9F9,#ECECEC);
  57. background: linear-gradient(top,#F9F9F9,#ECECEC);
  58. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#ECECEC',GradientType=0 );
  59. }
  60.  
  61. div.cbsocialcrowditemdark{
  62.  
  63. background: #2b2b2b;
  64. }
  65.  
  66. div.cbsocialcrowditemdarkborder{
  67. border: 1px solid #000;
  68. }
  69. div.cbsocialcrowditemdarkfirst{
  70. border-top: 1px solid #000;
  71. }
  72.  
  73. div.cbsocialcrowditemdarkgrad{
  74. background: #2b2b2b;
  75. background: -moz-linear-gradient(top, #2b2b2b 11%, #4d4d4d 100%);
  76. background: -webkit-gradient(linear, left top, left bottom, color-stop(11%,#2b2b2b), color-stop(100%,#4d4d4d));
  77. background: -webkit-linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
  78. background: -o-linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
  79. background: -ms-linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
  80. background: linear-gradient(top, #2b2b2b 11%,#4d4d4d 100%);
  81. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2b2b2b', endColorstr='#4d4d4d',GradientType=0 );
  82. }
  83.  
  84. div.cbsocialcrowditemleft{ float: left; display: inline; width: 32px; height: 32px; padding: 0; margin: 0; margin: 5px 0 5px 5px;}
  85. div.cbsocialcrowditemright{ float: left; display: inline; min-width: 120px; margin: 5px 5px 5px 0; width: auto;}
  86.  
  87. div.cbsocialcrowditem span.cbsocialcrowdicon{ float: left; display: inline; width: 32px; height: 32px;}
  88. div.cbsocialcrowditem span.cbsocialcrowdctext{ float: left; display: inline-block; margin-left: 5px;}
  89. div.cbsocialcrowditem span.cbsocialcrowdclabel{ float: left; display: inline-block; margin-left: 5px; clear: both;}
  90.  
  91. div.cbsocialcrowditem span.cbsocialcrowdicon a{ width: 48px; height: 48px; display: block; text-indent: -99999px;
  92.  
  93. }
  94. div.cbsocialcrowditemdark, div.cbsocialcrowditemdark a, div.cbsocialcrowditemdark a:hover, div.cbsocialcrowditemdark a:visited{ color: #fff;}
  95. div.cbsocialcrowditem span.cbsocialcrowdiconfacebook a{
  96. background:url('../images/facebook.png') left top no-repeat;
  97. }
  98.  
  99. div.cbsocialcrowditem span.cbsocialcrowdicontwitter a{
  100. background:url('../images/twitter.png') left top no-repeat;
  101. }
  102.  
  103. div.cbsocialcrowditem span.cbsocialcrowdiconyoutube a{
  104. background:url('../images/youtube.png') left top no-repeat;
  105. }
  106.  
  107. div.cbsocialcrowditem span.cbsocialcrowdiconfeedburner a{
  108. background:url('../images/feedburner.png') left top no-repeat;
  109. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement