PluginProbe
Social Share Buttons / 0.9
Social Share Buttons v0.9
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
share-button / admin / page_editor.php

page_editor.php in Social Share Buttons 0.9, at admin/page_editor.php

55 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace MBSocial;
3 defined('ABSPATH') or die('No direct access permitted');
4
5 use MaxButtons\maxButton as maxButton;
6
7 $button = new maxButton(); // this loads the maxblocks template files
8
9 $header = array(
10 'title' => __('WordPress Share Buttons','mbsocial')
11 );
12
13 $mainclass = 'maxbuttons-social-editor';
14 $admin = mbSocial()->admin();
15 $admin->header($header);
16
17
18 $collection_ids = collections::getCollections();
19
20
21 if (count($collection_ids) == 0)
22 $collection_ids = array(0);
23
24
25 ?>
26
27 <?php foreach ($collection_ids as $collection_id): ?>
28
29 <?php if ($collection_id > 0): ?>
30 <div class='mb-message shortcode'>
31 <?php printf(__('Shortcode for manual use: [maxsocial id="%s"]','mbsocial'), $collection_id); ?>
32 </div>
33 <?php endif; ?>
34
35 <form class='mb-ajax-form' data-action='save-share'>
36 <input type='hidden' name="collection_id" value="<?php echo $collection_id ?>" />
37
38
39 <div class="form-actions ">
40 <button type="button" class="button-primary button-save mb-ajax-submit" data-action='save_collection'><?php _e('Save', 'maxbuttons') ?></button>
41 </div>
42
43 <?php include('share_editor.php'); ?>
44
45 <?php //$admin->output_defined_fields(); ?>
46
47
48
49 <div class="form-actions">
50 <button type="button" class="button-primary button-save mb-ajax-submit" data-action='save_collection'><?php _e('Save', 'maxbuttons') ?></button>
51 </div>
52 <?php $admin->footer(); ?>
53 </form>
54 <?php endforeach; ?>
55