Changeset 1535331
- Timestamp:
- 11/16/2016 09:28:38 PM (9 years ago)
- Location:
- yournewsapp/trunk
- Files:
-
- 8 edited
-
classes/lang/app_trans_de.php (modified) (1 diff)
-
include/nh_ynaa_article.php (modified) (1 diff)
-
include/nh_ynaa_categories.php (modified) (2 diffs)
-
include/nh_ynaa_get_appcontent.php (modified) (2 diffs)
-
include/nh_ynaa_homepresets.php (modified) (3 diffs)
-
include/nh_ynaa_settings.php (modified) (3 diffs)
-
nh_ynaa_plugin.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yournewsapp/trunk/classes/lang/app_trans_de.php
r1531592 r1535331 89 89 'results'=>'Alle Ergebnisse:', 90 90 '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.', 92 92 'Rate_App_Yes'=>'Jetzt bewerten', 93 93 'Rate_App_No'=>'Nein, danke', -
yournewsapp/trunk/include/nh_ynaa_article.php
r1461460 r1535331 37 37 $returnarray['error']['postid']=$returnarray['id'] ; 38 38 //$returnarray['timestamp'] = strtotime(get_the_date('Y-m-d').' '.get_the_modified_time()); 39 39 40 $returnarray['timestamp'] = strtotime($post->post_modified); 41 42 40 43 $returnarray['post_modified'] = ($post->post_modified); 41 44 $returnarray['post_modified_gmt'] = ($post->post_modified_gmt); -
yournewsapp/trunk/include/nh_ynaa_categories.php
r1461460 r1535331 125 125 126 126 $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');128 127 129 128 $i++; … … 206 205 207 206 if(!$_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 209 208 $map_img = ''; 210 209 if(isset($this->categories_settings[-98]['img'])) $map_img = $this->categories_settings[-98]['img']; -
yournewsapp/trunk/include/nh_ynaa_get_appcontent.php
r1461460 r1535331 73 73 } 74 74 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 }*/84 75 85 76 … … 104 95 continue; 105 96 } 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 }*/117 97 else{ 118 98 //$imgElement->setAttribute('width','100%'); -
yournewsapp/trunk/include/nh_ynaa_homepresets.php
r1531592 r1535331 90 90 $cat_id = 0; 91 91 $img = ''; 92 92 93 $items['articles']['items'][0]['id'] = ''; 93 94 $items['articles']['items'][0]['timestamp'] = 0; … … 180 181 elseif(isset($hp['customfilter'])){ 181 182 //var_dump($hp); 182 183 if($hp['img']) $img = $hp['img']; 183 184 if(has_filter($hp['customfilter'])) { 185 // echo $hp['customfilter']; 186 // echo 'has filter'; 184 187 $returnarray['items'][] = apply_filters($hp['customfilter'],$hp, $i); 185 188 continue; … … 225 228 $post_title = preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); },$post_title ); 226 229 $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']); 228 231 $i++; 229 232 -
yournewsapp/trunk/include/nh_ynaa_settings.php
r1531592 r1535331 4 4 * Debug Modus 5 5 */ 6 if($ nh_ynaa->general_settings['debug'] && $nh_ynaa->general_settings['debug'] ==1 && $_GET['debug']==1){6 if($_GET['debug']==1){ 7 7 global $wpdb; 8 8 $returnarray['debug']['active']=1; … … 10 10 $returnarray['debug']['sorttype']=$nh_ynaa->general_settings['sorttype']; 11 11 $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; 13 20 14 21 } … … 154 161 if(isset($ar['customfilter'])){ 155 162 //var_dump($ar); 163 // echo $ar['customfilter']; 156 164 if(has_filter($ar['customfilter'])) { 165 157 166 $returnarray['menu'][] = apply_filters($ar['customfilter'],$ar, $k); 158 167 -
yournewsapp/trunk/nh_ynaa_plugin.php
r1531592 r1535331 2 2 /* 3 3 Plugin Name: Blappsta Plugin 4 Version: 0.8.8. 44 Version: 0.8.8.5 5 5 6 6 Plugin URI: http://wordpress.org/plugins/yournewsapp/ … … 21 21 //Temp fix folder problem 22 22 global $nh_ynaa_version; 23 $nh_ynaa_version = "0.8.8. 4";23 $nh_ynaa_version = "0.8.8.5"; 24 24 global $nh_ynaa_db_version; 25 25 $nh_ynaa_db_version=1.2; … … 30 30 //Query vars 31 31 define('QUERY_VARS_YNAA','ynaa'); 32 33 $dateTimeLocal = new DateTime(); 34 define('YNAA_TIMEZONEDIFF',$dateTimeLocal->getOffset()); 32 35 33 36 … … 126 129 public function __construct($logo_image_width=708,$logo_image_height=120) 127 130 { 131 132 date_default_timezone_set('UTC'); 133 128 134 $this->logo_image_width = $logo_image_width; 129 135 $this->logo_image_height = $logo_image_height; … … 2185 2191 //echo $intern; 2186 2192 //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']){ 2188 2194 $teasercat = 0; 2195 //echo $this->teaser_settings['limit']; 2189 2196 if($this->teaser_settings['source']=='cat') $teasercat =$this->teaser_settings['cat']; 2190 2197 $teaseritems = ($this->nh_ynaa_articles($teasercat,$this->teaser_settings['limit'],'full', true)); -
yournewsapp/trunk/readme.txt
r1531592 r1535331 5 5 Donate link: 6 6 Requires at least: 3.3.0 7 Tested up to: 4. 5.28 Stable tag: 0.8.8. 47 Tested up to: 4.6.1 8 Stable tag: 0.8.8.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 82 82 == 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 83 89 = 0.8.8.4 = 84 90 - add option hide sharing … … 442 448 443 449 == 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 444 457 = 0.8.8.4 = 445 458 - add option hide sharing
Note: See TracChangeset
for help on using the changeset viewer.