function vicomi_feelbacks_template($content)
{
    global $EMBED;
    if (!is_singular()) {
        return;
    }
    if (!vicomi_feelbacks_is_installed() || !vicomi_feelbacks_can_replace()) {
        return $content;
    }
    $EMBED = true;
    $plugin_content = '<div id="vc-feelback-main" data-access-token="' . get_option('vicomi_feelbacks_api_key') . '"></div>' . '<script type="text/javascript" src="http://assets-prod.vicomi.com/vicomi.js"></script>';
    return $content . $plugin_content;
}
示例#2
0
if (vicomi_feelbacks_is_installed()) {
    $current_url = $moderation_url;
} else {
    $current_url = $login_url;
}
?>
<div class="wrap">

	<div class="vicomi-feelbacks-header">
		<div class="vicomi-feelbacks-menu">
			<span rel="vicomi-feelbacks-page" class="selected"><?php 
echo vicomi_feelbacks_is_installed() ? 'Dashboard' : 'Install';
?>
</span>
            <?php 
if (vicomi_feelbacks_is_installed()) {
    ?>
                <span rel="vicomi-feelbacks-settings">Settings</span>
            <?php 
}
?>
		</div>
	</div>

    <div class="vicomi-feelbacks-content">

         <div class="vicomi-feelbacks-page">
            <iframe src="<?php 
echo $current_url;
?>
" style="width: 100%; height: 80%; min-height: 600px;"></iframe>