Plugin Directory

Changeset 1065841


Ignore:
Timestamp:
01/12/2015 12:15:09 PM (11 years ago)
Author:
2kblater.com
Message:

1.1.3

Location:
2kb-amazon-affiliates-store/trunk
Files:
8 added
9 edited

Legend:

Unmodified
Added
Removed
  • 2kb-amazon-affiliates-store/trunk/KbAmazonController.php

    r1061624 r1065841  
    490490        return new KbView($data);
    491491    }
    492 
    493     protected function getActions() {
     492   
     493    public function infoAction()
     494    {
     495        $data = array();
     496       
     497        return new KbView($data);
     498    }
     499
     500        protected function getActions() {
    494501        return array(
    495502            array(
     
    547554                'label' => __('Support')
    548555            ),
    549 //            array(
    550 //                'action' => 'info',
    551 //                'icon' => 'glyphicon-info-sign',
    552 //                'label' => __('Info & FAQ')
    553 //            ),
     556            array(
     557                'action' => 'info',
     558                'icon' => 'glyphicon glyphicon-folder-open',
     559                'label' => __('Docs & FAQ')
     560            ),
    554561            array(
    555562                'action' => 'version',
  • 2kb-amazon-affiliates-store/trunk/KbAmazonStore.php

    r1065234 r1065841  
    196196    public function getCheckoutPage()
    197197    {
     198        $pageIdOption = $this->getOption('CheckoutPage');
     199        if ($pageIdOption) {
     200            $page = get_page($pageIdOption);
     201            if ($page) {
     202                return $page;
     203            }
     204        }
    198205        $args = array(
    199206            'meta_key' => 'KbAmzCheckoutPage',
     
    213220            ));
    214221            add_post_meta($pageId, 'KbAmzCheckoutPage', '1');
     222            $this->setOption('CheckoutPage', $pageId);
     223        }
     224        if (!$pageIdOption) {
     225            $this->setOption('CheckoutPage', $page->ID);
    215226        }
    216227        return $page;
     
    687698        && $lowest && $lowest != $price) {
    688699            return sprintf(
    689                 '<del>%s</del><ins>%s</ins>',
     700                '<del>%s</del>&nbsp;<ins>%s</ins>',
    690701                $price,
    691702                $lowest
     
    697708            && $listPrice != $price) {
    698709                return sprintf(
    699                     '<del>%s</del><ins>%s</ins>',
     710                    '<del>%s</del>&nbsp;<ins>%s</ins>',
    700711                    $listPrice,
    701712                    $price
  • 2kb-amazon-affiliates-store/trunk/KbTemplate.php

    r975024 r1065841  
    9292    public function initDefaultAdminScripts()
    9393    {
     94        wp_enqueue_style(
     95            'KbAmzAdminDefaultCss',
     96            getKbPluginUrl() . '/template/admin/css/default.css'
     97        );
     98       
    9499        if (is_admin() && (!isset($_GET['page']) || $_GET['page'] != 'kbAmz')) {
    95100            return;
    96101        }
    97102       
    98         wp_enqueue_style(
    99             'KbAmzAdminDefaultCss',
    100             getKbPluginUrl() . '/template/admin/css/default.css'
    101         );
    102 
    103103        wp_enqueue_script(
    104104            'KbAmzAdminJqueryUI',
  • 2kb-amazon-affiliates-store/trunk/plugin.php

    r1065245 r1065841  
    44 * Plugin URI: http://www.2kblater.com/?p=8318
    55 * Description: Amazon Affiliate Store Plugin With Cart, Checkout, Custom Themes. Easy to manage and setup. Sell wide range of physical and digital products imported from Amazon Affiliate API using 90 days cookie reference. This plugin is released with GPL2 license.
    6  * Version: 1.1.2
     6 * Version: 1.1.3
    77 * Author: 2kblater.com
    88 * Author URI: http://www.2kblater.com
     
    1616}
    1717
    18 define('KbAmazonVersion', '1.1.2');
    19 define('KbAmazonVersionNumber', 112);
     18define('KbAmazonVersion', '1.1.3');
     19define('KbAmazonVersionNumber', 113);
    2020define('KbAmazonStoreFolderName',  pathinfo(dirname(__FILE__), PATHINFO_FILENAME));
    2121define('KbAmazonStorePluginPath',  dirname(__FILE__) . '/');
  • 2kb-amazon-affiliates-store/trunk/readme.txt

    r1065234 r1065841  
    22Tags: amazon, affiliate, associate, online store, selling products
    33Requires at least: 4.0
    4 Tested up to: 4.0
    5 Stable tag: 1.1.0
     4Tested up to: 4.1
     5Stable tag: 1.1.3
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3636
    3737== Changelog ==
     38= 1.1.3 =
     39Fixed bug for creating multiple checkout pages.
     40Fixed bug with listing price option. Now showing listing price and discounted price.
     41Admin widgets css update.
     42Documentation added.
    3843= 1.1.2 =
    3944Listing price add when 'Show the original price of the product.' options is enabled.
  • 2kb-amazon-affiliates-store/trunk/store_widgets.php

    r1065234 r1065841  
    4040        <p>
    4141            <label for="<?php echo $this->get_field_id('meta_key'); ?>"><?php _e('Meta Key:'); ?></label>
    42             <select id="<?php echo $this->get_field_id('meta_key'); ?>" name="<?php echo $this->get_field_name('meta_key'); ?>" type="text" value="<?php echo esc_attr($metaKey); ?>" style="max-width: 100%;">
     42            <select id="<?php echo $this->get_field_id('meta_key'); ?>" name="<?php echo $this->get_field_name('meta_key'); ?>" type="text" value="<?php echo esc_attr($metaKey); ?>" style="width: 100%;">
    4343                <?php foreach (getKbAmz()->getAttributes() as $name => $type) : ?>
    4444                <option value="<?php echo $name; ?>"<?php echo $metaKey == $name ? 'selected="selected"' : ''?>><?php echo $type; ?></option>
  • 2kb-amazon-affiliates-store/trunk/template/admin/css/default.css

    r1061624 r1065841  
    6565    width: 100%;
    6666}
    67 #kb-amz-version ul, #kb-amz-version li{
     67#kb-amz-version ul, #kb-amz-version li, .infoAction #kb-amz-content li{
    6868    list-style-type: disc;
    6969}
    70 #kb-amz-version ul{
     70#kb-amz-version ul, .infoAction #kb-amz-content ul{
    7171    padding-left: 15px;
    7272}
     
    7979    margin-bottom: 5px;
    8080}
     81.info-items a{
     82    display: block;
     83}
  • 2kb-amazon-affiliates-store/trunk/template/admin/version.phtml

    r1065234 r1065841  
    11<div class="row" id="kb-amz-version">
    22    <div class="col-sm-12">
     3        <h4>1.1.3</h4>
     4        <ul style="list-style-type: disc;">
     5            <li>Fixed bug for creating multiple checkout pages.</li>
     6            <li>Fixed bug with listing price option. Now showing listing price and discounted price.</li>
     7            <li>Admin widgets css update.</li>
     8            <li><a href="?page=kbAmz&kbAction=info">Documentation</a> added.</li>
     9        </ul>
    310        <h4>1.1.2</h4>
    411        <ul style="list-style-type: disc;">
  • 2kb-amazon-affiliates-store/trunk/template/default/css/style.css

    r1004924 r1065841  
    184184    overflow: hidden;
    185185    max-height: 100%;
     186    width: 100%;
    186187}
    187188.kb-amz-item-list-content{
     
    209210}
    210211.kb-amz-item-price del{
    211     font-size:0.60em;
     212    font-size:0.70em;
    212213    opacity: 0.50;
    213214    text-decoration: line-through;
Note: See TracChangeset for help on using the changeset viewer.