| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<?php include ('include/data.php'); ?> |
| 3 |
<form action="admin.php?page=<?php echo $this->pluginname;?>" method="post"> |
| 4 |
<div class="wowcolom"> |
| 5 |
<div id="wow-leftcol"> |
| 6 |
<input placeholder="Name is used only for admin purposes" type='text' name='title' value="<?php echo $title; ?>" class="wowbox" id="title"> |
| 7 |
|
| 8 |
<div class="tab-box wow-admin"> |
| 9 |
<ul class="tab-nav"> |
| 10 |
<li><a href="#t1"><span class="fa fa-code"></span> HTML</a></li> |
| 11 |
<li><a href="#t2"><span class="fa fa-code"></span> CSS</a></li> |
| 12 |
<li><a href="#t3"><span class="fa fa-code"></span> JS</a></li> |
| 13 |
<li><a href="#t4"><span class="fa fa-files-o"></span> Include</a></li> |
| 14 |
</ul> |
| 15 |
<div class="tab-panels wp-coder"> |
| 16 |
<div id="t1"> |
| 17 |
<div class="itembox"> |
| 18 |
<div class="item-title"> |
| 19 |
<h3>HTML</h3> |
| 20 |
</div> |
| 21 |
<div class="wow-admin-col"> |
| 22 |
<div class="wow-admin-col-12"> |
| 23 |
<textarea id="content_html" mode="html" name="param[content_html]" class="wp-coder"> |
| 24 |
<?php if(!empty($param['content_html'])) { echo trim($param['content_html']); } ?> |
| 25 |
</textarea> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
<div id="t2"> |
| 31 |
<div class="itembox"> |
| 32 |
<div class="item-title"> |
| 33 |
<h3>CSS</h3> |
| 34 |
<small>Enter css code without tag 'style'</small> |
| 35 |
</div> |
| 36 |
<div class="wow-admin-col"> |
| 37 |
<div class="wow-admin-col-12"> |
| 38 |
<div class="code-mirror-before"><div><style type="text/css"></div></div> |
| 39 |
<textarea id="content_css" mode="text/css" name="param[content_css]" class="wp-coder"> |
| 40 |
<?php if(!empty($param['content_css'])) { echo trim($param['content_css']); } ?> |
| 41 |
</textarea> |
| 42 |
<div class="code-mirror-after"><div></style></div></div> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
<div id="t3"> |
| 48 |
<div class="itembox"> |
| 49 |
<div class="item-title"> |
| 50 |
<h3>JS</h3> |
| 51 |
<small>Enter javascript code without tag 'script'</small> |
| 52 |
</div> |
| 53 |
<div class="wow-admin-col"> |
| 54 |
<div class="wow-admin-col-12"> |
| 55 |
<div class="code-mirror-before"><div><script type="text/javascript"></div></div> |
| 56 |
<textarea id="content_js" mode="text/javascript" name="param[content_js]" class="wp-coder"> |
| 57 |
<?php if(!empty($param['content_js'])) { echo trim($param['content_js']); } ?> |
| 58 |
</textarea> |
| 59 |
<div class="code-mirror-after"><div></script></div></div> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
</div> |
| 64 |
|
| 65 |
<div id="t4"> |
| 66 |
<div class="itembox"> |
| 67 |
<div class="item-title"> |
| 68 |
<h3>Include files</h3> |
| 69 |
</div> |
| 70 |
<div id="include_file" > |
| 71 |
<?php $count_include = !empty($param['include']) ? count($param['include']) : 0; |
| 72 |
if ($count_include > 0){ |
| 73 |
for ($i = 0; $i < $count_include; $i++) { ?> |
| 74 |
<div class="wow-admin-col include-file"> |
| 75 |
<div class="wow-admin-col-3"> |
| 76 |
Type of file:<br/> |
| 77 |
<select name="param[include][<?php echo $i;?>]"> |
| 78 |
<option <?php if($param['include'][$i]=='css') { echo 'selected="selected"'; } ?>>css</option> |
| 79 |
<option <?php if($param['include'][$i]=='js') { echo 'selected="selected"'; } ?>>js</option> |
| 80 |
</select> |
| 81 |
</div> |
| 82 |
<div class="wow-admin-col-6"> |
| 83 |
URL to file:<br/> |
| 84 |
<input type="text" name="param[include_file][<?php echo $i;?>]" value="<?php echo $param['include_file'][$i]; ?>"> |
| 85 |
</div> |
| 86 |
</div> |
| 87 |
<?php |
| 88 |
} |
| 89 |
} |
| 90 |
?> |
| 91 |
</div> |
| 92 |
<div class="submit-bottom"> |
| 93 |
<input type="button" value="Add new" class="formsub fully-rounded" onclick="itemadd()"> |
| 94 |
<input type="button" class="formpreview fully-rounded" value="Delete last" onclick="itemremove()"> |
| 95 |
</div> |
| 96 |
</div> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
</div> |
| 100 |
</div> |
| 101 |
<div id="wow-rightcol"> |
| 102 |
<div class="wowbox"> |
| 103 |
<h3>Publish</h3> |
| 104 |
<div class="wow-admin" style="display: block;"> |
| 105 |
<div class="wow-admin" style="display: block;"> |
| 106 |
<div class="wow-admin-col"> |
| 107 |
<div class="wow-admin-col-6"> |
| 108 |
<?php if ($id != ""){ echo '<p class="wowdel"><a href="admin.php?page='.$pluginname.'&info=del&did='.$id.'">Delete</a></p>';}; ?> |
| 109 |
</div> |
| 110 |
<div class="wow-admin-col-6 right"> |
| 111 |
<p/> |
| 112 |
<input name="submit" id="submit" class="button button-primary" value="<?php echo $btn; ?>" type="submit"> |
| 113 |
</div> |
| 114 |
</div> |
| 115 |
</div> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
<div class="wowbox"> |
| 119 |
<h3>Display</h3> |
| 120 |
<div class="inside wow-admin" style="display: block;"> |
| 121 |
<?php |
| 122 |
if(class_exists( 'Coder_Class_Extension' )){ |
| 123 |
do_action('wp_coder_extensions'); |
| 124 |
} |
| 125 |
else{ ?> |
| 126 |
<div class="wow-admin-col wow-wrap"> |
| 127 |
<div class="wow-admin-col-12"> |
| 128 |
Show for users: <br/> |
| 129 |
<input type="radio" checked="checked"> All users <br /> |
| 130 |
<input type="radio" disabled="disabled"> If a user logged in <a href='admin.php?page=<?php echo $pluginname;?>&tool=extension' title="Need Extension"><span class="dashicons dashicons-lock" style="color:#37c781;"></span></a><br /> |
| 131 |
<input type="radio" disabled="disabled"> If user not logged <a href='admin.php?page=<?php echo $pluginname;?>&tool=extension' title="Need Extension"><span class="dashicons dashicons-lock" style="color:#37c781;"></span></a> |
| 132 |
</div> |
| 133 |
<div class="wow-admin-col-12"> |
| 134 |
<input type="checkbox" disabled="disabled"> Depending on the language <a href='admin.php?page=<?php echo $pluginname;?>&tool=extension' title="Need Extension"><span class="dashicons dashicons-lock" style="color:#37c781;"></span></a> |
| 135 |
</div> |
| 136 |
<div class="wow-admin-col-12"> |
| 137 |
Insert on the website:<br/> |
| 138 |
<select name='param[show]' onchange="showchange();" > |
| 139 |
<option value="shortecode">Where shortcode is inserted</option> |
| 140 |
</select> |
| 141 |
More functions in <a href='admin.php?page=<?php echo $pluginname;?>&tool=extension' title="Get More">Extension</a> |
| 142 |
</div> |
| 143 |
<div class="wow-admin-col-12" style="display:none;" id="shortcode"> |
| 144 |
<b>[<?php echo $this->shortcode; ?> id=<?php echo $id; ?>]</b> |
| 145 |
</div> |
| 146 |
</div> |
| 147 |
|
| 148 |
<?php } ?> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
<div class="wowbox"> |
| 152 |
<center><img src="<?php echo plugin_dir_url( __FILE__ ); ?>thankyou.png" alt="" /></center> |
| 153 |
<hr/> |
| 154 |
<div class="wow-admin wow-plugins"> |
| 155 |
<p>We will be very grateful if you <a href="https://wordpress.org/plugins/wp-coder/" target="_blank"><b>leave a review about the plugin</b></a>.</p> |
| 156 |
<p>If you have suggestions on how to improve the plugin or create a new plugin, write to us via the <a href="admin.php?page=<?php echo $pluginname;?>&tool=support" target="_blank"><b>support form</b></a></p> |
| 157 |
<p>We really appreciate your reviews and suggestions for improving the plugin.</p> |
| 158 |
<p> |
| 159 |
<b><em>Thank you for choosing the plugin from Wow-Company! </em></b></p> |
| 160 |
<em><b>Best Regards</b>,<br/> |
| 161 |
<a href="https://wow-estore.com/" target="_blank">Wow-Company Team</a><br/> |
| 162 |
Dmytro Lobov<br/> |
| 163 |
<a href="mailto:support@wow-company.com">support@wow-company.com</a> |
| 164 |
</em> |
| 165 |
|
| 166 |
</div> |
| 167 |
</div> |
| 168 |
</div> |
| 169 |
</div> |
| 170 |
<input type="hidden" name="param[time]" value="<?php echo time(); ?>" /> |
| 171 |
<input type="hidden" name="add" value="<?php echo $hidval; ?>" /> |
| 172 |
<input type="hidden" name="id" value="<?php echo $id; ?>" /> |
| 173 |
<input type="hidden" name="data" value="<?php echo $data; ?>" /> |
| 174 |
<input type="hidden" name="page" value="<?php echo $this->pluginname;?>" /> |
| 175 |
<input type="hidden" name="plugdir" value="<?php echo $this->pluginname;?>" /> |
| 176 |
<?php wp_nonce_field('wow_plugin_action','wow_plugin_nonce_field'); ?> |
| 177 |
</form> |
| 178 |
|