makeArticleLink($shortcode); $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["xImage"]; $y = $imageRetArray["yImage"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $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]; $similar = $rows[0]["p_similar"]; $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 = "Coole Themen zum Teilen auf Instagram, Facebook, Twitter und Pinterest: "; $MoreContentDE = "
    "; foreach ($list as $entry23) { if (strlen($entry23)>1 && !empty($entry23)){ $keywords_list .= "$entry23 ; "; $keyword_meta .= "$entry23, "; $AddStringContent .= "$entry23, "; $MoreContentDE .= "
  • $entry23
  • "; }//if (strlen($entry23)>1){ } $MoreContentDE .= "
"; $similar_links = "DAS KÖNNTE EUCH AUCH INTERESSIEREN:

    "; $similar_array = explode(";",$similar); $sim_count = 0; foreach ($similar_array as $e) { if (strlen($e)>1 && $sim_count <= 3){ $link_amp = str_replace(".html",".amp.html", $func->makeArticleLink($e)); $link_sim = "https://www.buzzerstar.com/$link_amp"; $headl_sim = $func->getArticleHeadline($e); $similar_links .= "
  1. $headl_sim

  2. "; $sim_count++; }//if (strlen($entry23)>1){ } $similar_links .= "
"; if (strlen($similar) <= 5){ $similar_links = ""; } $monate = array(1=>"Januar", 2=>"Februar", 3=>"März", 4=>"April", 5=>"Mai", 6=>"Juni", 7=>"Juli", 8=>"August", 9=>"September", 10=>"Oktober", 11=>"November", 12=>"Dezember"); 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, "Berlin Tag und Nacht"); array_push($list, "BTN"); array_push($list, "RTL2"); 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
  • Artikel veröffentlicht am: $date_day. $date_month $date_year END; $ReturnContentArray = array("dateArticle"=>"$date_day. $date_month $date_year","tags"=>$keyword_meta,"content"=>$article ."

    $similar_links

    ", "headline"=>$headline,"shortcode"=>$shortcode,"image"=>"https://cdn.buzzerstar.com/image/$shortcode.png", "category"=>$category,"youtube_id"=>$video_id, "youtube_image"=>$tumbnailVideoImg,"AmazonMoreContentDE"=>$AmazonMoreContentDE, "MoreContent"=>$MoreContentDE); return $ReturnContentArray; } } ?>