disable-comments-rb
Last commit date
assets
4 years ago
languages
4 years ago
classDisableComments.php
3 years ago
disable-comments-rb.php
1 month ago
information.php
3 years ago
options.php
6 years ago
readme.txt
1 month ago
screenshot-1.png
8 years ago
screenshot-2.png
8 years ago
information.php
265 lines
| 1 | <?php |
| 2 | /* |
| 3 | * RB Disable Comments |
| 4 | * Version: 1.0.9 - 38451 |
| 5 | * Author: RBS |
| 6 | * Date: 03 02 2020 12:11:29 GMT |
| 7 | */ |
| 8 | |
| 9 | if (!defined('WPINC') || !defined("ABSPATH")) { |
| 10 | die(); |
| 11 | } |
| 12 | /* wp_enqueue_script( array( 'updates') ); |
| 13 | add_thickbox(); */ |
| 14 | |
| 15 | /*add_action('admin_menu', 'disable_comments_rb_js'); |
| 16 | function disable_comments_rb_js() { |
| 17 | add_thickbox(); |
| 18 | } |
| 19 | */ |
| 20 | ?> |
| 21 | <style type="text/css"> |
| 22 | .rbs_nw_wrap { |
| 23 | margin-bottom: 10px; |
| 24 | display: grid; |
| 25 | grid-template-columns: 1fr 1fr 1fr 1fr; |
| 26 | column-gap: 15px; |
| 27 | margin-right: 25px; |
| 28 | } |
| 29 | |
| 30 | .rbs_nw_item { |
| 31 | background-color: #f9f9f9; |
| 32 | margin: 0; |
| 33 | } |
| 34 | |
| 35 | .rbs_nw_item_logo { |
| 36 | text-align: center; |
| 37 | padding-top: 10px; |
| 38 | padding-bottom: 1px; |
| 39 | } |
| 40 | |
| 41 | .rbs_nw_item_logo_plugin { |
| 42 | width: 100px; |
| 43 | height: 100px; |
| 44 | } |
| 45 | |
| 46 | .rbs_nw_item_logo_upz { |
| 47 | margin-top: 10px; |
| 48 | margin-bottom: 1px; |
| 49 | width: 225px; |
| 50 | height: 66px; |
| 51 | } |
| 52 | |
| 53 | .rbs_nw_item_header { |
| 54 | text-align: center; |
| 55 | text-align: center; |
| 56 | line-height: 1.4em; |
| 57 | min-height: 40px; |
| 58 | padding: 5px; |
| 59 | margin-top: 5px; |
| 60 | } |
| 61 | |
| 62 | .rbs_nw_item_button { |
| 63 | text-align: center; |
| 64 | margin-bottom: 15px; |
| 65 | } |
| 66 | |
| 67 | |
| 68 | @media only screen and (max-width: 1100px) { |
| 69 | .rbs_nw_wrap { |
| 70 | grid-template-columns: 1fr 1fr; |
| 71 | } |
| 72 | |
| 73 | .rbs_nw_item { |
| 74 | margin-bottom: 15px; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | @media only screen and (max-width: 800px) { |
| 79 | .rbs_nw_wrap { |
| 80 | grid-template-columns: 1fr; |
| 81 | column-gap: 0; |
| 82 | row-gap: 15px; |
| 83 | margin: 0; |
| 84 | } |
| 85 | |
| 86 | .rbs_nw_item { |
| 87 | margin-bottom: 0px; |
| 88 | display: none; |
| 89 | } |
| 90 | |
| 91 | .rbs_nw_item:nth-child(1), |
| 92 | .rbs_nw_item:nth-child(2) { |
| 93 | display: block; |
| 94 | } |
| 95 | |
| 96 | .rbs_nw_item_header { |
| 97 | margin-bottom: 0px; |
| 98 | } |
| 99 | |
| 100 | .rbs_nw_item_logo { |
| 101 | text-align: left; |
| 102 | float: left; |
| 103 | } |
| 104 | |
| 105 | .rbs_nw_item_logo_upz { |
| 106 | margin-top: 7px; |
| 107 | margin-bottom: 7px; |
| 108 | width: 120px; |
| 109 | height: 80px; |
| 110 | } |
| 111 | |
| 112 | .rbs_nw_item_logo_plugin { |
| 113 | margin-top: 0px; |
| 114 | margin-left: 15px; |
| 115 | margin-right: 5px; |
| 116 | margin-bottom: 2px; |
| 117 | width: 80px; |
| 118 | height: 80px; |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | .rbs-info-oneline { |
| 123 | margin-bottom: 10px; |
| 124 | display: grid; |
| 125 | grid-template-columns: 1fr; |
| 126 | grid-template-rows: 1fr; |
| 127 | column-gap: 0; |
| 128 | margin-right: 25px; |
| 129 | justify-items: start center; |
| 130 | background-color: #f9f9f9; |
| 131 | } |
| 132 | |
| 133 | .rbs-info-oneline-item { |
| 134 | margin: 0; |
| 135 | } |
| 136 | |
| 137 | .rbs-info-oneline-header { |
| 138 | text-align: left; |
| 139 | padding: 5px; |
| 140 | font-size: 22px; |
| 141 | padding-left: 20px; |
| 142 | ; |
| 143 | } |
| 144 | |
| 145 | .rbs-info-oneline-header a:not(.class){ |
| 146 | margin-left: 40px; |
| 147 | |
| 148 | } |
| 149 | |
| 150 | @media only screen and (max-width: 800px) { |
| 151 | .rbs-info-oneline-header { |
| 152 | line-height: 32px; |
| 153 | |
| 154 | ; |
| 155 | } |
| 156 | } |
| 157 | </style> |
| 158 | |
| 159 | <?php |
| 160 | |
| 161 | $urlPlugin = plugin_dir_url(__FILE__); |
| 162 | |
| 163 | $plugin = "forms-rb"; |
| 164 | $plugin_dir = WP_PLUGIN_DIR . '/'.$plugin; |
| 165 | $plugin_file = $plugin . '/' . $plugin . '.php'; |
| 166 | $is_active = is_plugin_active($plugin_file); |
| 167 | |
| 168 | if(!$is_active){ |
| 169 | |
| 170 | ?> |
| 171 | <div class="rbs-info-oneline"> |
| 172 | |
| 173 | <div class="rbs-info-oneline-item"> |
| 174 | |
| 175 | <h3 class="rbs-info-oneline-header"> |
| 176 | <?php _e('RB Forms - absolutely FREE contact form plugin for WordPress'); ?> |
| 177 | <a class="button-primary " aria-label="Install Rb Forms" data-title="Install Rb Forms" href="<?php |
| 178 | |
| 179 | //file_exists($plugin_file) |
| 180 | if ( is_dir( $plugin_dir ) ){ |
| 181 | |
| 182 | if ( strpos( $plugin_file, '/' ) ) { |
| 183 | $plugin_file = str_replace( '\/', '%2F', $plugin_file ); |
| 184 | } |
| 185 | $url = sprintf( admin_url( 'plugins.php?action=activate&plugin=%s&plugin_status=all&paged=1' ), $plugin_file ); |
| 186 | $url = wp_nonce_url( $url, 'activate-plugin_' . $plugin_file ); |
| 187 | echo $url; |
| 188 | } else { |
| 189 | echo esc_url( |
| 190 | wp_nonce_url( self_admin_url('update.php?action=install-plugin&plugin=' . $plugin), 'install-plugin_' . $plugin) |
| 191 | ); |
| 192 | } |
| 193 | //echo esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin=forms-rb&TB_iframe=true&width=772&height=378') ); |
| 194 | ?>"> |
| 195 | <?php _e('Install Rb Forms'); ?> |
| 196 | </a> |
| 197 | </h3> |
| 198 | |
| 199 | </div> |
| 200 | </div> |
| 201 | <?php |
| 202 | } |
| 203 | return ; ?> |
| 204 | <div class="rbs_nw_wrap"> |
| 205 | <div class="rbs_nw_item"> |
| 206 | <div class="rbs_nw_item_logo"> |
| 207 | <img class="rbs_nw_item_logo_plugin" src="<?php echo $urlPlugin; ?>assets/images/logo_dp.png" width="100" hight="100"> |
| 208 | </div> |
| 209 | <h3 class="rbs_nw_item_header"> |
| 210 | <?php _e('Simple plugin that allows you to duplicate post easily'); ?> |
| 211 | </h3> |
| 212 | <div class="rbs_nw_item_button"> |
| 213 | <a class="button-primary thickbox" href="<?php |
| 214 | echo self_admin_url('plugin-install.php?tab=plugin-information&plugin=duplicate-post-rb&TB_iframe=true'); |
| 215 | ?>"> |
| 216 | <?php _e('Install Duplicate Post'); ?> |
| 217 | </a> |
| 218 | </div> |
| 219 | </div> |
| 220 | |
| 221 | <div class="rbs_nw_item"> |
| 222 | <div class="rbs_nw_item_logo"> |
| 223 | <img class="rbs_nw_item_logo_plugin" src="<?php echo $urlPlugin; ?>assets/images/logo_drc.png" width="100" hight="100"> |
| 224 | </div> |
| 225 | <h3 class="rbs_nw_item_header"> |
| 226 | <?php _e('Simple plugin that allows you to disable right click option easily'); ?> |
| 227 | </h3> |
| 228 | <div class="rbs_nw_item_button"> |
| 229 | <a class="button-primary thickbox" href="<?php |
| 230 | echo self_admin_url('plugin-install.php?tab=plugin-information&plugin=disable-right-click-rb&TB_iframe=true'); |
| 231 | ?>"> |
| 232 | <?php _e('Install Disable Right Click'); ?> |
| 233 | </a> |
| 234 | </div> |
| 235 | </div> |
| 236 | |
| 237 | <div class="rbs_nw_item"> |
| 238 | <div class="rbs_nw_item_logo"> |
| 239 | <img class="rbs_nw_item_logo_plugin" src="<?php echo $urlPlugin; ?>assets/images/logo_rg.gif" width="100" hight="100"> |
| 240 | </div> |
| 241 | <h3 class="rbs_nw_item_header"> |
| 242 | <?php _e('Create Free Gallery with Premium features with Robo Gallery'); ?> |
| 243 | </h3> |
| 244 | <div class="rbs_nw_item_button"> |
| 245 | <a class="button-primary thickbox" href="<?php |
| 246 | echo self_admin_url('plugin-install.php?tab=plugin-information&plugin=robo-gallery&TB_iframe=true'); |
| 247 | ?>"> |
| 248 | <?php _e('Install Gallery'); ?> |
| 249 | </a> |
| 250 | </div> |
| 251 | </div> |
| 252 | |
| 253 | <div class="rbs_nw_item"> |
| 254 | <div class="rbs_nw_item_logo"> |
| 255 | <img class="rbs_nw_item_logo_upz" src="<?php echo $urlPlugin; ?>assets/images/upzilla_black_logo.svg" width="225" hight="67"> |
| 256 | </div> |
| 257 | <h3 class="rbs_nw_item_header"> |
| 258 | <?php _e('Free website uptime and performance monitoring service for your WordPress', 'disable-comments-rb'); ?> |
| 259 | </h3> |
| 260 | <div class="rbs_nw_item_button"> |
| 261 | <a class="button-primary" href="https://www.upzilla.co/?pk_campaign=wp_dc" target="_blank"> |
| 262 | <?php _e('Register Free Account'); ?></a> |
| 263 | </div> |
| 264 | </div> |
| 265 | </div> |