File "curation.php"
Full Path: /www/wwwroot/shphe-en.com/wp-content/plugins/blog2social/views/b2s/curation.php
File size: 20.08 KB
MIME-type: --
Charset: utf-8
<?php
wp_nonce_field('b2s_security_nonce', 'b2s_security_nonce');
/* Data */
$userLang = strtolower(substr(get_locale(), 0, 2));
$options = new B2S_Options(B2S_PLUGIN_BLOG_USER_ID);
$optionUserTimeZone = $options->_getOption('user_time_zone');
$userTimeZone = ($optionUserTimeZone !== false) ? $optionUserTimeZone : get_option('timezone_string');
$userTimeZoneOffset = (empty($userTimeZone)) ? get_option('gmt_offset') : B2S_Util::getOffsetToUtcByTimeZone($userTimeZone);
$selSchedDate = (isset($_GET['schedDate']) && !empty($_GET['schedDate'])) ? date("Y-m-d H:i:s", (strtotime($_GET['schedDate'] . ' ' . gmdate('H:i:s')))) : ""; //routing from calendar
?>
<div class="b2s-container">
<div class="b2s-inbox">
<div class="col-md-12 del-padding-left">
<div class="col-md-9 del-padding-left del-padding-right">
<!--Header|Start - Include-->
<?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/header.php'); ?>
<!--Header|End-->
<div class="clearfix"></div>
<!--Content|Start-->
<div class="panel panel-default">
<div class="panel-body">
<div class="b2s-post">
<div class="grid-body">
<?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/post.navbar.php'); ?>
<br>
</div>
</div>
<div class="clearfix"></div>
<div id="b2s-curation-no-review-info" class="alert alert-danger">
<span class="glyphicon glyphicon-remove glyphicon-danger"></span> <?php esc_html_e('No link preview available. Please check your link.', 'blog2social'); ?>
</div>
<div id="b2s-curation-no-auth-info" class="alert alert-danger">
<span class="glyphicon glyphicon-remove glyphicon-danger"></span> <?php esc_html_e('No connected networks. Please make sure to connect at least one social media account.', 'blog2social'); ?>
</div>
<div id="b2s-curation-no-data-info" class="alert alert-danger">
<span class="glyphicon glyphicon-remove glyphicon-danger"></span> <?php esc_html_e('Invalid data. Please check your data.', 'blog2social'); ?>
</div>
<div id="b2s-curation-saved-draft-info" class="alert alert-success">
<span class="glyphicon glyphicon-success glyphicon-ok"></span> <?php esc_html_e('Saved as draft.', 'blog2social'); ?>
</div>
<div class="b2s-curation-area">
<div class="row b2s-curation-select">
<div class="col-md-12">
<button class="btn btn-primary btn-sm b2s-curation-format-link pull-left"><?php esc_html_e('Link Post', 'blog2social') ?></button>
<?php if(B2S_PLUGIN_USER_VERSION > 0) { ?>
<button class="btn btn-light btn-sm b2s-curation-format-image pull-left"><?php esc_html_e('Image Post', 'blog2social') ?> <span class="label label-success"><?php esc_html_e("NEW", "blog2social") ?></span></button>
<?php } else { ?>
<button class="btn btn-light btn-sm b2s-curation-info-premium-btn pull-left"><?php esc_html_e('Image Post', 'blog2social') ?> <span class="label label-success"><?php esc_html_e("SMART", "blog2social") ?></span></button>
<?php } ?>
<input type="hidden" id="b2s-curation-post-format" value="0">
</div>
</div>
<form id="b2s-curation-post-form" method="post">
<div class="b2s-loading-area" style="display:none">
<br>
<div class="b2s-loader-impulse b2s-loader-impulse-md"></div>
<div class="clearfix"></div>
<div class="text-center b2s-loader-text"><?php esc_html_e("Load data...", "blog2social"); ?></div>
</div>
<div class="b2s-curation-link-area">
<div class="b2s-curation-input-area">
<div class="col-md-12">
<div class="row form-group">
<p class="b2s-curation-input-area-info-header-text"> <?php esc_html_e("Enter a link you want share on your social media channels", "blog2social"); ?></p>
<small id="b2s-curation-input-url-help" class="form-text text-muted b2s-color-text-red"><?php esc_html_e("Please enter a valid link", "blog2social") ?></small>
<input type="email" class="form-control" id="b2s-curation-input-url" value="" placeholder="<?php esc_html_e("Enter link", "blog2social"); ?>">
<div class="clearfix"></div>
<div class="b2s-curation-input-area-btn">
<button class="btn btn-primary b2s-btn-curation-continue"><?php esc_html_e("continue", "blog2social"); ?></button>
</div>
</div>
</div>
</div>
<div class="b2s-curation-result-area">
<div class="col-md-12">
<input type="hidden" id="b2s_user_timezone" name="b2s_user_timezone" value="<?php echo $userTimeZoneOffset ?>">
<div class="b2s-curation-preview-area"></div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="row b2s-curation-image-area">
<div class="col-md-12">
<input type="hidden" id="b2s_user_timezone" name="b2s_user_timezone" value="<?php echo $userTimeZoneOffset ?>">
<div class="b2s-curation-form-area">
<div class="col-xs-12 col-sm-5 col-lg-3">
<button class="btn btn-primary btn-circle b2s-image-remove-btn" style="display:none;" type="button"><i class="glyphicon glyphicon-trash"></i></button>
<img src="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>" class="b2s-post-item-details-url-image center-block img-responsive">
<input type="hidden" class="b2s-image-url-hidden-field form-control" value="" name="image_url">
<input type="hidden" class="b2s-image-id-hidden-field form-control" value="" name="image_id">
<div class="clearfix"></div>
<button class="btn btn-link btn-xs center-block b2s-select-image-modal-open"><?php esc_html_e('Change image', 'blog2social'); ?></button>
</div>
<div class="col-xs-12 col-sm-7 col-lg-9">
<div class="b2s-post-item-details-item-message-area">
<textarea id="b2s-post-curation-comment-image" class="form-control b2s-post-item-details-item-message-input" name="comment_image" placeholder="<?php esc_html_e('Write something...', 'blog2social'); ?>"></textarea>
<button type="button" class="btn btn-sm b2s-post-item-details-item-message-emoji-btn">☺</button>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="b2s-curation-settings-area"></div>
<input type="hidden" id="b2s-draft-id" value="" name="b2s-draft-id">
</form>
<div class="row b2s-curation-post-list-area">
<div class="b2s-curation-post-list"></div>
<div class="col-md-12">
<div class="pull-right">
<button class="btn btn-primary b2s-re-share-btn"><?php esc_html_e('Re-share this post', 'blog2social') ?></button>
<a class="btn btn-primary" href="admin.php?page=blog2social-curation"><?php esc_html_e('Create a new post', 'blog2social') ?></a>
</div>
</div>
</div>
<input type="hidden" id="b2sSelSchedDate" value="<?php echo (($selSchedDate != "") ? strtotime($selSchedDate) . '000' : ''); ?>">
<input type="hidden" id="b2sServerUrl" value="<?php echo B2S_PLUGIN_SERVER_URL; ?>">
<input type="hidden" id="b2sJsTextPublish" value="<?php esc_html_e('published', 'blog2social') ?>">
<input type="hidden" id="b2sEmojiTranslation" value='<?php echo json_encode(B2S_Tools::getEmojiTranslationList()); ?>'>
<input type="hidden" id="b2sDefaultNoImage" value="<?php echo plugins_url('/assets/images/no-image.png', B2S_PLUGIN_FILE); ?>">
</div>
</div>
</div>
</div>
<?php require_once (B2S_PLUGIN_DIR . 'views/b2s/html/sidebar.php'); ?>
</div>
</div>
</div>
<div class="modal fade b2s-publish-approve-modal" tabindex="-1" role="dialog" aria-labelledby="b2s-publish-approve-modal" aria-hidden="true" data-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php esc_html_e('Do you want to mark this post as published ?', 'blog2social') ?> </h4>
</div>
<div class="modal-body">
<input type="hidden" value="" id="b2s-approve-network-auth-id">
<input type="hidden" value="" id="b2s-approve-post-id">
<button class="btn btn-success b2s-approve-publish-confirm-btn"><?php esc_html_e('YES', 'blog2social') ?></button>
<button class="btn btn-default" data-dismiss="modal"><?php esc_html_e('NO', 'blog2social') ?></button>
</div>
</div>
</div>
</div>
<div id="b2s-sched-post-modal" class="modal fade" role="dialog" aria-labelledby="b2s-sched-post-modal" aria-hidden="true" data-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="b2s-modal-close close" data-modal-name="#b2s-sched-post-modal">×</button>
<h4 class="modal-title"><?php esc_html_e('Need to schedule your posts?', 'blog2social') ?></h4>
</div>
<div class="modal-body">
<p><?php esc_html_e('Blog2Social Premium covers everything you need.', 'blog2social') ?></p>
<br>
<div class="clearfix"></div>
<b><?php esc_html_e('Schedule for specific dates', 'blog2social') ?></b>
<p><?php esc_html_e('You want to publish a post on a specific date? No problem! Just enter your desired date and you are ready to go!', 'blog2social') ?></p>
<br>
<b><?php esc_html_e('Schedule post recurrently', 'blog2social') ?></b>
<p><?php esc_html_e('You have evergreen content you want to re-share from time to time in your timeline? Schedule your evergreen content to be shared once, multiple times or recurringly at specific times.', 'blog2social') ?></p>
<br>
<b><?php esc_html_e('Best Time Scheduler', 'blog2social') ?></b>
<p><?php esc_html_e('Whenever you publish a post, only a fraction of your followers will actually see your post. Use the Blog2Social Best Times Scheduler to share your post at the best times for each social network. Get more outreach and extend the lifespan of your posts.', 'blog2social') ?></p>
<br>
<?php if (B2S_PLUGIN_USER_VERSION == 0) { ?>
<hr>
<?php esc_html_e('With Blog2Social Premium you can:', 'blog2social') ?>
<br>
<br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Post on pages and groups', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Share on multiple profiles, pages and groups', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Auto-post and auto-schedule new and updated blog posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your posts at the best times on each network', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Best Time Manager: use predefined best time scheduler to auto-schedule your social media posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your post for one time, multiple times or recurrently', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule and re-share old posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select link format or image format for your posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select individual images per post', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Reporting & calendar: keep track of your published and scheduled social media posts', 'blog2social') ?><br>
<br>
<a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to SMART and above', 'blog2social') ?></a>
<br>
<center> <?php echo sprintf(__('or <a target="_blank" href="%s">start with free 30-days-trial of Blog2Social Premium</a> (no payment information needed)', 'blog2social'), esc_url('https://service.blog2social.com/trial')); ?> </center>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="modal fade" id="b2sInfoCCModal" tabindex="-1" role="dialog" aria-labelledby="b2sInfoCCModal" aria-hidden="true" data-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title"><?php esc_html_e('Blog2Social: Social Media Posts', 'blog2social') ?></h4>
</div>
<div class="modal-body">
<p><?php
echo esc_html__('This is a premium feature.', 'blog2social');
if (B2S_PLUGIN_USER_VERSION == 0) {
?>
<br>
<hr>
<h4><?php esc_html_e('You wannt to create image posts with any image from your media library?', 'blog2social'); ?></h4>
<?php esc_html_e('With Blog2Social Premium you can:', 'blog2social') ?>
<br>
<br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Post on pages and groups', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Share on multiple profiles, pages and groups', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Auto-post and auto-schedule new and updated blog posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your posts at the best times on each network', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Best Time Manager: use predefined best time scheduler to auto-schedule your social media posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule your post for one time, multiple times or recurrently', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Schedule and re-share old posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select link format or image format for your posts', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Select individual images per post', 'blog2social') ?><br>
<span class="glyphicon glyphicon-ok glyphicon-success"></span> <?php esc_html_e('Reporting & calendar: keep track of your published and scheduled social media posts', 'blog2social') ?><br>
<br>
<a target="_blank" href="<?php echo esc_url(B2S_Tools::getSupportLink('affiliate')); ?>" class="btn btn-success center-block"><?php esc_html_e('Upgrade to SMART and above', 'blog2social') ?></a>
<br>
<center> <?php echo sprintf(__('or <a target="_blank" href="%s">start with free 30-days-trial of Blog2Social Premium</a> (no payment information needed)', 'blog2social'), esc_url('https://service.blog2social.com/trial')); ?> </center>
<?php } ?>
</div>
</div>
</div>
</div>
<div id="b2s-network-select-image" class="modal fade" role="dialog" aria-labelledby="b2s-network-select-image" aria-hidden="true" data-backdrop="false">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="b2s-modal-close close" data-modal-name="#b2s-network-select-image">×</button>
<h4 class="modal-title"><?php esc_html_e('Select image', 'blog2social') ?></h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12">
<?php
require_once B2S_PLUGIN_DIR . 'includes/B2S/Ship/Image.php';
$image = new B2S_Ship_Image('curation');
echo $image->getItemHtml(0, '', '', $userLang);
?>
</div>
</div>
</div>
</div>
</div>
</div>