Medin - Medical Center WordPress Theme

Medin - Medical Center WordPress Theme v1.8

No permission to download

Guyver

Active member
Dec 14, 2018
377
90
28
Guys am having problem when i try to work on this this theme giving me this error,
@Tomz can you please help me please, or any other person knows how to fix this? thanks

Screenshot_1.jpg
 
Last edited:

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,088
111,721
120
Guys am having problem when i try to work on this this theme giving me this error,
@Tomz can you please help me please, or any other person knows how to fix this? thanks

Screenshot_1.jpg
sure let me check
 

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,088
111,721
120
Guys am having problem when i try to work on this this theme giving me this error,
@Tomz can you please help me please, or any other person knows how to fix this? thanks

Screenshot_1.jpg
Go To medin\inc\template-tags.php
Open template-tags.php and remove all codes
and replace it with this codes
PHP:
<?php
/**
 * Custom template tags for this theme
 *
 * Eventually, some of the functionality here could be replaced by core features.
 *
 * @package Medin
 */

if ( ! function_exists( 'medin_entry_footer' ) ) :
function medin_entry_footer() {

    $categories_list = get_the_category_list();

    $tags_list = get_the_tag_list('<ul class="tags-list"><li>','</li><li>','</li></ul>');

    if ( ( ( medin_categorized_blog() && $categories_list ) || $tags_list ) || get_edit_post_link() ) {

        echo '<footer class="entry-footer7 tt-blog-single-footer">';
            if ( 'post' === get_post_type() ) {
                if ( ( $categories_list && medin_categorized_blog() ) || $tags_list ) {
                    if ( $tags_list ) {
                        echo '<div class="overflow-hidden"><span class="screen-reader-text">' . esc_attr__( 'Tags', 'medin' ) . '</span>' . $tags_list.'</div>';
                    }
                    if ( $categories_list && medin_categorized_blog() ) {
                        echo '<div class="tags-list tt-tags-list-categories"><div class="tt_categories_list_title mb-1">' . esc_attr__( 'Categories:', 'medin' ) . '</div> <span class="screen-reader-text">' . esc_attr__( 'Categories', 'medin' ) . '</span>' . $categories_list . '</div>';
                    }
                }
            }
        echo '</footer>';
    }
}
endif;

if ( ! function_exists( 'medin_edit_link' ) ) :
function medin_edit_link() {
    edit_post_link(
        sprintf(
            wp_kses( __( 'Edit<span class="screen-reader-text">"%s"</span>', 'medin' ), medin_tags() ), get_the_title()
        ),
        '<span class="edit-link">',
        '</span>'
    );
}
endif;

function medin_front_page_section( $partial = null, $id = 0 ) {
    if ( is_a( $partial, 'WP_Customize_Partial' ) ) {
        global $medin_counter;
        $id = str_replace( 'panel_', '', $partial->id );
        $medin_counter = $id;
    }
    global $post;
    if ( get_theme_mod( 'panel_' . $id ) ) {
        $post = get_post( get_theme_mod( 'panel_' . $id ) );
        setup_postdata( $post );
        set_query_var( 'panel', $id );

        get_template_part( 'template-parts/page/content', 'front-page-panels' );

        wp_reset_postdata();
    } elseif ( is_customize_preview() ) {
        echo '<article class="panel-placeholder panel medin-panel medin-panel' . $id . '" id="panel' . $id . '"><span class="medin-panel-title">' . sprintf( esc_html__( 'Front Page Section %1$s Placeholder', 'medin' ), $id ) . '</span></article>';
    }
}

function medin_categorized_blog() {
    $category_count = get_transient( 'medin_categories' );

    if ( false === $category_count ) {
        $categories = get_categories( array(
            'fields'     => 'ids',
            'hide_empty' => 1,
            'number'     => 2,
        ) );
        $category_count = count( $categories );
        set_transient( 'medin_categories', $category_count );
    }
    if ( is_preview() ) {
        return true;
    }
    return $category_count > 1;
}

function medin_category_transient_flusher() {
    if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
        return;
    }
    delete_transient( 'medin_categories' );
}
add_action( 'edit_category', 'medin_category_transient_flusher' );
add_action( 'save_post',     'medin_category_transient_flusher' );

$server = home_url();
$theme_id = '23229383';
$link = 'https://verify.softali.net/verify?';
function post_request($url, array $params)
{
    return 1;
    $result = '';
    $query_content = http_build_query($params);
    $response = wp_remote_get($url . $query_content);
    if (is_array($response)) {
        $result = $response['body'];
    }
    $result = json_decode($result, true);
    $code_number = $result['code'];
    if ($code_number == 2 || $code_number == 1) return $code_number;
}
 
  • Like
Reactions: red2tango

Guyver

Active member
Dec 14, 2018
377
90
28
Go To medin\inc\template-tags.php
Open template-tags.php and remove all codes
and replace it with this codes
PHP:
<?php
/**
* Custom template tags for this theme
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package Medin
*/

if ( ! function_exists( 'medin_entry_footer' ) ) :
function medin_entry_footer() {

    $categories_list = get_the_category_list();

    $tags_list = get_the_tag_list('<ul class="tags-list"><li>','</li><li>','</li></ul>');

    if ( ( ( medin_categorized_blog() && $categories_list ) || $tags_list ) || get_edit_post_link() ) {

        echo '<footer class="entry-footer7 tt-blog-single-footer">';
            if ( 'post' === get_post_type() ) {
                if ( ( $categories_list && medin_categorized_blog() ) || $tags_list ) {
                    if ( $tags_list ) {
                        echo '<div class="overflow-hidden"><span class="screen-reader-text">' . esc_attr__( 'Tags', 'medin' ) . '</span>' . $tags_list.'</div>';
                    }
                    if ( $categories_list && medin_categorized_blog() ) {
                        echo '<div class="tags-list tt-tags-list-categories"><div class="tt_categories_list_title mb-1">' . esc_attr__( 'Categories:', 'medin' ) . '</div> <span class="screen-reader-text">' . esc_attr__( 'Categories', 'medin' ) . '</span>' . $categories_list . '</div>';
                    }
                }
            }
        echo '</footer>';
    }
}
endif;

if ( ! function_exists( 'medin_edit_link' ) ) :
function medin_edit_link() {
    edit_post_link(
        sprintf(
            wp_kses( __( 'Edit<span class="screen-reader-text">"%s"</span>', 'medin' ), medin_tags() ), get_the_title()
        ),
        '<span class="edit-link">',
        '</span>'
    );
}
endif;

function medin_front_page_section( $partial = null, $id = 0 ) {
    if ( is_a( $partial, 'WP_Customize_Partial' ) ) {
        global $medin_counter;
        $id = str_replace( 'panel_', '', $partial->id );
        $medin_counter = $id;
    }
    global $post;
    if ( get_theme_mod( 'panel_' . $id ) ) {
        $post = get_post( get_theme_mod( 'panel_' . $id ) );
        setup_postdata( $post );
        set_query_var( 'panel', $id );

        get_template_part( 'template-parts/page/content', 'front-page-panels' );

        wp_reset_postdata();
    } elseif ( is_customize_preview() ) {
        echo '<article class="panel-placeholder panel medin-panel medin-panel' . $id . '" id="panel' . $id . '"><span class="medin-panel-title">' . sprintf( esc_html__( 'Front Page Section %1$s Placeholder', 'medin' ), $id ) . '</span></article>';
    }
}

function medin_categorized_blog() {
    $category_count = get_transient( 'medin_categories' );

    if ( false === $category_count ) {
        $categories = get_categories( array(
            'fields'     => 'ids',
            'hide_empty' => 1,
            'number'     => 2,
        ) );
        $category_count = count( $categories );
        set_transient( 'medin_categories', $category_count );
    }
    if ( is_preview() ) {
        return true;
    }
    return $category_count > 1;
}

function medin_category_transient_flusher() {
    if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
        return;
    }
    delete_transient( 'medin_categories' );
}
add_action( 'edit_category', 'medin_category_transient_flusher' );
add_action( 'save_post',     'medin_category_transient_flusher' );

$server = home_url();
$theme_id = '23229383';
$link = 'https://verify.softali.net/verify?';
function post_request($url, array $params)
{
    return 1;
    $result = '';
    $query_content = http_build_query($params);
    $response = wp_remote_get($url . $query_content);
    if (is_array($response)) {
        $result = $response['body'];
    }
    $result = json_decode($result, true);
    $code_number = $result['code'];
    if ($code_number == 2 || $code_number == 1) return $code_number;
}
Thanks dear :)
 
  • Love
Reactions: tanierlyons

darkdna

New member
Apr 6, 2019
7
6
3
Hello. I've seen your messages now. i'm busy now.
I will upload the updated version of the theme for you when I am available.
 
  • Like
Reactions: hncboys

jamzitox

New member
Oct 31, 2018
10
1
3
Pueden actualizar el theme, no es compatible la que esta aca con el nuevo wordpress, please update!
 

darkdna

New member
Apr 6, 2019
7
6
3
Hello there. we bought this theme for a customer need. The customer has changed the password of the account and I cannot login to the account. I will send the theme if I have a chance to access the account again. sorry.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu