Powerkit Wordpress Plugin - Rating, Reviews, Demo & Download

Powerkit Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Social media integration, galleries, image optimization, shortcodes, widgets and other essentials components to supercharge your WordPress site.

Facebook

Features

  • Facebook Page Widget.
  • Facebook Page Shortcode.
  • Facebook Comments (Before / After / Replace WordPress Comments).

    Shortcode

    [powerkit_facebook_fanpage href=”https://www.facebook.com/envato” hide_cover=”false” show_facepile=”false” show_posts=”false” small_header=”false”]

Attr href – Facebook Page URL. Required.

Attr hide_cover – Hide Cover. Default false.

Attr show_facepile – Show Facepile. Default false.

Attr show_posts – Show Posts Default false.

Attr small_header – Small Header. Default false.

Facebook Comments Settings

Settings page: Settings → Discussion → Facebook Comments

Register Comments Locations

function custom_register_locations( $locations = array() ) {
    $locations['your_location_slug'] = array(
        'name'     => 'Your Location',
        'action'   => 'ACTION_NAME',
        'priority' => 10, // Optional: Priority for hook action. Default: 10.
    );

    return $locations;
}
add_filter( 'powerkit_facebook_comments_location', 'custom_register_locations' );

Remove Load SDK

add_action( 'wp_loaded', function() {
    remove_action( 'wp_footer', 'powerkit_facebook_load_sdk' );
} );<h3>Instagram</h3>

Features

  • Instagram Widget.
  • Instagram Shortcode.
    • AMP Support.

Shortcode

[powerkit_instagram]

Extended Shortcode

[powerkit_instagram number="4" columns="1" size="small" target="_blank" cache_time="60" template="default"]

Attr number – Number of photos. Default 4.

Attr columns – Number of columns. Default 1.

Attr size – Photo size (thumbnail, small, large). Default small.

Attr size – Open links in (_blank, _self). Default _blank.

Attr template – Template names. Default default.

Attr cache_time – Cache Time (minutes). Default 60.

Filter for Cache Time

/**
 * Your Instagram Cache Time
 *
 * @param int $time The Cache Time (minutes).
 */
function  your_instagram_cache_time( $time ) {
    return 120;
}
add_filter( 'powerkit_instagram_cache_time', 'your_instagram_cache_time' );

Print recent photos Instagram

$params =  array(
    'instagram_token'  =>  'YOUR TOKEN', // Instagram token. Optional (default get Settings -> Connect-> Instagram Token ).
    'number'           =>  4,            // Number of photos.
    'size'             =>  'small',      // Photo size (thumbnail, small, large).
    'target'           =>  '_blank',     // Open links in (_blank, _self).
    'template'         =>  'default',    // The name template.
    'cache_time'       =>  60,           // Cache Time (minutes).
);

$cache_name = 'powerkit_instagram_recent';

/**
 * Get recent photos Instagram
 *
 * @param  array $params Recent options.
 * @param  string $cache_name The cache name. Optional.
 */
powerkit_instagram_get_recent( $params, $cache_name );

Register Template

/**
 * Your Template
 *
 * @param  array $templates The templates.
 */
function  your_register_instagram_template( $templates =  array() ) {
    $templates['your_template_slug'] =  array(
        'name'  =>  'Your template name',
        'func'  =>  'your_function_name',
    );

    return $templates;
}
add_filter( 'powerkit_instagram_templates', 'your_register_instagram_template' );
/**
 * Your Callback Function Template
 *
 * @param  array $item The Instagram item.
 * @param  array $params The user parameters.
 */
function  your_function_name( $item, $params ) {
    ?>

<a class="powerkit-instagram-link" href="” target=””><img src="” class=”” alt=”” srcset=”” sizes=””>

    <?php
}<h3>Pinterest</h3>

Features
– Pinterest Board Widget
– Pinterest “Pin It” Button

Pin It Settings

Settings page: Settings → Media → Pin It Button for Images

Filter for Exclude Selectors

/**
 * PinIt disable
 *
 * @param  string $selectors List selectors.
 */
function your_pinit_disable( $selectors ) {
    if ( $selectors ) {
        $selectors = ', .your-image';
    } else {
        $selectors = '.your-image';
    }
    return $selectors;
}
add_filter( 'powerkit_pinit_exclude_selectors', 'your_pinit_disable' );<h3>Twitter</h3>

Features

  • Twitter Widget.
  • Twitter Shortcode.
  • AMP Support.

    Shortcode

    [powerkit_twitter_feed username=”envato” number=”5″ template=”default” header=”true” button=”true” retweets=”false” replies=”false”]

Attr username – Twitter Username. Required.

Attr number – Number of Tweets. Default 5.

Attr template – Template. Default default.

Attr header – Display header. Default true.

Attr button – Display follow button. Default true.

Attr retweets – Include retweets. Default false.

Attr replies – Include replies. Default false.

Filter for Cache Time

/**
 * Your Instagram Cache Time
 *
 * @param int $time The Cache Time (minutes).
 */
function  your_twitter_cache_time( $time ) {
    return 120;
}
add_filter( 'powerkit_twitter_cache_timeout', 'your_twitter_cache_time' );

Register Template

/**
 * Your Callback Function Template
 *
 * @param  array $twitter Array of twitter.
 * @param  array $params Array of params.
 */
function your_twitter_register_template( $twitter, $params ) {
  ?>
  // Your Template.
  <?php
}
/**
 * Filter Your Register Templates
 *
 *
 * @param  array $templates List of Templates.
 */
function your_twitter_template( $templates =  array() ) {
    $templates['your_template'] =  array(
        'name'  =>  'Your template',
        'func'  =>  'your_twitter_register_template',
    );
    return $templates;
}
add_filter( 'powerkit_twitter_templates', 'your_twitter_template' );

Share Buttons

Features

  • Share Buttons Shortcode.
  • Support for popular social networks ( Facebook, Twitter, Pinterest, Mail, Google Plus, LinkedIn, StumbleUpon, Pocket, WhatsApp, Facebook Messenger, Viber, VK, Telegram, Line, Reddit ).
  • Smart Caching intervals for share buttons.
  • Smart Counter Mode ( PHP / REST / PHP + REST ).
  • Display total and individual share counts.
  • Multiple display options such as before/after post content share buttons.
  • Supports Color Schemes.
  • AMP Support.

    Shortcode

    [powerkit_share_buttons accounts=”facebook, twitter, pinterest” total=”false” labels=”false” counts=”false” layout=”default” scheme=”default”]

Attr accounts – Display Social Accounts (facebook, fb-messenger, twitter, pinterest, googleplus, linkedin, stumbleupon, pocket, whatsapp, viber, vkontakte, telegram, line, reddit, mail). Required.

Attr total – Display Total Share Count. Default false.

Attr labels – Display Labels. Default false.

Attr counts – Display Counts. Default false.

Attr layout – Layout. Default default.

Attr scheme – Color Scheme. Default default.

Share Pinterest Cover

If you want to share a specific image, add the class powerkit-pinterest-cover.

Print Shares Buttons

$accounts = array( 'facebook', 'fb-messenger', 'twitter', 'pinterest', 'googleplus', 'linkedin', 'stumbleupon', 'pocket', 'whatsapp', 'viber', 'vkontakte', 'telegram', 'line', 'reddit', 'mail' );

/**
 * Get Shares
 *
 * @param  array $accounts Accounts List.
 * @param  bool  $total   Total Count.                     Default `true`.
 * @param  bool  $icons   Show Icons.                      Default `true`.
 * @param  bool  $titles  Show Title.                      Default `false`.
 * @param  bool  $labels  Show labels.                     Default `true`.
 * @param  bool  $counts  Show Counts.                     Default `true`.
 * @param  string $mode   Counter mode (php, rest, mixed). Default `mixed`.
 * @param  string $count_location Vars (inside, outside).  Default `inside`.
 * @param  string $layout Layout.                          Default `default`.
 * @param  string $scheme Color Sheme.                     Default `default`.
 * @param  string $class  Additional class.                Default `null`.
 * @param  string $url    Custom URL.                      Default `null`.
 */
powerkit_share_buttons( $accounts, $total, $labels, $counts, $count_location, $mode, $layout , $scheme, null );

Print Shares Buttons in Location

// Example 'after-content' location. Also you can specify your custom location.
$location =  'after-content';

/**
 * Print Shares in Location
 *
 * @param  string $location Shares location. Default `after-content`.
 * @param  string $url      Custom URL.      Default `null`.
 */
powerkit_share_buttons_location( $location, $url );

Get Share Count

/**
 * Get Share Count
 *
 * @param  string     $account Account slug. Required.
 * @param  string|int $post_id Post ID.      Default `false`.
 * @param  string     $url     Custom URL.   Default `null`.
 */
powerkit_share_buttons_get_count( $account, $post_id, $url );

Get Total Count

/**
 * Get Total Count
 *
 * @param  array      $accounts Accounts List. Required.
 * @param  string|int $post_id  Post ID.       Default `false`.
 * @param  string     $url      Custom URL.    Default `null`.
 * @param  bool       $cached   Only cached.   Default `false`.
 */
powerkit_share_buttons_get_total_count( $accounts, $post_id, $url, $cached );

Register Template

/**
 * Filter Register Your Locations
 *
 * @param  array $locations List of Locations.
 */
function share_buttons_your_location( $locations =  array() ) {

    $locations['your_location_slug'] =  array(
        'shares'    =>   array( 'facebook', 'twitter', 'pinterest', 'mail' ), // Share buttons default.
        'name'      =>  'Your Location',      // Your location name. Required.
        'location'  =>  'your_location_slug', // Your slug. Required.
        'mode'      =>  'mixed',              // Counter mode (php, rest, mixed)
        'before'    =>  '',                   // Before HTML.
        'after'     =>  '',                   // After HTML.
        'display'   =>  true,                 // Display share buttons default.
        'meta'      =>  array(
            'icons'   =>  true,
            'titles'  =>  false,
            'labels'  =>  true,
        ),
        // Display only the specified layouts and color schemes
        'fields'    => array(
            'layouts' => array(
                'default',
            ),
            'schemes' => array(
                'default',
            ),
            count_location' => array( 'inside', 'outside'),
        ),
        'layout'         => 'default', // Layout default.
        'scheme'         => 'default', // Color sheme default.
        'count_location' => 'inside',   // Count location (inside, outside).
    );

    return $locations;
}
add_filter( 'powerkit_share_buttons_locations', 'share_buttons_your_location' );

Register Layout

/**
* Custom Layout
*
* @param  array $layouts Available layouts.
*/
function  share_buttons_your_layouts( $layouts =  array() ) {

    $layouts['your_layout'] =  array(
        'name'  => 'Your Scheme',
    );

    return $layouts;

}
add_filter( 'powerkit_share_buttons_layouts', 'share_buttons_your_layouts' );

Register Color Scheme

/**
* Custom Color Schemes
*
* @param  array $schemes Available color schemes.
*/
function  share_buttons_your_color_schemes( $schemes =  array() ) {

    $schemes['your_color_scheme'] =  array(
        'name'  => 'Your Scheme',
    );

    return $schemes;

}
add_filter( 'powerkit_share_buttons_color_schemes', 'share_buttons_your_color_schemes' );<h3>Social Links</h3>

Features

  • Social Links Widget.
  • Social Links Shortcode.
  • Support for popular social networks ( Facebook, Twitter, Instagram, Pinterest, Google Plus, YouTube, Vimeo, SoundCloud, Spotify, Dribbble, Behance, GitHub, VK, LinkedIn, Tumblr, Bloglovin, RSS ).
  • Counter Mode ( PHP / REST / PHP + REST ).
  • Supports Co-Authors Plus plugin (additional user fields).
  • Supports Templates.
  • AMP Support.

    Shortcode

    [powerkit_social_links labels=”true” titles=”true” counts=”true” template=”default” scheme=”default”]

Attr labels – Display Labels. Default true.

Attr titles – Display Titles. Default true.

Attr counts – Display Counts. Default true.

Attr template – Template name. Default default.

Attr scheme – Color scheme. Default default.

Print Social Links

/**
 * Print Social Links
 *
 * @param  bool   $labels   Display labels.
 * @param  bool   $titles   Display titles.
 * @param  bool   $counts   Display counts.
 * @param  string $template Template links.
 * @param  string $sheme    Color Sheme.
 * @param  string $mode     Counter mode.
 * @param  mixed  $limit    Limit the number of links.
 */
powerkit_social_links( $labels =  true, $titles =  true, $counts =  true, $template =  'default', $sheme =  'default', $mode =  'mixed', $limit =  false );

Print Author Social Links

/**
 * Author Social Links
 *
 * @param  mixed  $author The author id or Co-Author object. Required.
 * @param  string $class  Class name of the wrapping <div>.  Default `default`.
 * @param  bool   $title  Title of the link.                 Default `false`.
 */
powerkit_author_social_links( $author, $class, $title );

Filter for global Counter Mode

/**
 * Your Global Social Links Counter Mode
 *
 * @param string $mode The counter mode.
 */
function  your_global_social_links_counter_mode( $mode ) {
    return 'rest';
}
add_filter( 'powerkit_social_links_counter_mode', 'your_global_social_links_counter_mode' );

Filter for Cache Time

/**
 * Your Social Links Cache Time
 *
 * @param int $time The Cache Time (minutes).
 */
function  your_social_links_cache_time( $time ) {
    return 120;
}
add_filter( 'powerkit_social_links_cache_timeout', 'your_social_links_cache_time' );<h3>Opt-in Forms</h3>

Features

  • Subscribe form Widget.
  • Subscribe Shortcode.

Shortcode

[powerkit_subscription_form]

Extended Shortcode

[powerkit_subscription_form title="Subscribe Title" text="Subscribe Message" list_id="default"]

Attr title – Title. Default none.

Attr text – Subscribe Message. Default none.

Attr list_id – MailChimp list id. Default default.

Featured Posts Widget

Register Template

    /**
     * Your Default Template
     *
     * @param  array $templates The templates.
     */
    function  your_register_posts_template_default( $templates =  array() ) {
        $templates =  array(
            'default' => array(
                'name'    => 'Default',
                'func'    => 'your_function_name',
            ),
        );
        return $templates;
    }
    add_filter( 'powerkit_featured_posts_templates', 'your_register_posts_template_default' );
    /**
     * Your New Template
     *
     * @param  array $templates The templates.
     */
    function  your_register_posts_template_new( $templates =  array() ) {
        $templates['your_slug'] =  array(
            'name'    => 'Your New Template',
            'func'    => 'your_function_name',
        );
        return $templates;
    }
    add_filter( 'powerkit_featured_posts_templates', 'your_register_posts_template_new' );
    /**
     * Your Callback Function Template
     *
     * @param  array $posts    Array of posts.
     * @param  array $params   Array of params.
     * @param  array $instance Widget instance.
     */
    function  your_function_name( $posts, $params, $instance ) {
        ?>

<article >

<a href="” class=”post-thumbnail”>

current_post + 1 ); ?>

< class=”media-heading entry-title”>
<a href="”>
>

    <?php
}<h3>Additional Features</h3>

Remove Default Styles

add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'powerkit' );
    wp_dequeue_style( 'powerkit-basic-shortcodes' );
    wp_dequeue_style( 'powerkit-social-links' );
    wp_dequeue_style( 'powerkit-share-buttons' );
    wp_dequeue_style( 'powerkit-facebook' );
    wp_dequeue_style( 'powerkit-instagram' );
    wp_dequeue_style( 'powerkit-pinterest' );
    wp_dequeue_style( 'powerkit-twitter' );
    wp_dequeue_style( 'powerkit-opt-in-forms' );
    wp_dequeue_style( 'powerkit-widget-author' );
    wp_dequeue_style( 'powerkit-widget-contributors' );
    wp_dequeue_style( 'powerkit-widget-posts' );
} );

Screenshots

No screenshots provided


Reviews & Comments