WordPress.org

Plugin Directory

Changeset 1711976


Ignore:
Timestamp:
08/11/17 08:45:35 (6 weeks ago)
Author:
nsthemes
Message:

NS Custom Css - Added new options

Location:
ns-custom-css/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ns-custom-css/trunk/ns-admin-options/ns_settings_box_theme_promo.php

    r1505416 r1711976  
    99    </div> 
    1010    <div class="contentnsbigbox"> 
    11         <a href="<?php echo $link_promo_theme; ?>"><img src="<? echo plugin_dir_url( __FILE__ ); ?>img/ns-theme-promo.png" class="imgnsbigbox"></a> 
     11        <a href="<?php echo $link_promo_theme; ?>"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>img/ns-theme-promo.png" class="imgnsbigbox"></a> 
    1212        <p> - Responsive<br/> 
    1313            - Theme option<br/> 
  • ns-custom-css/trunk/ns-admin-options/ns_settings_custom.php

    r1505416 r1711976  
    77<?php settings_fields('ns_cc_options_group'); ?> 
    88<div class="genRowNssdc"> 
    9  Insert your custom css here:<br><br> 
    10  <textarea rows="10" cols="100" id="ns_code_to_add_cc_option" name="ns_code_to_add_cc_option"><?php echo get_option('ns_code_to_add_cc_option', ''); ?></textarea>   
     9 Insert your custom css for desktop here:<br><br> 
     10 <textarea rows="10" cols="100" id="ns_code_to_add_cc_option" name="ns_code_to_add_cc_option"><?php echo get_option('ns_code_to_add_cc_option', ''); ?></textarea><br><br> 
     11 Insert your custom css for tablet here (max-width: 1024px):<br><br> 
     12 <textarea rows="10" cols="100" id="ns_code_to_add_cc_option_tab" name="ns_code_to_add_cc_option_tab"><?php echo get_option('ns_code_to_add_cc_option_tab', ''); ?></textarea><br><br> 
     13 Insert your custom css for mobile here (max-width: 768px):<br><br> 
     14 <textarea rows="10" cols="100" id="ns_code_to_add_cc_option_mobile" name="ns_code_to_add_cc_option_mobile"><?php echo get_option('ns_code_to_add_cc_option_mobile', ''); ?></textarea><br><br> 
    1115</div> 
  • ns-custom-css/trunk/ns-custom-css.php

    r1675879 r1711976  
    44Plugin URI: https://wordpress.org/plugins/ns-custom-css/ 
    55Description: This plugin allow to add your custom css 
    6 Version: 1.0.2 
     6Version: 2.0.0 
    77Author: NsThemes 
    88Author URI: http://www.nsthemes.com 
     
    3232function ns_write_cc_style(){ 
    3333    $ns_cc_to_print = get_option('ns_code_to_add_cc_option', ''); 
     34    $ns_cc_to_print_tab = get_option('ns_code_to_add_cc_option_tab', ''); 
     35    $ns_cc_to_print_mobile = get_option('ns_code_to_add_cc_option_mobile', ''); 
    3436    if ($ns_cc_to_print != '') { 
    3537        echo '<!-- Start Custom Css Code -->'; 
     
    3941        echo  $ns_cc_to_print; 
    4042        echo "\r\n"; 
     43        echo "\r\n"; 
     44        echo '@media (max-width: 1024px) {'; 
     45        echo "\r\n"; 
     46        echo  $ns_cc_to_print_tab; 
     47        echo "\r\n"; 
     48        echo '}'; 
     49        echo "\r\n"; 
     50        echo '@media (max-width: 768px) {'; 
     51        echo "\r\n"; 
     52        echo  $ns_cc_to_print_mobile; 
     53        echo "\r\n"; 
     54        echo '}'; 
    4155        echo '</style>'; 
    4256        echo "\r\n"; 
  • ns-custom-css/trunk/ns_custom_css_for_wp_option.php

    r1505416 r1711976  
    77{ 
    88    add_option('ns_code_to_add_cc_option', ''); 
     9    add_option('ns_code_to_add_cc_option_tab', ''); 
     10    add_option('ns_code_to_add_cc_option_mobile', ''); 
    911} 
    1012 
     
    1517function ns_cc_register_options_group() 
    1618{ 
    17     register_setting('ns_cc_options_group', 'ns_code_to_add_cc_option');    
     19    register_setting('ns_cc_options_group', 'ns_code_to_add_cc_option'); 
     20    register_setting('ns_cc_options_group', 'ns_code_to_add_cc_option_tab'); 
     21    register_setting('ns_cc_options_group', 'ns_code_to_add_cc_option_mobile'); 
    1822} 
    1923  
  • ns-custom-css/trunk/readme.txt

    r1675879 r1711976  
    33Tags: css, custom style, custom css, custom wordpress style, wordpress custom style 
    44Requires at least: 4.3 
    5 Tested up to: 4.7 
    6 Stable tag: 1.0.2 
     5Tested up to: 4.8 
     6Stable tag: 2.0.0 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1515You only have to digit your class or id and save it! 
    1616The snippet code will added in your header, in a very clean and simple mode. 
     17You can insert different style for desktop, tablet and mobile device(NEW FEATURES!). 
    1718 
    1819PREMIUM FEATURES of custom css: 
     
    5556== Changelog == 
    5657 
     58= 2.0.0 = 
     59Add tablet and mobile custom style. 
     60 
    5761= 1.0.2 = 
    58 Test with WordPress 4.8 
     62Test with WordPress 4.8. 
    5963 
    6064= 1.0.1 = 
    61 Test with WordPress 4.7 
     65Test with WordPress 4.7. 
    6266 
    6367= 1.0.0 = 
Note: See TracChangeset for help on using the changeset viewer.