Plugin Directory

Changeset 872168


Ignore:
Timestamp:
03/09/2014 12:11:28 PM (12 years ago)
Author:
kushsharma
Message:

Added title option in settings.

Location:
kush-micro-news/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • kush-micro-news/trunk/assets/css/style-admin.css

    r734004 r872168  
    1 /* Sidebar Micro News Starts */
     1/* Sidebar Micro News Starts Admin*/
    22
    3 /* slightly enhanced, universal clearfix hack */
    4 .clearfix:after {
    5      visibility: hidden;
    6      display: block;
    7      font-size: 0;
    8      content: " ";
    9      clear: both;
    10      height: 0;
    11      }
    12 .clearfix { display: inline-block; }
    13 /* start commented backslash hack \*/
    14 * html .clearfix { height: 1%; }
    15 .clearfix { display: block; }
    16 /* close commented backslash hack */
    17 
    18 #micro-news {
    19     width:90%;
    20     height:auto;
    21     border:0px solid red;
    22     overflow:hidden;
    23     margin-bottom:15px;
    24 }
    25 
    26 #micro-news .head{
    27     width:100%;
    28     overflow:hidden;   
    29     opacity:0.7;
    30     filter:alpha(opacity=70);
    31     height:23px;
    32     padding-top:7px;
    33     border-top:2px solid #CCC;
    34 }
    35 
    36 #micro-news .head strong{
    37     color:white;
    38     padding:15px 30px 15px 30px;
    39     background:grey;
    40     height:100%;
    41     width:40%;
    42     font-family:"Arial", Helvetica, sans-serif;
    43     font-size:13px;
    44 }
    45 
    46 #micro-news .wrapNews{
    47     width:98%;
    48     padding:2px;
    49     border-left:4px solid #F2A355;
    50     min-height:70px;
    51     position:relative;
    52     border-bottom:2px solid #CCC;
    53 }
    54 
    55 #micro-news .wrapNews:hover{
    56     border-left:4px solid #222;
    57 }
    58 
    59 .wrapNews .title{
    60     color:#0066cc;
    61     font-size:15px;
    62     font-family:Myriad Pro, Trebuchet MS, Arial, Sans-Serif;
    63     display:inline-block;
    64 }
    65 
    66 .wrapNews .text{
    67     padding-bottom:20px;
    68 }
    69 
    70 .wrapNews .postedOn{
    71     font-size:10px;
    72     border-bottom:2px solid #CCC;   
    73 }
    74 
    75 .wrapNews .link{
    76 
    77     padding:2px;
    78 }
    79 
    80 .wrapNews .link:hover{
    81     background-color:#8bbf36;
    82 }
    83 
    84 .wrapNews .link a{
    85     color:#8bbf36 ;
    86 }
    87 
    88 .wrapNews .link a:visited{
    89     color:#8bbf36 ;
    90 }
    91 
    92 .wrapNews .link a:hover{
    93     color:black;
    94 }
    95 
    96 /*--------------------------------*/
    97 #micro-news-more-link{
    98     padding:10px;
    99     border:1px solid #CCC;
    100 }
    101 #micro-news-more-link:hover{
    102     background-color:#8bbf36;
    103 }
    1043
    1054#micro-news .editB{
  • kush-micro-news/trunk/assets/css/style.css

    r823176 r872168  
    2121    border:0px solid red;
    2222    overflow:hidden;
    23     margin-bottom:15px;
     23    margin-bottom:5px;
    2424}
    2525
    2626#micro-news .head{
    27     width:100%;
    28     overflow:hidden;
     27    width:100%;
    2928    background:url(../img/black-stripe.gif);
    30     opacity:0.7;
    31     filter:alpha(opacity=70);
    32     height:23px;
    33     padding-top:7px;
     29    opacity:0.7;       
    3430    border-top:2px solid #CCC;
     31    filter:alpha(opacity=70);   
    3532}
    3633
    3734#micro-news .head strong{
    3835    color:white;
    39     padding:15px 30px 15px 30px;
    40     background:grey;
    41     height:100%;
    42     width:40%;
     36    padding:2% 30px 2% 30px;
     37    background:#808080;     
     38    display: inline-block;
    4339    font-family:"Arial", Helvetica, sans-serif;
    4440    font-size:13px;
  • kush-micro-news/trunk/includes/admin.php

    r823176 r872168  
    1616$what='';
    1717if(isset($_POST['valSub']))
    18     {if(isset($_POST['numPost']))
     18    {
     19    if(isset($_POST['numPost']))
    1920        {
    2021        if($_POST['numPost']!='')
     
    2829           
    2930        }
     31
     32    if(isset($_POST['myRename']))
     33    {
     34    if($_POST['myRename']!='')
     35        {$name=$_POST['myRename'];
     36         update_option("kush_mn_widget_name",$name);
     37         
     38         $what='Changes Saved !';
     39        }
     40    else
     41        echo _e('<h3>Name cannot be left blank.</h3>');
     42       
     43    }
    3044    if(isset($_POST['chkBorder']))
    3145        {if($_POST['chkBorder']==true)
     
    5569    update_option('kush_mn_parse_html','false');
    5670   
     71
     72
     73   
    5774}
    5875?>
     
    6784            <label for="numPost">Number of news to display :</label>
    6885            <input type="text" name="numPost" value="<?php echo get_option( "kush_mn_num_news");?>"/>
    69             <h6 style="display:inline-block;margin:0;">(via kush_micro_news_output() function)</h6>
     86            <h5 style="display:inline-block;margin:0;">(via kush_micro_news_output() function)</h5>
    7087        </div>
    7188        <h3>Display Settings :</h3>
    7289        <div class="options">
     90            <label for="myRename">Title over news:</label>
     91            <input type="text" name="myRename" value="<?php echo get_option("kush_mn_widget_name");?>"/>
     92            <h5 style="display:inline-block;margin:0;">(Try not to use any special character like inverted commas)</h5>
     93            <br>
    7394            <label for="chkBorder">Enable colorful borders:</label>
    7495            <input type="checkbox" name="chkBorder" value="true" <?php $sBor=get_option('kush_mn_show_lborder');if($sBor=='true'){echo 'checked';}?>/>
     
    82103            <label for="chkHtmlParse">Allow HTML parsing while adding news:</label>
    83104            <input type="checkbox" name="chkHtmlParse" value="true" <?php $lHov=get_option('kush_mn_parse_html');if($lHov=='true'){echo 'checked';}?>/>
    84             <h6 style="display:inline-block;margin:0;">(Try not to use improper markup if HTML parsing is enabled otherwise it could break up your whole site.)</h6>
     105            <h5 style="display:inline-block;margin:0;">(Try not to use improper markup if HTML parsing is enabled otherwise it could break up your whole site.)</h5>
    85106        </div>
    86107        <br/><br/>
  • kush-micro-news/trunk/includes/core.php

    r823176 r872168  
    1111    $showBorder=get_option('kush_mn_show_lborder');
    1212    $cleanHov=get_option('kush_mn_show_linkclean');
     13    $widgetName = get_option('kush_mn_widget_name');
    1314     ?>
    1415<?php $rows = $wpdb->get_results( "SELECT * FROM `$table_name` ORDER BY `time` DESC LIMIT 0,$no_of_news ;" );
    1516?>
    1617<div id="micro-news" class="clearfix">
    17 <h2 class="head"><strong>Micro News</strong></h2>
     18<h2 class="head"><strong><?php echo $widgetName; ?></strong></h2>
    1819<?php
    1920foreach ( $rows as $row )
  • kush-micro-news/trunk/index.php

    r823176 r872168  
    33Plugin Name: Kush Micro News
    44Description: Spread the news in shortest possible way. Use links to refer data and title to concise it.
    5 Version: 1.3.2
     5Version: 1.3.3
    66Author: Kush Sharma
    77Author Email: thekushsharma@gmail.com
    88Author URI: http://softnuke.com/
    99Plugin URI: https://github.com/kushsharma/micro-news
     10Last Officially Updated: 9 March 2014
    1011*/
    1112
     
    152153  add_option('kush_mn_show_linkclean','true');
    153154  add_option('kush_mn_parse_html','true');
     155  add_option('kush_mn_widget_name','Micro News');
    154156 
    155157}
  • kush-micro-news/trunk/readme.txt

    r823176 r872168  
    44Tags: post,news,micro,short,share,link,kush,refer,short
    55Requires at least: 3.0.1
    6 Tested up to: 3.8
    7 Stable tag: 1.3.2
     6Tested up to: 3.8.1
     7Stable tag: 1.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7575== Changelog ==
    7676
     77= 1.3.3 =
     78* Added option to change widget title.
     79
    7780= 1.3.2 =
    7881* Some CSS fix
Note: See TracChangeset for help on using the changeset viewer.