Plugin Directory

Changeset 1535331


Ignore:
Timestamp:
11/16/2016 09:28:38 PM (9 years ago)
Author:
nebelhorn
Message:
  • Change german app translation
  • Bug fix teaser null
  • Extend Debug Modus
  • Add UTC to default timezone
Location:
yournewsapp/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • yournewsapp/trunk/classes/lang/app_trans_de.php

    r1531592 r1535331  
    8989      'results'=>'Alle Ergebnisse:',
    9090      'Rate_App'=>'App bewerten',
    91       'Rate_App_Text'=> 'Ihnen gefällt die AUTOHAUS News-App? Dann freuen wir uns über eine positive Bewertung im AppStore. Vielen Dank für Ihre Unterstützung.',
     91      'Rate_App_Text'=> 'Ihnen gefällt diese App? Dann freuen wir uns über eine positive Bewertung im App Store. Vielen Dank für Ihre Unterstützung.',
    9292      'Rate_App_Yes'=>'Jetzt bewerten',
    9393      'Rate_App_No'=>'Nein, danke',
  • yournewsapp/trunk/include/nh_ynaa_article.php

    r1461460 r1535331  
    3737            $returnarray['error']['postid']=$returnarray['id'] ;
    3838            //$returnarray['timestamp'] = strtotime(get_the_date('Y-m-d').' '.get_the_modified_time());
     39
    3940            $returnarray['timestamp'] = strtotime($post->post_modified);
     41
     42
    4043            $returnarray['post_modified'] = ($post->post_modified);
    4144            $returnarray['post_modified_gmt'] = ($post->post_modified_gmt);
  • yournewsapp/trunk/include/nh_ynaa_categories.php

    r1461460 r1535331  
    125125
    126126            $ass_cats[$category->term_id] = array('showsubcategories'=>$cat[$category->term_id]['showsubcategories'], 'showoverviewposts'=>$cat[$category->term_id]['showoverviewposts'],'img'=>$this->nh_relativeToAbsolutePath($this->categories_settings[$category->term_id]['img']), 'pos'=>$i, 'type'=>'cat', 'id'=> (int) $category->term_id, 'parent_id'=>$category->parent, 'title'=>htmlspecialchars_decode($category->name), 'post_img'=>$this->nh_relativeToAbsolutePath($items['articles']['items'][0]['thumb']), 'post_id'=>$items['articles']['items'][0]['id'] ,'publish_timestamp'=>$items['articles']['items'][0]['publish_timestamp'],'post_date'=>$items['articles']['items'][0]['publish_timestamp'],'post_ts'=>$items['articles']['items'][0]['timestamp'] ,'allowRemove'=> $allowRemove, 'itemdirekt'=>1, 'use_cat_img'=> $use_cat_img ,'pushDefaultActive'=>$pushdefaultactive  );
    127             //$ass_cats[$category->term_id] = array('img'=>'http://yna.nebelhorn.com/wp-content/uploads/2014/02/image-653473-breitwandaufmacher-ixpz-300x111.jpg');
    128127
    129128            $i++;
     
    206205
    207206if(!$_GET[$this->requesvar['meta']] && isset($this->general_settings['location']) ){
    208     //$hp[-98]['img'] = 'http://yna.nebelhorn.com/wp-content/uploads/2014/03/images.jpg';
     207
    209208    $map_img = '';
    210209    if(isset($this->categories_settings[-98]['img'])) $map_img = $this->categories_settings[-98]['img'];
  • yournewsapp/trunk/include/nh_ynaa_get_appcontent.php

    r1461460 r1535331  
    7373                            }
    7474
    75                             /*if(!(strpos($imgclass, 'no-lazy'))){
    76                                             //var_dump($w,$imgclass);
    77                                               $imgElement->setAttribute('src','http://yna.nebelhorn.com/wp-content/plugins/yournewsapp/img/1.png');
    78                                               $imgElement->setAttribute('data-nh-src',$src_o);
    79                                 if($_GET[$this->requesvar['b']]){
    80                                    $imgElement->setAttribute('width',$_GET[$this->requesvar['b']]);
    81                                  $imgElement->setAttribute('height',(int)($_GET[$this->requesvar['b']]*$h/$w));
    82                                 }
    83                             }*/
    8475
    8576
     
    10495                                continue;
    10596                            }
    106                             /*
    107                             elseif(!(strpos($imgclass, 'no-lazy'))){
    108                                            $imgElement->setAttribute('src','http://yna.nebelhorn.com/wp-content/plugins/yournewsapp/img/1.png');
    109                             $imgElement->setAttribute('data-nh-src',$src);
    110                             $imgElement->setAttribute('width',$_GET[$this->requesvar['b']]);
    111                            $imgElement->setAttribute('height',(int)($_GET[$this->requesvar['b']]*$w/$h));
    112                                             //list($w, $h) = getimagesize($src);
    113                                             //$imgElement->setAttribute('title','uma05');
    114 
    115 
    116                             }*/
    11797                            else{
    11898                                //$imgElement->setAttribute('width','100%');
  • yournewsapp/trunk/include/nh_ynaa_homepresets.php

    r1531592 r1535331  
    9090                            $cat_id = 0;
    9191                            $img = '';
     92
    9293                            $items['articles']['items'][0]['id'] = '';
    9394                            $items['articles']['items'][0]['timestamp'] = 0;
     
    180181                            elseif(isset($hp['customfilter'])){
    181182                                //var_dump($hp);
    182 
     183                                if($hp['img']) $img = $hp['img'];
    183184                                if(has_filter($hp['customfilter'])) {
     185                                   // echo $hp['customfilter'];
     186                                   // echo 'has filter';
    184187                                    $returnarray['items'][] = apply_filters($hp['customfilter'],$hp, $i);
    185188                                    continue;
     
    225228                            $post_title  =  preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); },$post_title );
    226229                            $hp['title']  =  preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); },$hp['title'] );
    227                             $returnarray['items'][]=array('uma'=> $this->categories_settings[$cat_id],'pos'=>$i, 'type' => $hp['type'], 'allowRemove'=> $allowRemove, 'id'=> (int)$hp['id'], 'cat_id'=>$cat_id,  'title'=>html_entity_decode($hp['title']), 'img'=>$this->nh_relativeToAbsolutePath($img),'post_title'=>html_entity_decode($post_title), 'post_id'=>$items['articles']['items'][0]['id'], 'timestamp'=>$items['articles']['items'][0]['timestamp'], 'post_modified'=>$items['articles']['items'][0]['post_modified'], 'post_modified_gmt'=>$items['articles']['items'][0]['post_modified_gmt'], 'publish_timestamp' =>$items['articles']['items'][0]['publish_timestamp'],'post_date_wp' =>$items['articles']['items'][0]['post_date_wp'],'post_date_gmt' =>$items['articles']['items'][0]['post_date_gmt'],'post_date' =>$items['articles']['items'][0]['publish_timestamp'], 'showsubcategories'=>$showsub, 'url'=>$items['articles']['items'][0]['url']);
     230                            $returnarray['items'][]=array('uma'=> $hp,'pos'=>$i, 'type' => $hp['type'], 'allowRemove'=> $allowRemove, 'id'=> (int)$hp['id'], 'cat_id'=>$cat_id,  'title'=>html_entity_decode($hp['title']), 'img'=>$this->nh_relativeToAbsolutePath($img),'post_title'=>html_entity_decode($post_title), 'post_id'=>$items['articles']['items'][0]['id'], 'timestamp'=>$items['articles']['items'][0]['timestamp'], 'post_modified'=>$items['articles']['items'][0]['post_modified'], 'post_modified_gmt'=>$items['articles']['items'][0]['post_modified_gmt'], 'publish_timestamp' =>$items['articles']['items'][0]['publish_timestamp'],'post_date_wp' =>$items['articles']['items'][0]['post_date_wp'],'post_date_gmt' =>$items['articles']['items'][0]['post_date_gmt'],'post_date' =>$items['articles']['items'][0]['publish_timestamp'], 'showsubcategories'=>$showsub, 'url'=>$items['articles']['items'][0]['url']);
    228231                            $i++;
    229232
  • yournewsapp/trunk/include/nh_ynaa_settings.php

    r1531592 r1535331  
    44* Debug Modus
    55*/
    6 if($nh_ynaa->general_settings['debug'] &&  $nh_ynaa->general_settings['debug'] ==1 && $_GET['debug']==1){
     6if($_GET['debug']==1){
    77    global $wpdb;
    88    $returnarray['debug']['active']=1;
     
    1010    $returnarray['debug']['sorttype']=$nh_ynaa->general_settings['sorttype'];
    1111    $upload_dir = wp_upload_dir();
    12     $returnarray['upload_dir[baseurl]'] = $upload_dir['baseurl'];
     12    $returnarray['debug']['upload_dir[baseurl]'] = $upload_dir['baseurl'];
     13    $returnarray['debug']['phpversion']=phpversion();
     14    $returnarray['debug']['date_default_timezone_get']=date_default_timezone_get();
     15    $returnarray['debug']['wp_timezone']= get_option('timezone_string');
     16    $returnarray['debug']['wp_gmt_offset']= get_option('gmt_offset');
     17    $returnarray['debug']['current_time']= current_time('timestamp');
     18    $returnarray['debug']['current_time_string']= current_time('Y-m-d H:i:s T');
     19    $returnarray['debug']['YNAA_TIMEZONEDIFF']= YNAA_TIMEZONEDIFF;
    1320
    1421}
     
    154161                    if(isset($ar['customfilter'])){
    155162                        //var_dump($ar);
     163                       // echo $ar['customfilter'];
    156164                        if(has_filter($ar['customfilter'])) {
     165
    157166                            $returnarray['menu'][] = apply_filters($ar['customfilter'],$ar, $k);
    158167
  • yournewsapp/trunk/nh_ynaa_plugin.php

    r1531592 r1535331  
    22/*
    33Plugin Name: Blappsta Plugin
    4 Version: 0.8.8.4
     4Version: 0.8.8.5
    55
    66Plugin URI: http://wordpress.org/plugins/yournewsapp/
     
    2121//Temp fix folder problem
    2222global $nh_ynaa_version;
    23 $nh_ynaa_version = "0.8.8.4";
     23$nh_ynaa_version = "0.8.8.5";
    2424global $nh_ynaa_db_version;
    2525$nh_ynaa_db_version=1.2;
     
    3030//Query vars
    3131define('QUERY_VARS_YNAA','ynaa');
     32
     33$dateTimeLocal = new DateTime();
     34define('YNAA_TIMEZONEDIFF',$dateTimeLocal->getOffset());
    3235
    3336
     
    126129        public function __construct($logo_image_width=708,$logo_image_height=120)
    127130        {
     131
     132            date_default_timezone_set('UTC');
     133
    128134            $this->logo_image_width = $logo_image_width;
    129135            $this->logo_image_height = $logo_image_height;
     
    21852191                    //echo $intern;
    21862192                    //Exclude Teaser ITems
    2187                     if(!$intern  && strpos($_GET['ynaa'],'teaser')===false && (!isset($this->teaser_settings['source']) || $this->teaser_settings['source']!='indi') && (isset($this->teaser_settings['hidehome']))){
     2193                    if(!$intern  && strpos($_GET['ynaa'],'teaser')===false && (!isset($this->teaser_settings['source']) || $this->teaser_settings['source']!='indi') && (isset($this->teaser_settings['hidehome'])) && $this->teaser_settings['limit']){
    21882194                        $teasercat = 0;
     2195                        //echo $this->teaser_settings['limit'];
    21892196                        if($this->teaser_settings['source']=='cat') $teasercat =$this->teaser_settings['cat'];
    21902197                        $teaseritems = ($this->nh_ynaa_articles($teasercat,$this->teaser_settings['limit'],'full', true));
  • yournewsapp/trunk/readme.txt

    r1531592 r1535331  
    55Donate link:
    66Requires at least: 3.3.0
    7 Tested up to: 4.5.2
    8 Stable tag: 0.8.8.4
     7Tested up to: 4.6.1
     8Stable tag: 0.8.8.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282== Change Log ==
     83= 0.8.8.5 =
     84- Change german app translation
     85- Bug fix teaser null
     86- Extend Debug Modus
     87- Add UTC to default timezone
     88
    8389= 0.8.8.4 =
    8490- add option hide sharing
     
    442448 
    443449== Upgrade Notice ==
     450= 0.8.8.5 =
     451- Change german app translation
     452- Bug fix teaser null
     453- Extend Debug Modus
     454- Add UTC to default timezone
     455
     456
    444457= 0.8.8.4 =
    445458- add option hide sharing
Note: See TracChangeset for help on using the changeset viewer.