Plugin Directory

Changeset 1705195


Ignore:
Timestamp:
07/30/2017 10:28:53 AM (9 years ago)
Author:
chrisb10
Message:

Added two new features

Location:
expand2017
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • expand2017/trunk/expand2017.php

    r1704749 r1705195  
    44Plugin URI:    https://wordpress.org/plugins/expand2017/
    55Description:   Expand2017 adds new features to Automattic's Twenty Seventeen Theme
    6 Version:       1.1.0
     6Version:       1.2.0
    77Author:        chrisb10
    88Author URI:    https://profiles.wordpress.org/chrisb10/
     
    6464<?php
    6565}
     66
     67// Register User Contact Methods
     68function expandts_custom_user_contact_methods( $user_contact_method ) {
     69
     70    $user_contact_method['facebook'] = __( 'Facebook Username', 'text_domain' );
     71    $user_contact_method['twitter'] = __( 'Twitter Username', 'text_domain' );
     72    $user_contact_method['gplus'] = __( 'Google Plus Username', 'text_domain' );
     73    $user_contact_method['instagram'] = __( 'Instagram Username', 'text_domain' );
     74    $user_contact_method['skype'] = __( 'Skype Username', 'text_domain' );
     75    $user_contact_method['tumblr'] = __( 'Tumblr Username', 'text_domain' );
     76    $user_contact_method['github'] = __( 'GitHub Username', 'text_domain' );
     77    $user_contact_method['slack'] = __( 'Slack Username', 'text_domain' ); 
     78   
     79    return $user_contact_method;
     80
     81}
     82add_filter( 'user_contactmethods', 'expandts_custom_user_contact_methods' );
     83
     84// Register scripts for dynamic menu system
     85
     86function expandts_scripts_haze()
     87{
     88    // Register the script:
     89    wp_register_script( 'expand2017', plugins_url( '/js/expand2017.js', __FILE__ ), array( 'jquery' ) );
     90   
     91    // Enqueue the script:
     92    wp_enqueue_script( 'expand2017' );
     93}
     94add_action( 'wp_enqueue_scripts', 'expandts_scripts_haze' );
  • expand2017/trunk/readme.txt

    r1704749 r1705195  
    44Requires at least: 4.0
    55Tested up to: 4.8
    6 Stable tag: 1.1.0
     6Stable tag: 1.2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html/
     
    1313Expand2017 adds new features to Automattic's Twenty Seventeen Theme, including:<br>
    1414
    15 * Added front page 'sections'<br>
     15* Adds more front page 'sections'<br>
    1616* If a user's search result only returns one post, the user will be redirected to that post<br>
    1717* Changes Twitter @mentions to the user's Twitter profile<br>
    1818* Adds easy organisation to posts in the dashboard by colour coding different post statuses - published, draft, pending review, private, future<br>
     19* Adds 8 new contact methods to user's WordPress profile section<br>
     20* Adds a dynamic menu system<br>
    1921
    2022*Note* - Add your feature requests to the support forum, ready for the next update
    2123
    2224== Installation ==
    23 1. Upload the plugin's folder to the /wp-content/plugins/ directory, alternatively, just install this plugin from the WordPress plugins directory
    24 2. Activate the plugin through the Plugins menu in WordPress
     251. Upload the plugin folder to the /wp-content/plugins/ directory, alternatively, just install this plugin from the WordPress plugin directory
     262. Activate the plugin through the Plugin menu in WordPress
    2527
    2628== Frequently Asked Questions ==
     29= What is a dynamic menu? =
     30If you've set your homepage to a static page with various sections, a dynamic menu would allow readers - once they click a menu item - to jump to the relevant sections of the page without having to manually scroll
     31= How do I set up a dynamic menu? =
     321. Set up your static homepage with the sections you want, e.g. 'About', 'Contact Us'
     332. Using custom links, add the sections you want to your menu. So for the 'About' section, you'd add a custom link with the URL as #about, and for 'Contact Us', you'd add a custom link with the URL as #contact-us
     343. See the results on your homepage
    2735= How can I turn off some features? =
    2836The ability to turn on and off features is coming in the next release
     
    3442* Initial release
    3543= 1.1.0 =
    36 * New Feature: Changing Twitter @mentions to link to their profile
     44* New Feature: Changing Twitter @mentions to a link to their profile
    3745* New Feature: Post status colour coding
    3846* Miscellaneous: Updated readme
     47= 1.2.0 =
     48* New Feature: 8 new contact methods for user profiles
     49* New Feature: Dynamic menu system
     50* Miscellaneous: Updated readme
Note: See TracChangeset for help on using the changeset viewer.