Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

adisabeba on "[Plugin: Chronosly Events Calendar] integrate with custom remote mysql database"

$
0
0

Hi Heimsveld,

Thank you for your answer, and I know this is an customazition issue. actually i want the opposite, means. I have already an event detail and orgianzer detail view from my them (exernal not chronsly). The goal is I want to use the grid view from chronosly, and the event deatail should be the template from my theme. (frontend event deatail theme, backend chronosly). And the event detail is an php... could this work?

1. I have to adjust the the SQL fields (insert the from chronolsy)
2. Rename it into single.chronoslys.php
3. Replacing with the existing template
4. Forcing the upload via FTP
5. Configuration that the event detail should use the event detail php from my theme

I know that is beyond your support, because it is an exernal template but it would be a pitty if I could not use it because I just want to make it conistent as possible... I have already premium license and a grid view.

Could this work?

The code from the existing view (theme) is as follows:

?php

/*

@name Single Event Template
@since 1.0.0
@author Pavel Richter <pavel@grandpixels.com>
@copyright Copyright (c) 2014, Grand Pixels

*/

// Sidebar
if (gp_option('gp_event_sidebar') == 'left') {
$sidebar = 'left';
} else {
$sidebar = 'right';
}

// Content Class
if (is_active_sidebar('widget_area_event')) {
$content_class = 'content-sidebar content-sidebar-' . $sidebar;
} else {
$content_class = 'one-entire';
}

get_header();
?>

<div class="canvas" itemscope itemtype="http://schema.org/MusicEvent">

<?php get_template_part('title'); ?>

<div class="grid">

<?php
if ($sidebar == 'left') {
if (is_active_sidebar('widget_area_event')) {
get_sidebar('event');
}
}
?>

<div class="content single-event <?php echo $content_class; ?>" role="main">

<?php
if (have_posts()) {
while (have_posts()) {
the_post();

$event_time = __(gp_meta('gp_event_time'));
$event_venue = __(gp_meta('gp_event_venue'));
$event_venue_url = __(gp_meta('gp_event_venue_url'));
$event_location = __(gp_meta('gp_event_location'));
$event_contact = __(gp_meta('gp_event_contact'));
$event_price = __(gp_meta('gp_event_price'));
$event_custom_meta = gp_meta('gp_event_custom_meta');
$event_status = __(gp_meta('gp_event_status'));
$event_buy_text_1 = __(gp_meta('gp_event_buy_text_1'));
$event_buy_url_1 = __(gp_meta('gp_event_buy_url_1'));
$event_buy_text_2 = __(gp_meta('gp_event_buy_text_2'));
$event_buy_url_2 = __(gp_meta('gp_event_buy_url_2'));
$event_facebook_text = __(gp_meta('gp_event_facebook_text'));
$event_facebook_url = __(gp_meta('gp_event_facebook_url'));
$event_vk_text = __(gp_meta('gp_event_vk_text'));
$event_vk_url = __(gp_meta('gp_event_vk_url'));
$event_google_map_embed = __(gp_meta('gp_event_googlemap_embed'));
$event_youtube_code = gp_get_youtube_video_id(__(gp_meta('gp_event_youtube_code')));
$event_vimeo_code = gp_get_vimeo_video_id(__(gp_meta('gp_event_vimeo_code')));

$original_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');

$post_class = 'post-' . get_the_ID() . ' post event type-event clearfix';
?>

<article class="<?php echo $post_class; ?>">

<?php if (has_post_thumbnail() || !empty($event_youtube_code) || !empty($event_vimeo_code)) { ?>
<div class="col-1 one-half float-right-important">
<?php } else { ?>
<div class="col-1 one-entire">
<?php } ?>

<?php if (has_post_thumbnail()) { ?>

<div class="post-image lightbox overlay">
">
<?php the_post_thumbnail('large', array('itemprop' => 'image')); ?>
<span class="overlay-block"><span class="overlay-icon"></span></span>

</div><!-- END // post-image -->

<?php } ?>

etc.....


Viewing all articles
Browse latest Browse all 5527

Trending Articles