Reimplement social icons function and add dw
This commit is contained in:
parent
9e41b50382
commit
127907e9f5
BIN
core/icons/foursquare-icon.png
Normal file
BIN
core/icons/foursquare-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
@ -60,11 +60,11 @@ function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword,
|
||||
}
|
||||
$currreleasetag=$releaseTag[$medium.'-'.$milestone.'-'.$lang.'-'.$currarch];
|
||||
$ret = '';
|
||||
if ($lang != "it") {
|
||||
$downloadmirror = 'http://cdn.openmamba.org/pub/openmamba/media';
|
||||
} else {
|
||||
$downloadmirror = '/media';
|
||||
}
|
||||
# if ($lang != "it") {
|
||||
$downloadmirror = 'http://cdn.openmamba.org/pub/openmamba/media';
|
||||
# } else {
|
||||
# $downloadmirror = '/media';
|
||||
# }
|
||||
if ("$currreleasetag" != "") {
|
||||
$ret .= "<table style='border:0;margin:0;margin-bottom:5px;'><tr><td style='vertical-align:middle;padding:4px;border:0;margin:0;width:20px;align:center;'><img src=/wp-content/themes/openmamba/download.png /></td>";
|
||||
$ret .= "<td style='border:0;margin:0;padding:4px;'><h5 style='margin:1px;'><a href=\"" . $downloadmirror. "/$milestone/$medium/$lang/".
|
||||
@ -266,3 +266,36 @@ function hook_cookielaw()
|
||||
"policyText: '" . $policytext . "',policyURL: '" . $policyurl . "' }); });</script>\n";
|
||||
echo $output;
|
||||
}
|
||||
|
||||
/*function responsive_get_social_icons() {
|
||||
|
||||
$responsive_options = responsive_get_options();
|
||||
|
||||
$sites = array (
|
||||
'foursquare' => __( 'foursquare', 'responsive' ),
|
||||
'twitter' => __( 'Twitter', 'responsive' ),
|
||||
'facebook' => __( 'Facebook', 'responsive' ),
|
||||
'linkedin' => __( 'LinkedIn', 'responsive' ),
|
||||
'youtube' => __( 'YouTube', 'responsive' ),
|
||||
'stumbleupon' => __( 'StumbleUpon', 'responsive' ),
|
||||
'rss' => __( 'RSS Feed', 'responsive' ),
|
||||
'googleplus' => __( 'Google+', 'responsive' ),
|
||||
'instagram' => __( 'Instagram', 'responsive' ),
|
||||
'pinterest' => __( 'Pinterest', 'responsive' ),
|
||||
'yelp' => __( 'Yelp!', 'responsive' ),
|
||||
'vimeo' => __( 'Vimeo', 'responsive' ),
|
||||
);
|
||||
|
||||
$html = '<ul class="social-icons">';
|
||||
foreach( $sites as $key => $value ) {
|
||||
if ( !empty( $responsive_options[$key . '_uid'] ) ) {
|
||||
$html .= '<li class="' . esc_attr( $key ) . '-icon"><a href="' . $responsive_options[$key . '_uid'] . '">' . '<img src="' . responsive_child_uri( '/core/icons/' . esc_attr( $key ) . '-icon.png' ) . '" width="24" height="24" alt="' . esc_html( $value ) . '">' . '</a></li>';
|
||||
}
|
||||
}
|
||||
$html .= '</ul><!-- .social-icons -->';
|
||||
|
||||
return $html;
|
||||
|
||||
}
|
||||
|
||||
*/
|
Loading…
Reference in New Issue
Block a user