Plugin Directory

Changeset 1823205


Ignore:
Timestamp:
02/16/2018 06:20:17 AM (8 years ago)
Author:
newsplugin.com
Message:

Add explicit option for "no font" (theme default)

Location:
newsplugin
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • newsplugin/tags/1.0.16/news-plugin.php

    r1778367 r1823205  
    55Description: Create custom newsfeeds for your website. Choose keywords, number of articles and other settings, put the feed wherever you want using widgets or shortcodes, and watch the fresh relevant news headlines appear on your pages (or approve and publish them manually). You can always shape the news right from your website, remove unwanted articles or star the good ones. Thanks for using the NewsPlugin, and we hope you like it.
    66Author: newsplugin.com
    7 Version: 1.0.15
     7Version: 1.0.16
    88Author URI: http://newsplugin.com/
    99*/
     
    554554                $v = $this->get_with_default($style_news, 'newsfeed_title', 'font_family', '');
    555555                echo '<option value="'.$v.'">'.$v.'</option>';
     556                if($v) {
     557                    echo '<option value="">Unchanged (theme default)</option>';
     558                }
    556559                foreach( $font_family as $fonts) {
    557560                    if($fonts==$v){}
     
    579582                $v = $this->get_with_default($style_news,'article_headline','font_family','');
    580583                echo '<option value="'.$v.'">'.$v.'</option>';
     584                if($v) {
     585                    echo '<option value="">Unchanged (theme default)</option>';
     586                }
    581587                foreach( $font_family as $fonts) {
    582588                    if($fonts==$v){}
     
    604610                $v = $this->get_with_default($style_news,'article_abstract','font_family','');
    605611                echo '<option value="'.$v.'">'.$v.'</option>';
     612                if($v) {
     613                    echo '<option value="">Unchanged (theme default)</option>';
     614                }
    606615                foreach( $font_family as $fonts) {
    607616                    if($fonts==$v){}
     
    643652                $v = $this->get_with_default($style_news,'article_date','font_family','');
    644653                echo '<option value="'.$v.'">'.$v.'</option>';
     654                if($v) {
     655                    echo '<option value="">Unchanged (theme default)</option>';
     656                }
    645657                foreach( $font_family as $fonts) {
    646658                    if($fonts==$v){}
     
    681693                $v = $this->get_with_default($style_news,'article_sources','font_family','');
    682694                echo '<option value="'.$v.'">'.$v.'</option>';
     695                if($v) {
     696                    echo '<option value="">Unchanged (theme default)</option>';
     697                }
    683698                foreach( $font_family as $fonts) {
    684699                    if($fonts==$v){}
  • newsplugin/tags/1.0.16/readme.txt

    r1778367 r1823205  
    44Requires at least: 3.9
    55Tested up to: 4.9.1
    6 Stable tag: 1.0.15
     6Stable tag: 1.0.16
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272
    7373== Changelog ==
     74
     75= 1.0.16 =
     76Release Date: February 16, 2018
     77
     78* Added explicit option of no font
    7479
    7580= 1.0.15 =
  • newsplugin/trunk/news-plugin.php

    r1778367 r1823205  
    55Description: Create custom newsfeeds for your website. Choose keywords, number of articles and other settings, put the feed wherever you want using widgets or shortcodes, and watch the fresh relevant news headlines appear on your pages (or approve and publish them manually). You can always shape the news right from your website, remove unwanted articles or star the good ones. Thanks for using the NewsPlugin, and we hope you like it.
    66Author: newsplugin.com
    7 Version: 1.0.15
     7Version: 1.0.16
    88Author URI: http://newsplugin.com/
    99*/
     
    554554                $v = $this->get_with_default($style_news, 'newsfeed_title', 'font_family', '');
    555555                echo '<option value="'.$v.'">'.$v.'</option>';
     556                if($v) {
     557                    echo '<option value="">Unchanged (theme default)</option>';
     558                }
    556559                foreach( $font_family as $fonts) {
    557560                    if($fonts==$v){}
     
    579582                $v = $this->get_with_default($style_news,'article_headline','font_family','');
    580583                echo '<option value="'.$v.'">'.$v.'</option>';
     584                if($v) {
     585                    echo '<option value="">Unchanged (theme default)</option>';
     586                }
    581587                foreach( $font_family as $fonts) {
    582588                    if($fonts==$v){}
     
    604610                $v = $this->get_with_default($style_news,'article_abstract','font_family','');
    605611                echo '<option value="'.$v.'">'.$v.'</option>';
     612                if($v) {
     613                    echo '<option value="">Unchanged (theme default)</option>';
     614                }
    606615                foreach( $font_family as $fonts) {
    607616                    if($fonts==$v){}
     
    643652                $v = $this->get_with_default($style_news,'article_date','font_family','');
    644653                echo '<option value="'.$v.'">'.$v.'</option>';
     654                if($v) {
     655                    echo '<option value="">Unchanged (theme default)</option>';
     656                }
    645657                foreach( $font_family as $fonts) {
    646658                    if($fonts==$v){}
     
    681693                $v = $this->get_with_default($style_news,'article_sources','font_family','');
    682694                echo '<option value="'.$v.'">'.$v.'</option>';
     695                if($v) {
     696                    echo '<option value="">Unchanged (theme default)</option>';
     697                }
    683698                foreach( $font_family as $fonts) {
    684699                    if($fonts==$v){}
  • newsplugin/trunk/readme.txt

    r1778367 r1823205  
    44Requires at least: 3.9
    55Tested up to: 4.9.1
    6 Stable tag: 1.0.15
     6Stable tag: 1.0.16
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272
    7373== Changelog ==
     74
     75= 1.0.16 =
     76Release Date: February 16, 2018
     77
     78* Added explicit option of no font
    7479
    7580= 1.0.15 =
Note: See TracChangeset for help on using the changeset viewer.