Skip to content

Commit

Permalink
chore(readme.txt): Bump version to 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Trujillo committed Oct 26, 2016
1 parent 9798423 commit 70d127d
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
=== Snagshout ===
Contributors: snagshout
Tags: e-commerce, ecommerce, products, widget
Requires at least: 4.1.0
Tested up to: 4.6.1
Stable tags: 0.2.4
License: Apache 2.0
License URI: https://www.apache.org/licenses/LICENSE-2.0.txt

The Snagshout WordPress plugin allows you to embed deals from the Snagshout syndication network, directly as a widget on your blog.

== Description ==

The Snagshout WordPress plugin allows you to embed deals from the Snagshout syndication network, directly as a widget on your blog.

In order to use this plugin, you will need to register as a Snagshout partner.
You can do this by contacting Snagshout's customer support. Once you have an
account, you will be provided with a public/private key pair that can be set in
the plugin's administration panel.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Settings->Snagshout screen to configure the plugin by providing your
authentication crednetials.
1. Go to Appearance->Widgets to begin adding and customizing deals widgets.

63 changes: 63 additions & 0 deletions src/snagshout.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

/**
* Copyright 2016 Seller Labs LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @package Snagshout
* @version 0.2.4
*
* Plugin Name: Snagshout
* Plugin URI: https://www.snagshout.com
* Description: The Snagshout plugin allows you to easily embed syndicated
* deals into your Wordpress blog.
* Author: Seller Labs LLC
* Version: 0.2.4
* Author URI: https://www.sellerlabs.com
*/

require_once 'admin/settings.php';
require_once 'core/hashing.php';
require_once 'core/http.php';
require_once 'core/utils.php';
require_once 'core/view-engine.php';
require_once 'widget/snagshout-widget-class.php';

/**
* Registers the main widget.
*/
function snagshout_register_widgets() {
register_widget(SnagshoutWidget::class);
}

/**
* Renders stylesheets for the visual appearance of the widget.
*/
function snagshout_styles() {
echo snagshout_render_view('styles');
}

/**
* Renders script tags for interactive functionality of the plugin.
*/
function snagshout_widget_javascript() {
echo snagshout_render_view('widget-js');
}

// Here we register all the action hooks used by the plugin.
add_action('admin_menu', 'snagshout_menu');
add_action('admin_init', 'snagshout_register_settings');
add_action('widgets_init', 'snagshout_register_widgets');
add_action('wp_head', 'snagshout_styles');
add_action('wp_footer', 'snagshout_widget_javascript');

0 comments on commit 70d127d

Please sign in to comment.