Edit File: post-9.php
<?php defined( 'ABSPATH' ) || exit; // Exit directly $metabox_options = get_post_meta( get_the_ID(), 'orun_post_opt', true ); $view = get_post_meta( get_the_ID(), 'post_views_count', true ); ?> <?php if (!empty($metabox_options['orun-meta-opt-primary-category'])) { $primarycat = get_term($metabox_options['orun-meta-opt-primary-category']); $term_id = $primarycat->term_id; } else { $categories = get_the_category(); if (!empty($categories)) { $term_id = $categories[0]->term_id; } } $bg_color = '#000'; $text_color = '#fff'; if (isset($term_id)) { global $wpdb; $table_name = $wpdb->prefix . 'termmeta'; $bg_color_meta_key = 'bg_color'; $bg_color_value = $wpdb->get_var($wpdb->prepare("SELECT meta_value FROM $table_name WHERE term_id = %d AND meta_key = %s", $term_id, $bg_color_meta_key)); if ($bg_color_value) { $bg_color = $bg_color_value; } } ?> <style> .badge-review { display: inline-block; height: 40px; border-radius: 20px; padding: 11px 15px; border: 1px solid #d6d7db; } .badge-review .star1:before { content: "★☆☆☆☆"; font-family: Line Awesome Free; font-weight: 400; color: #ffdd0f; font-size: 24px; } .badge-review .star2:before { content: "★★☆☆☆"; font-family: Line Awesome Free; font-weight: 400; color: #ffdd0f; font-size: 24px; } .badge-review .star3:before { content: "★★★☆☆"; font-family: Line Awesome Free; font-weight: 400; color: #ffdd0f; font-size: 24px; } .badge-review .star4:before { content: "★★★★☆"; font-family: Line Awesome Free; font-weight: 400; color: #ffdd0f; font-size: 24px; } .badge-review .star4::after { content: "4/10"; font-family: inherit; margin-left: 1rem; font-weight: 700; font-size: 1em; line-height: 1em; color: #111111; } .badge-review .star5:before { content: "★★★★★"; font-family: Line Awesome Free; font-weight: 400; color: #ffdd0f; font-size: 24px; } .orun-pm-affi-text strong { font-weight: 700; font-size: 25px; line-height: 1.25em; color: #111111; } .orun-pm-affi-text span { display: inline-block; font-weight: 700; font-size: 16px; line-height: 1.25em; color: #2e3246; padding-bottom: 5px; } .orun-pm-affi-text { font-size: 12px; } </style> <div class="orun-pm-item orun-col-p100-fw"> <div class="orun-pm-text"> <div class="orun-col-p25"> <div class="orun-pm-text-inner right"> <img width="80" height="80" class="affi-img" src="//e2d5j2b4.stackpathcdn.com/002/wp-content/uploads/sites/6/2022/11/logo-15-80x80.webp"> </div> </div> <div class="orun-col-p25"> <div class="orun-pm-text-inner right"> <div class="orun-pm-affi-text"> <p> Get up to: <br> <strong>100 Free Spins</strong> <br> <span>1 for every $10 deposit</span> <br>1 Free Spin credited for every $10 deposit. Up to 65 Free Spins valued at $0.15 each on Book. </p> </div> </div> </div> <div class="orun-col-p25"> <div class="orun-pm-text-inner right"> <div class="badge-review"> <div class="star4"></div> </div> </div> </div> <div class="orun-col-p25"> <div class="orun-pm-text-inner"> <div class="orun-pm-button"> <a style="color: #000; border-color: #000;" rel="nofollow" href="" class="orun-pm-cat-button "> <span> Devamını Oku </span> </a> </div> </div> </div> </div> </div>