makeArticleLink($shortcode); $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE p_shortcode=:shortcode LIMIT 1"); $stmt->bindValue(':shortcode', $shortcode, PDO::PARAM_STR); $stmt->execute(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); //http://img.youtube.com/vi/udgFSH2_Ia8/0.jpg $video_youtube_uri = $rows[0]["p_videolink"]; $SSDTube->identify($video_youtube_uri); $EmbeddedVideo = $SSDTube->embed; $tumbnailVideoImg = $SSDTube->thumbnail; // category $category_id = $rows[0]["p_category"]; $catg_array = $config->array_category(); $category = $catg_array[$category_id]; $headline = $rows[0]["p_headline"]; $article = $rows[0]["p_articletext"]; $article = strip_tags($article,"


"); $video_id = $SSDTube->youtube_id; $list = explode(";",$rows[0]["p_tags"]); $AddStringContent = "Share on Instagram, Facebook, Twitter and Pinterest: "; foreach ($list as $entry23) { if (strlen($entry23)>1 && !empty($entry23)){ $keywords_list .= "$entry23 ; "; $keyword_meta .= "$entry23, "; $AddStringContent .= "$entry23, "; }//if (strlen($entry23)>1){ } $monate = array(1=>"January", 2=>"February", 3=>"March", 4=>"April", 5=>"May", 6=>"June", 7=>"July", 8=>"August", 9=>"September", 10=>"October", 11=>"November", 12=>"December"); list($pre_date,) = explode(" ",$rows[0]["p_timestamp"]); $monat = date("n",strtotime($pre_date)); $date_month = $monate[$monat]; $date_day = date("j", strtotime($pre_date)); $date_year = date("Y", strtotime($pre_date)); $AmazonMoreContentDE = ""; /* array_push($list, $headline); array_push($list, "trend"); array_push($list, "technology"); array_push($list, "startup"); array_push($list, "Handys"); array_push($list, "Samsung Galaxy"); array_push($list, "Apple iPhone"); array_push($list, "iPad"); array_push($list, "Macbook"); array_push($list, "Elektronik"); array_push($list, "Playstation"); array_push($list, "Games"); array_push($list, "Bücher"); foreach ($list as $searchAmazon) { $AmazonMoreContentDE = $func->getAmazonContentAMP($searchAmazon); //echo "Searching for: $searchAmazon - länge: " .strlen($AmazonMoreContentDE) . "
"; if (strlen($AmazonMoreContentDE)>=35){ break; } } */ //https://cdn.buzzerstar.com/image/$shortcode.png //https://www.buzzerstar.com/a.php?s=$shortcode $ReturnHtmlString .=<<
  • mit Facebook teilen
  • mit WhatsApp teilen
  • mit Pinterest teilen
  • mit Stumbleupon teilen
  • Tech Trend submitted on: $date_day of $date_month $date_year END; $ReturnContentArray = array("dateArticle"=>"$date_day. $date_month $date_year","tags"=>$keyword_meta,"content"=>$article, "headline"=>$headline,"shortcode"=>$shortcode,"image"=>"https://blog.onetopp.com/i.php?s=$shortcode", "category"=>$category,"youtube_id"=>$video_id, "youtube_image"=>$tumbnailVideoImg,"AmazonMoreContentDE"=>$AmazonMoreContentDE); return $ReturnContentArray; } } ?>