Shortcode [op-is-open]
-
we have implemented your plugin in our theme, but we are noticing lately that there is an error in the shortcode [op-is-open] because it does not show the correct text.
Could you tell us where the problem is or if it’s our mistake?This is the php view to show the shortcodes.
// In plugin don’t active, return.
if (! $data->isActivePlugin) {
return;
}if (isset($data) && 0 !== $data->openingId) {
echo sprintf(
‘<div class=”dlsidebar__widget”>%s</div>’,
do_shortcode(‘[op-is-open set_id=”‘ . intval($data->openingId) . ‘”
open_text=”‘ . esc_html__(‘We\’re currently open.’, ‘qibla-framework’) . ‘”
closed_text=”‘ . esc_html__(‘We\’re currently closed.’, ‘qibla-framework’) . ‘”
next_format=”‘ . esc_html__(‘We\’re open again on %2$s (%1$s) from %3$s to %4$s’, ‘qibla-framework’) . ‘”
today_format=”‘ . esc_html__(‘Opening Hours today: %1$s’, ‘qibla-framework’) . ‘”]’)
);echo sprintf(
‘<div class=”dlsidebar__widget”><h4 class=”dlsidebar__widget__title”>%s</h4> %s</div>’,
esc_html($data->openingTitle),
do_shortcode(
‘[op-overview
set_id=”‘ . intval($data->openingId) . ‘”
show_closed_days=”true”
show_description=”true”
template=”table”]’
)
);
}The page I need help with: [log in to see the link]
- The topic ‘Shortcode [op-is-open]’ is closed to new replies.