Beispiel #1
0
 public static function getShareButtonLayout($provider, $layout, $addQuotes = '')
 {
     $layoutParams = '';
     if ($layout == 'box_count') {
         if ($provider == 'facebook') {
             $layoutParams = SCEasyTags::quoteParam($addQuotes, 'layout', 'box_count');
         } else {
             if ($provider == 'google') {
                 $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-annotation', 'bubble');
                 $layoutParams .= SCEasyTags::quoteParam($addQuotes, 'data-size', 'tall');
             } else {
                 if ($provider == 'twitter') {
                     $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-count', 'vertical');
                 } else {
                     if ($provider == 'linkedin') {
                         $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-counter', 'top');
                     } else {
                         if ($provider == 'pinterest') {
                             $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-pin-config', 'above');
                         }
                     }
                 }
             }
         }
     } else {
         if ($layout == 'button_count') {
             if ($provider == 'facebook') {
                 $layoutParams = SCEasyTags::quoteParam($addQuotes, 'layout', 'button_count');
             } else {
                 if ($provider == 'google') {
                     $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-annotation', 'bubble');
                     $layoutParams .= SCEasyTags::quoteParam($addQuotes, 'data-size', 'medium');
                 } else {
                     if ($provider == 'twitter') {
                         $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-count', 'horizontal');
                     } else {
                         if ($provider == 'linkedin') {
                             $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-counter', 'right');
                         } else {
                             if ($provider == 'pinterest') {
                                 $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-pin-config', 'beside');
                             }
                         }
                     }
                 }
             }
         } else {
             if ($provider == 'facebook') {
                 if ($layout == 'standard') {
                     $layoutParams = SCEasyTags::quoteParam($addQuotes, 'layout', 'standard');
                     $layoutParams .= SCEasyTags::quoteParam($addQuotes, 'width', '50');
                     $layoutParams .= SCEasyTags::quoteParam($addQuotes, 'show_faces', 'false');
                 } else {
                     if ($layout == 'button') {
                         $layoutParams = SCEasyTags::quoteParam($addQuotes, 'layout', 'button');
                     }
                 }
             } else {
                 if ($provider == 'google') {
                     $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-annotation', 'none');
                     $layoutParams .= SCEasyTags::quoteParam($addQuotes, 'data-size', 'standard');
                 } else {
                     if ($provider == 'twitter') {
                         $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-count', 'none');
                     } else {
                         if ($provider == 'linkedin') {
                             $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-counter', 'no_count');
                         } else {
                             if ($provider == 'pinterest') {
                                 $layoutParams = SCEasyTags::quoteParam($addQuotes, 'data-pin-config', 'none');
                             }
                         }
                     }
                 }
             }
         }
     }
     return $layoutParams;
 }