function foundation_sharing_classes() { $share_classes = array('sharing-options', 'clearfix'); $settings = foundation_get_settings(); $locale = wptouch_get_locale(); if (in_array($locale, array('es', 'el', 'pt', 'id_ID', 'ru_RU', 'ar'))) { $share_classes[] = 'long'; } if ($settings->share_location == 'top') { $share_classes[] = 'share-top'; } else { $share_classes[] = 'share-bottom'; } $share_classes[] = 'style-' . $settings->share_colour_scheme; echo implode(' ', apply_filters('foundation_share_classes', $share_classes)); }
<?php global $wptouch_pro; ?> <div id="user-agent-list"> <?php if (wptouch_get_locale() == 'fr_FR') { ?> <?php _e('WPtouch Pro will be active when any of the following user-agents or user-agent combinations are matched', 'wptouch-pro'); ?> : <?php } else { ?> <?php _e('WPtouch Pro will be active when any of the following user-agents or user-agent combinations are matched', 'wptouch-pro'); ?> : <?php } ?> <br /> <span class="agents"> <?php $agents = $wptouch_pro->get_supported_user_agents(); $new_agents = array(); foreach ($agents as $agent) { if (is_array($agent)) { $new_agents[] = $agent[0] . ' & ' . $agent[1];