Plugin Directory

Changeset 1740132


Ignore:
Timestamp:
10/03/2017 08:18:53 AM (8 years ago)
Author:
codetic
Message:

options panel improved

Location:
essential-addons-for-cornerstone-lite
Files:
92 added
4 edited

Legend:

Unmodified
Added
Removed
  • essential-addons-for-cornerstone-lite/trunk/README.txt

    r1737078 r1740132  
    55Requires at least: 4.5
    66Tested up to: 4.8.2
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    7373== Changelog ==
    7474
     75= 1.2 =
     76* Options Panel improved
     77* Settings menu added
     78* Community support links added
     79
    7580= 1.1 =
    7681* Options Panel added
  • essential-addons-for-cornerstone-lite/trunk/admin/assets/css/admin.css

    r1737068 r1740132  
    232232
    233233.premium-elements-title img {
    234     width: 70px;
     234    width: 75px;
    235235    float: left;
    236236}
     
    238238.premium-elements-title .section-title {
    239239    color: #157EFB;
    240     margin: 34px 5px 0;
     240    margin: 35px 5px 0;
    241241    text-transform: uppercase;
    242242    letter-spacing: 1px;
    243243    font-size: 20px;
    244     border-bottom: 2px solid #157EFB;
     244    border-bottom: 6px double #157EFB;
    245245    padding-bottom: 10px;
    246246    display: inline-block;
     
    250250    margin-top: 30px;
    251251}
     252
     253.eacs-notice {
     254    background-color: #F7F6D4;
     255    padding: 10px 15px;
     256    border-radius: 5px;
     257    box-shadow: 0 0 15px 0 rgba(0,0,0, .15);
     258    max-width: 90%;
     259    color: #9A7223;
     260}
     261
     262.eacs-notice h5 {
     263    font-size: 1.2em;
     264    font-weight: bold;
     265}
     266
     267.essential-addons-community-link {
     268    background-color: #475A96;
     269    margin: 15px 0;
     270    display: inline-block;
     271    border-radius: 3px;
     272}
     273
     274.essential-addons-community-link:hover {
     275    background-color: #3351b2;
     276}
     277
     278.essential-addons-community-link a {
     279    color: #fff;
     280    text-decoration: none;
     281    padding: 15px 20px;
     282    font-size: 1.4em;
     283    display: flex;
     284    align-items: center;
     285    align-content: center;
     286}
     287
     288
  • essential-addons-for-cornerstone-lite/trunk/admin/settings.php

    r1737068 r1740132  
    122122                                <a href="https://essential-addons.com/cornerstone/buy.php" target="_blank" class="button eacs-btn eacs-license-btn">Get Pro License</a>
    123123
     124                                <div class="eacs-notice">
     125                                    <h5>Troubleshooting Info</h5>
     126                                    <p>After update, if you see any element is not working properly, go to <strong>Elements</strong> Tab, toggle the element and save changes.</p>
     127                                </div>
    124128                            </div>
    125129                        </div>
     
    308312                        </div>
    309313                    </div>
     314
     315                    <div class="row">
     316                        <div class="col-half">
     317                            <div class="essential-addons-community-link">
     318                                <a href="https://www.facebook.com/groups/essentialaddons/" target="_blank"><i class="fa fa-facebook-official fa-2x fa-fw" aria-hidden="true"></i> <span>Join the Facebook Community</span></a>
     319                            </div>
     320                        </div>
     321                    </div>
    310322                    </div>
    311323                </div>
  • essential-addons-for-cornerstone-lite/trunk/essential_addons_cs.php

    r1737073 r1740132  
    11<?php
    22/*
    3 Plugin Name: Essential Addons for Cornerstone Lite
    4 Plugin URI: http://codetic.net/demo/essential-addons/
    5 Description: Essential element library for Cornerstone and Pro page builder for WordPress lite Version. <a href="https://www.codetic.net/go/get-eacs.php">Get Premium Version</a>
     3Plugin Name: Essential Addons for Cornerstone
     4Plugin URI: https://essential-addons.com/cornerstone/
     5Description: Ultimate elements library for Cornerstone and Pro page builder for WordPress. <a href="https://essential-addons.com/cornerstone/buy.php">Get Premium Version</a>
    66Author: Codetic
    77Author URI: http://www.codetic.net/
    8 Version: 1.1
     8Version: 1.2
    99Text Domain: essential-addons-cs
    1010*/
     
    6868    return $icon_map;
    6969}
     70
     71
     72// Action menus
     73
     74function eacs_add_settings_link( $links ) {
     75    $settings_link = sprintf( '<a href="admin.php?page=eacs-settings">' . __( 'Settings' ) . '</a>' );
     76    $go_pro_link = sprintf( '<a href="https://essential-addons.com/cornerstone/buy.php" target="_blank" style="color: #39b54a; font-weight: bold;">' . __( 'Go Pro' ) . '</a>' );
     77    array_push( $links, $settings_link, $go_pro_link );
     78   return $links;
     79}
     80$plugin = plugin_basename( __FILE__ );
     81add_filter( "plugin_action_links_$plugin", 'eacs_add_settings_link' );
     82
     83
     84
     85// Redirect to options page
     86
     87register_activation_hook(__FILE__, 'eacs_activate');
     88add_action('admin_init', 'eacs_redirect');
     89
     90function eacs_activate() {
     91    add_option('eacs_do_activation_redirect', true);
     92}
     93
     94function eacs_redirect() {
     95    if (get_option('eacs_do_activation_redirect', false)) {
     96        delete_option('eacs_do_activation_redirect');
     97        if(!isset($_GET['activate-multi']))
     98        {
     99            wp_redirect("admin.php?page=eacs-settings");
     100        }
     101    }
     102}
     103
Note: See TracChangeset for help on using the changeset viewer.