Plugin Directory

Changeset 1514983


Ignore:
Timestamp:
10/14/2016 05:56:36 PM (9 years ago)
Author:
ralva83702
Message:

Added templates for theme.co X framework

Location:
swiftpost
Files:
56 added
2 edited

Legend:

Unmodified
Added
Removed
  • swiftpost/trunk/readme.txt

    r1503887 r1514983  
    55Requires at least: 4.0
    66Tested up to: 4.6.1
    7 Stable tag: 0.5.2
     7Stable tag: 0.5.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    186186= 0.5.2 =
    187187-added registration for free account on the dashboard page.
     188= 0.5.3 =
     189-added built in templates for theme.co X framework
    188190
    189191== Upgrade Notice ==
     
    194196
    195197= 0.5.0 =
    196 
    197198Brand new admin interface, much better reporting and more useful dashboard
    198199
    199200= 0.5.1 =
    200 
    201201Added license level and booked impressions view on the dashbaord so you can check how many are left to book in the current month for a given license level
     202
     203= 0.5.3 =
  • swiftpost/trunk/swiftpost.php

    r1506183 r1514983  
    66Author URI: https://swiftimpressions.com
    77Description: SwiftPost, native advertising for Wordpress
    8 Version: 0.5.2
     8Version: 0.5.3
    99License: GPLv2
    1010*/
     
    704704    $swiftpost_config = get_option('swiftpost_config');
    705705    $swiftpost_license = get_option('swiftpost_license');
     706    $X = false;
     707    if( ($current_theme = get_option('current_theme')) && ($current_theme == "X – Child Theme" || $current_theme == "X") ) $X = true;
    706708   
    707709    if (isset($_POST['swiftpost_settings_apply'])) {
     
    808810            <div class="swift-admin-box-inner ">
    809811                <h2 class="swift-box-title">Using Swift Post on Your Site</h2>
    810                 <p>Please pick one of the following options: 1) a Standard Swift Post Theme, or 2) a Custom Content Option.</p>
    811                 <p>
    812                     <label><input type=radio name="swiftpost-template" value="swiftpost-teaser.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-teaser.php" ? "checked" : "" ; ?>> Image on top, content excerpt below</label> <br />
    813                     <label><input type=radio name="swiftpost-template" value="swiftpost-full.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"  <?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-full.php" ? "checked" : "" ; ?>>Image on top, full content below </label><br />
    814                    
    815                     <label><input type=radio name="swiftpost-template" value="swiftpost-teaser-sideimg.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-teaser-sideimg.php" ? "checked" : "" ; ?>> Image on left, content expert on the side</label>
    816                 </p>
     812               
     813               
     814                <?php if ($X) {?>
     815                        <p>The X theme is currently active, please choose the correct stack:</p>
     816                        <p>
     817                        <label><input type=radio name="swiftpost-template" value="swiftpost-integrity.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"  <?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-integrity.php" ? "checked" : "" ; ?>>X Theme Integrity </label><br />
     818                        <label><input type=radio name="swiftpost-template" value="swiftpost-renew.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-renew.php" ? "checked" : "" ; ?>> X Theme Renew </label> <br />
     819                        <label><input type=radio name="swiftpost-template" value="swiftpost-icon.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-icon.php" ? "checked" : "" ; ?>>X Theme Icon </label><br />
     820                        <label><input type=radio name="swiftpost-template" value="swiftpost-ethos.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-ethos.php" ? "checked" : "" ; ?>>X Theme Ethos </label>
     821                        </p>
     822                    <?php } else { ?>
     823                        <p>Please pick one of the following options: 1) a Standard Swift Post Theme, or 2) a Custom Content Option.</p>
     824                        <p>
     825
     826                        <label><input type=radio name="swiftpost-template" value="swiftpost-full.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"  <?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-full.php" ? "checked" : "" ; ?>>Image on top, full content below </label><br />
     827                        <label><input type=radio name="swiftpost-template" value="swiftpost-teaser.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-teaser.php" ? "checked" : "" ; ?>> Image on top, content excerpt below</label> <br />
     828                        <label><input type=radio name="swiftpost-template" value="swiftpost-teaser-sideimg.php" onchange="jQuery('#swiftpost-custom-template-code').hide();"<?php echo $swiftpost_config['swiftpost-template'] == "swiftpost-teaser-sideimg.php" ? "checked" : "" ; ?>> Image on left, content expert on the side</label>
     829                        </p>
     830                    <?php } ?>
    817831                <p>
    818832                    <label><input type=radio name="swiftpost-template" value="templatename" onchange="jQuery('#swiftpost-custom-template-code').hide();" <?php echo $swiftpost_config['swiftpost-template'] == "templatename" ? "checked" : "" ; ?>>
Note: See TracChangeset for help on using the changeset viewer.