Making WordPress.org

Changeset 13030


Ignore:
Timestamp:
12/07/2023 09:23:31 PM (10 months ago)
Author:
coffee2code
Message:

Browse Happy: Add Tumblr share logo and update Twitter logo.

Props iandunn.
See https://github.com/WordPress/browsehappy/pull/67.
Sync with git WordPress/browsehappy@fd39f8b.

Location:
sites/trunk/browsehappy.com/public_html
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/browsehappy.com/public_html/index.php

    r12500 r13030  
    6767                <nav>
    6868                    <ul>
    69                         <li class="twitter"><a onclick="window.open(this.href, 'twittershare', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,height=250,width=500'); return false;" href="https://twitter.com/share?url=<?php echo urlencode( home_url( '/' ) ); ?>&amp;text=<?php echo urlencode( __( 'Browse Happy: Online. Worry-free. Upgrade your browser today!', 'browsehappy' ) ); ?>" title="<?php esc_attr_e( 'Share on Twitter', 'browsehappy' ); ?>">Twitter</a></li>
     69                        <li class="tumblr">
     70                            <a
     71                                href="https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=&url=<?php echo urlencode( home_url( '/' ) ); ?>&posttype=link&title=Browse+Happy&content=<?php echo urlencode( home_url( '/' ) ); ?>"
     72                                title="<?php esc_attr_e( 'Share on Tumblr', 'browsehappy' ); ?>"
     73                            >
     74                                Tumblr
     75                            </a>
     76                        </li>
     77
     78                        <li class="twitter">
     79                            <a
     80                                onclick="window.open(this.href, 'twittershare', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,height=250,width=500'); return false;"
     81                                href="https://twitter.com/share?url=<?php echo urlencode( home_url( '/' ) ); ?>&amp;text=<?php echo urlencode( __( 'Browse Happy: Online. Worry-free. Upgrade your browser today!', 'browsehappy' ) ); ?>"
     82                                title="<?php esc_attr_e( 'Share on X (Twitter)', 'browsehappy' ); ?>"
     83                            >
     84                                X
     85                            </a>
     86                        </li>
    7087<?php
    7188$redirect_uri = home_url( '/' );
  • sites/trunk/browsehappy.com/public_html/style.css

    r13029 r13030  
    573573}
    574574
     575#share nav li.tumblr {
     576    width: 21px;
     577    margin-right: 6px;
     578}
     579
     580#share nav li.tumblr a {
     581    background-position: -362px -135px;
     582}
     583
    575584#share nav li.twitter a {
    576     background-position: -300px -135px;
     585    background-position: -300px -134px;
    577586}
    578587
Note: See TracChangeset for help on using the changeset viewer.