Changeset 872168
- Timestamp:
- 03/09/2014 12:11:28 PM (12 years ago)
- Location:
- kush-micro-news/trunk
- Files:
-
- 6 edited
-
assets/css/style-admin.css (modified) (1 diff)
-
assets/css/style.css (modified) (1 diff)
-
includes/admin.php (modified) (5 diffs)
-
includes/core.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
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*/ 2 2 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 }104 3 105 4 #micro-news .editB{ -
kush-micro-news/trunk/assets/css/style.css
r823176 r872168 21 21 border:0px solid red; 22 22 overflow:hidden; 23 margin-bottom: 15px;23 margin-bottom:5px; 24 24 } 25 25 26 26 #micro-news .head{ 27 width:100%; 28 overflow:hidden; 27 width:100%; 29 28 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; 34 30 border-top:2px solid #CCC; 31 filter:alpha(opacity=70); 35 32 } 36 33 37 34 #micro-news .head strong{ 38 35 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; 43 39 font-family:"Arial", Helvetica, sans-serif; 44 40 font-size:13px; -
kush-micro-news/trunk/includes/admin.php
r823176 r872168 16 16 $what=''; 17 17 if(isset($_POST['valSub'])) 18 {if(isset($_POST['numPost'])) 18 { 19 if(isset($_POST['numPost'])) 19 20 { 20 21 if($_POST['numPost']!='') … … 28 29 29 30 } 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 } 30 44 if(isset($_POST['chkBorder'])) 31 45 {if($_POST['chkBorder']==true) … … 55 69 update_option('kush_mn_parse_html','false'); 56 70 71 72 73 57 74 } 58 75 ?> … … 67 84 <label for="numPost">Number of news to display :</label> 68 85 <input type="text" name="numPost" value="<?php echo get_option( "kush_mn_num_news");?>"/> 69 <h 6 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> 70 87 </div> 71 88 <h3>Display Settings :</h3> 72 89 <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> 73 94 <label for="chkBorder">Enable colorful borders:</label> 74 95 <input type="checkbox" name="chkBorder" value="true" <?php $sBor=get_option('kush_mn_show_lborder');if($sBor=='true'){echo 'checked';}?>/> … … 82 103 <label for="chkHtmlParse">Allow HTML parsing while adding news:</label> 83 104 <input type="checkbox" name="chkHtmlParse" value="true" <?php $lHov=get_option('kush_mn_parse_html');if($lHov=='true'){echo 'checked';}?>/> 84 <h 6 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> 85 106 </div> 86 107 <br/><br/> -
kush-micro-news/trunk/includes/core.php
r823176 r872168 11 11 $showBorder=get_option('kush_mn_show_lborder'); 12 12 $cleanHov=get_option('kush_mn_show_linkclean'); 13 $widgetName = get_option('kush_mn_widget_name'); 13 14 ?> 14 15 <?php $rows = $wpdb->get_results( "SELECT * FROM `$table_name` ORDER BY `time` DESC LIMIT 0,$no_of_news ;" ); 15 16 ?> 16 17 <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> 18 19 <?php 19 20 foreach ( $rows as $row ) -
kush-micro-news/trunk/index.php
r823176 r872168 3 3 Plugin Name: Kush Micro News 4 4 Description: Spread the news in shortest possible way. Use links to refer data and title to concise it. 5 Version: 1.3. 25 Version: 1.3.3 6 6 Author: Kush Sharma 7 7 Author Email: thekushsharma@gmail.com 8 8 Author URI: http://softnuke.com/ 9 9 Plugin URI: https://github.com/kushsharma/micro-news 10 Last Officially Updated: 9 March 2014 10 11 */ 11 12 … … 152 153 add_option('kush_mn_show_linkclean','true'); 153 154 add_option('kush_mn_parse_html','true'); 155 add_option('kush_mn_widget_name','Micro News'); 154 156 155 157 } -
kush-micro-news/trunk/readme.txt
r823176 r872168 4 4 Tags: post,news,micro,short,share,link,kush,refer,short 5 5 Requires at least: 3.0.1 6 Tested up to: 3.8 7 Stable tag: 1.3. 26 Tested up to: 3.8.1 7 Stable tag: 1.3.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 75 75 == Changelog == 76 76 77 = 1.3.3 = 78 * Added option to change widget title. 79 77 80 = 1.3.2 = 78 81 * Some CSS fix
Note: See TracChangeset
for help on using the changeset viewer.