public function show_metabox_licenses() { echo '<table class="sucom-setting licenses-metabox" style="padding-bottom:10px">' . "\n"; echo '<tr><td colspan="4">' . $this->p->msgs->get('info-plugin-tid') . '</td></tr>' . "\n"; foreach ($this->p->cf['plugin'] as $lca => $info) { $url = ''; $links = ''; $qty_used = class_exists('SucomUpdate') ? SucomUpdate::get_option($lca, 'qty_used') : false; if (!empty($info['url']['download'])) { $url = $info['url']['download']; $links .= ' | <a href="' . $info['url']['download'] . '" target="_blank">Download the Free Version</a>'; } if (!empty($info['url']['purchase'])) { $url = $info['url']['purchase']; $links .= ' | <a href="' . $info['url']['purchase'] . '" target="_blank">Purchase a Pro License</a>'; } if (!empty($info['img']['icon-small'])) { $img = $info['img']['icon-small']; } else { $img = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='; } // logo image echo '<tr><td style="width:140px;padding:10px 0;" rowspan="3" valign="top" align="left">'; if (!empty($url)) { echo '<a href="' . $url . '" target="_blank">'; } echo '<img src="' . $img . '" width="125" height="125" class="highlight">'; if (!empty($url)) { echo '</a>'; } echo '</td>'; // plugin name echo '<td colspan="3" style="padding:10px 0 0 0;"> <p><strong>' . $info['name'] . '</strong></p>'; if (!empty($info['desc'])) { echo '<p>' . $info['desc'] . '</p>'; } if (!empty($links)) { echo '<p>' . trim($links, ' |') . '</p>'; } echo '</td></tr>' . "\n"; if (!empty($info['url']['purchase']) || !empty($this->p->options['plugin_' . $lca . '_tid'])) { echo '<tr>' . $this->p->util->th('Authentication ID', 'medium'); if ($this->p->cf['lca'] === $lca || $this->p->check->aop()) { echo '<td class="tid">' . $this->form->get_input('plugin_' . $lca . '_tid', 'tid mono'); } else { echo '<td class="tid blank">' . $this->form->get_no_input('plugin_' . $lca . '_tid', 'tid mono'); } echo '</td><td><p>' . (empty($qty_used) ? '' : $qty_used . ' Licenses Assigned') . '</p></td></tr>' . "\n"; echo '<tr>' . $this->p->util->th('Site Use', 'medium'); echo '<td>' . $this->form->get_select('plugin_' . $lca . '_tid:use', $this->p->cf['form']['site_option_use'], 'site_use'); echo '</td><td style="padding-bottom:10px;"><p> </p></td></tr>' . "\n"; } else { echo '<tr><td> </td><td> </td><td> </td></tr>' . "\n"; echo '<tr><td style="padding-bottom:10px;" colspan="3"><p> </p></td></tr>' . "\n"; } } echo '</table>' . "\n"; }
protected function get_rows($metabox, $key) { $rows = array(); switch ($metabox . '-' . $key) { case 'plugin-activation': $rows[] = $this->p->util->th('Preserve Settings on Uninstall', 'highlight', 'plugin_preserve') . '<td>' . $this->form->get_checkbox('plugin_preserve') . '</td>'; $rows[] = $this->p->util->th('Add Hidden Debug HTML Messages', null, 'plugin_debug') . '<td>' . $this->form->get_checkbox('plugin_debug') . '</td>'; // retrieve information on license use, if any $qty_used = class_exists('SucomUpdate') ? SucomUpdate::get_option($this->p->cf['lca'], 'qty_used') : false; $rows[] = $this->p->util->th($this->p->cf['uca'] . ' Pro Authentication ID', null, 'plugin_tid') . '<td nowrap><p>' . $this->form->get_input('plugin_tid', 'mono') . (empty($qty_used) ? '' : ' ' . $qty_used . ' Licenses Assigned</p>') . '</td>'; // if the pro version code is available, show information about keeping it active for updates if ($this->p->is_avail['aop']) { $rows[] = '<th></th><td>' . $this->p->msgs->get('tid-info') . '</td>'; } break; case 'cm-custom': if (!$this->p->check->is_aop()) { $rows[] = '<td colspan="4" align="center">' . $this->p->msgs->get('pro-feature-msg') . '</td>'; } $rows[] = '<td></td>' . $this->p->util->th('Show', 'left checkbox') . $this->p->util->th('Contact Field Name', 'left medium', 'custom-cm-field-name') . $this->p->util->th('Profile Contact Label', 'left wide'); $sorted_opt_pre = $this->p->cf['opt']['pre']; ksort($sorted_opt_pre); foreach ($sorted_opt_pre as $id => $pre) { $cm_opt = 'plugin_cm_' . $pre . '_'; // check for the lib website classname for a nice 'display name' $name = empty($this->p->cf['lib']['website'][$id]) ? ucfirst($id) : $this->p->cf['lib']['website'][$id]; $name = $name == 'GooglePlus' ? 'Google+' : $name; // not all social websites have a contact method field if (array_key_exists($cm_opt . 'enabled', $this->p->options)) { if ($this->p->check->is_aop()) { $rows[] = $this->p->util->th($name, 'medium') . '<td class="checkbox">' . $this->form->get_checkbox($cm_opt . 'enabled') . '</td>' . '<td>' . $this->form->get_input($cm_opt . 'name', 'medium') . '</td>' . '<td>' . $this->form->get_input($cm_opt . 'label') . '</td>'; } else { $rows[] = $this->p->util->th($name, 'medium') . '<td class="blank checkbox">' . $this->form->get_fake_checkbox($cm_opt . 'enabled') . '</td>' . '<td class="blank medium">' . $this->form->get_hidden($cm_opt . 'name') . $this->p->options[$cm_opt . 'name'] . '</td>' . '<td class="blank">' . $this->form->get_hidden($cm_opt . 'label') . $this->p->options[$cm_opt . 'label'] . '</td>'; } } } break; case 'cm-builtin': if (!$this->p->check->is_aop()) { $rows[] = '<td colspan="4" align="center">' . $this->p->msgs->get('pro-feature-msg') . '</td>'; } $rows[] = '<td></td>' . $this->p->util->th('Show', 'left checkbox') . $this->p->util->th('Contact Field Name', 'left medium', 'wp-cm-field-name') . $this->p->util->th('Profile Contact Label', 'left wide'); $sorted_wp_contact = $this->p->cf['wp']['cm']; ksort($sorted_wp_contact); foreach ($sorted_wp_contact as $id => $name) { $cm_opt = 'wp_cm_' . $id . '_'; if (array_key_exists($cm_opt . 'enabled', $this->p->options)) { if ($this->p->check->is_aop()) { $rows[] = $this->p->util->th($name, 'medium') . '<td class="checkbox">' . $this->form->get_checkbox($cm_opt . 'enabled') . '</td>' . '<td>' . $this->form->get_fake_input($cm_opt . 'name', 'medium') . '</td>' . '<td>' . $this->form->get_input($cm_opt . 'label') . '</td>'; } else { $rows[] = $this->p->util->th($name, 'medium') . '<td class="blank checkbox">' . $this->form->get_hidden($cm_opt . 'enabled') . $this->form->get_fake_checkbox($cm_opt . 'enabled') . '</td>' . '<td>' . $this->form->get_fake_input($cm_opt . 'name', 'medium') . '</td>' . '<td class="blank">' . $this->form->get_hidden($cm_opt . 'label') . $this->p->options[$cm_opt . 'label'] . '</td>'; } } } break; } return $rows; }
protected function get_rows($metabox, $key) { $ret = array(); $use = array('default' => 'As Default Value', 'empty' => 'If Value is Empty', 'force' => 'Force This Value'); // generic tooltip message for site option use $use_msg = esc_attr('Individual sites / blogs may use this value as a default when the plugin is first activated, if the current site / blog option value is blank, or force every site / blog to use this value (disabling editing of this field).'); switch ($metabox . '-' . $key) { case 'network-settings': // retrieve information on license use, if any $qty_used = class_exists('SucomUpdate') ? SucomUpdate::get_option($this->p->cf['lca'], 'qty_used') : false; $ret[] = $this->p->util->th($this->p->cf['uca'] . ' Pro Authentication ID', 'highlight', 'plugin_tid_network') . '<td nowrap><p>' . $this->form->get_input('plugin_tid', 'mono') . (empty($qty_used) ? '' : ' ' . $qty_used . ' Licenses Assigned</p>') . '</td>' . '<td nowrap>Site Use <img src="' . NGFB_URLPATH . 'images/question-mark.png" class="sucom_tooltip' . '" alt="' . $use_msg . '" /> ' . $this->form->get_select('plugin_tid:use', $use, 'medium') . '</td>'; $ret[] = $this->p->util->th('Object Cache Expiry', null, 'plugin_object_cache_exp') . '<td nowrap>' . $this->form->get_input('plugin_object_cache_exp', 'short') . ' seconds</td>' . '<td nowrap>Site Use <img src="' . NGFB_URLPATH . 'images/question-mark.png" class="sucom_tooltip' . '" alt="' . $use_msg . '" /> ' . $this->form->get_select('plugin_object_cache_exp:use', $use, 'medium') . '</td>'; break; break; } return $ret; }
public function licenses_metabox($network = false) { echo '<table class="sucom-setting ' . $this->p->cf['lca'] . ' licenses-metabox" style="padding-bottom:10px">' . "\n"; echo '<tr><td colspan="' . ($network ? 5 : 4) . '">' . $this->p->msgs->get('info-plugin-tid') . '</td></tr>' . "\n"; $num = 0; $total = count($this->p->cf['plugin']); foreach ($this->p->cf['plugin'] as $lca => $info) { $num++; $links = ''; $img_href = ''; $view_text = 'View Plugin Details'; if (!empty($info['slug']) && (empty($info['url']['latest_zip']) || $this->p->is_avail['util']['um'])) { $img_href = add_query_arg(array('tab' => 'plugin-information', 'plugin' => $info['slug'], 'TB_iframe' => 'true', 'width' => 600, 'height' => 550), get_admin_url(null, 'plugin-install.php')); if (is_dir(WP_PLUGIN_DIR . '/' . $info['slug'])) { $update_plugins = get_site_transient('update_plugins'); if (isset($update_plugins->response)) { foreach ((array) $update_plugins->response as $file => $plugin) { if ($plugin->slug === $info['slug']) { $view_text = '<strong>View Plugin Details and Update</strong>'; break; } } } } else { $view_text = '<em>View Plugin Details and Install</em>'; } $links .= ' | <a href="' . $img_href . '" class="thickbox">' . $view_text . '</a>'; } else { if (!empty($info['url']['download'])) { $img_href = $info['url']['download']; $links .= ' | <a href="' . $img_href . '" target="_blank">Plugin Description Page</a>'; } } if (!empty($info['url']['latest_zip'])) { $img_href = $info['url']['latest_zip']; $links .= ' | <a href="' . $img_href . '">Download the Latest Version</a> (zip file)'; } if (!empty($info['url']['purchase'])) { $img_href = $info['url']['purchase']; if ($this->p->cf['lca'] === $lca || $this->p->check->aop()) { $links .= ' | <a href="' . $img_href . '" target="_blank">Purchase Pro License(s)</a>'; } else { $links .= ' | <em>Purchase Pro License(s)</em>'; } } if (!empty($info['img']['icon_small'])) { $img_icon = $info['img']['icon_medium']; } else { $img_icon = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='; } // logo image echo '<tr><td style="width:148px; padding:10px;" rowspan="3" valign="top" align="left">'; if (!empty($img_href)) { echo '<a href="' . $img_href . '"' . (strpos($img_href, 'TB_iframe') ? ' class="thickbox"' : ' target="_blank"') . '>'; } echo '<img src="' . $img_icon . '" width="128" height="128">'; if (!empty($img_href)) { echo '</a>'; } echo '</td>'; // plugin name echo '<td colspan="' . ($network ? 4 : 3) . '" style="padding:10px 0 0 0;"> <p><strong>' . $info['name'] . '</strong></p>'; if (!empty($info['desc'])) { echo '<p>' . $info['desc'] . '</p>'; } if (!empty($links)) { echo '<p>' . trim($links, ' |') . '</p>'; } echo '</td></tr>' . "\n"; if ($network) { if (!empty($info['url']['purchase']) || !empty($this->p->options['plugin_' . $lca . '_tid'])) { if ($this->p->cf['lca'] === $lca || $this->p->check->aop()) { echo '<tr>' . $this->p->util->get_th('Authentication ID', 'medium nowrap') . '<td class="tid">' . $this->form->get_input('plugin_' . $lca . '_tid', 'tid mono') . '</td>' . $this->p->util->get_th('Site Use', 'site_use') . '<td>' . $this->form->get_select('plugin_' . $lca . '_tid:use', $this->p->cf['form']['site_option_use'], 'site_use') . '</td></tr>' . "\n"; } else { echo '<tr>' . $this->p->util->get_th('Authentication ID', 'medium nowrap') . '<td class="blank">' . (empty($this->p->options['plugin_' . $lca . '_tid']) ? $this->form->get_no_input('plugin_' . $lca . '_tid', 'tid mono') : $this->form->get_input('plugin_' . $lca . '_tid', 'tid mono')) . '</td><td>' . $this->p->msgs->get('pro-option-msg') . '</td> <td> </td><td> </td></tr>' . "\n"; } } else { echo '<tr><td> </td><td> </td><td> </td><td> </td></tr>' . "\n"; } } else { if (!empty($info['url']['purchase']) || !empty($this->p->options['plugin_' . $lca . '_tid'])) { if ($this->p->cf['lca'] === $lca || $this->p->check->aop()) { $qty_used = class_exists('SucomUpdate') ? SucomUpdate::get_option($lca, 'qty_used') : false; echo '<tr>' . $this->p->util->get_th('Authentication ID', 'medium nowrap') . '<td class="tid">' . $this->form->get_input('plugin_' . $lca . '_tid', 'tid mono') . '</td><td><p>' . (empty($qty_used) ? '' : $qty_used . ' Licenses Assigned') . '</p></td></tr>' . "\n"; } else { echo '<tr>' . $this->p->util->get_th('Authentication ID', 'medium nowrap') . '<td class="blank">' . (empty($this->p->options['plugin_' . $lca . '_tid']) ? $this->form->get_no_input('plugin_' . $lca . '_tid', 'tid mono') : $this->form->get_input('plugin_' . $lca . '_tid', 'tid mono')) . '</td><td>' . $this->p->msgs->get('pro-option-msg') . '</td></tr>' . "\n"; } } else { echo '<tr><td> </td><td> </td><td> </tr>' . "\n"; } } if ($num < $total) { echo '<tr><td style="border-bottom:1px dotted #ddd;" colspan="' . ($network ? 4 : 3) . '"> </td></tr>' . "\n"; } else { echo '<tr><td colspan="' . ($network ? 4 : 3) . '"> </td></tr>' . "\n"; } } echo '</table>' . "\n"; }
protected function get_rows($metabox, $key) { $rows = array(); switch ($metabox . '-' . $key) { case 'plugin-settings': // retrieve information on license use, if any $qty_used = class_exists('SucomUpdate') ? SucomUpdate::get_option($this->p->cf['lca'], 'qty_used') : false; $rows[] = $this->p->util->th('Plugin Settings to Display', 'highlight', 'plugin_display') . '<td>' . $this->form->get_select('plugin_display', $this->p->cf['form']['display_options']) . '</td>'; $rows[] = $this->p->util->th('Preserve Settings on Uninstall', 'highlight', 'plugin_preserve') . '<td>' . $this->form->get_checkbox('plugin_preserve') . '</td>'; $rows[] = $this->p->util->th('Add Hidden Debug Messages', null, 'plugin_debug') . '<td>' . $this->form->get_checkbox('plugin_debug') . '</td>'; break; case 'cm-custom': if (!$this->p->check->aop()) { $rows[] = '<td colspan="4" align="center">' . $this->p->msgs->get('pro-feature-msg') . '</td>'; } $rows[] = '<td></td>' . $this->p->util->th('Show', 'left checkbox') . $this->p->util->th('Contact Field Name', 'left medium', 'custom-cm-field-name') . $this->p->util->th('Profile Contact Label', 'left wide'); $sorted_opt_pre = $this->p->cf['opt']['pre']; ksort($sorted_opt_pre); foreach ($sorted_opt_pre as $id => $pre) { $cm_opt = 'plugin_cm_' . $pre . '_'; // check for the lib website classname for a nice 'display name' $name = empty($this->p->cf['*']['lib']['website'][$id]) ? ucfirst($id) : $this->p->cf['*']['lib']['website'][$id]; $name = $name == 'GooglePlus' ? 'Google+' : $name; switch ($id) { case 'facebook': case 'gplus': case 'twitter': case $this->p->options['plugin_display'] === 'all' ? true : false: // not all social websites have a contact method field if (array_key_exists($cm_opt . 'enabled', $this->p->options)) { if ($this->p->check->aop()) { $rows[] = $this->p->util->th($name, 'medium') . '<td class="checkbox">' . $this->form->get_checkbox($cm_opt . 'enabled') . '</td>' . '<td>' . $this->form->get_input($cm_opt . 'name', 'medium') . '</td>' . '<td>' . $this->form->get_input($cm_opt . 'label') . '</td>'; } else { $rows[] = $this->p->util->th($name, 'medium') . '<td class="blank checkbox">' . $this->form->get_no_checkbox($cm_opt . 'enabled') . '</td>' . '<td class="blank">' . $this->form->get_no_input($cm_opt . 'name', 'medium') . '</td>' . '<td class="blank">' . $this->form->get_no_input($cm_opt . 'label') . '</td>'; } } break; } } break; case 'cm-builtin': if (!$this->p->check->aop()) { $rows[] = '<td colspan="4" align="center">' . $this->p->msgs->get('pro-feature-msg') . '</td>'; } $rows[] = '<td></td>' . $this->p->util->th('Show', 'left checkbox') . $this->p->util->th('Contact Field Name', 'left medium', 'wp-cm-field-name') . $this->p->util->th('Profile Contact Label', 'left wide'); $sorted_wp_contact = $this->p->cf['wp']['cm']; ksort($sorted_wp_contact); foreach ($sorted_wp_contact as $id => $name) { $cm_opt = 'wp_cm_' . $id . '_'; if (array_key_exists($cm_opt . 'enabled', $this->p->options)) { if ($this->p->check->aop()) { $rows[] = $this->p->util->th($name, 'medium') . '<td class="checkbox">' . $this->form->get_checkbox($cm_opt . 'enabled') . '</td>' . '<td>' . $this->form->get_no_input($cm_opt . 'name', 'medium') . '</td>' . '<td>' . $this->form->get_input($cm_opt . 'label') . '</td>'; } else { $rows[] = $this->p->util->th($name, 'medium') . '<td class="blank checkbox">' . $this->form->get_hidden($cm_opt . 'enabled') . $this->form->get_no_checkbox($cm_opt . 'enabled') . '</td>' . '<td>' . $this->form->get_no_input($cm_opt . 'name', 'medium') . '</td>' . '<td class="blank">' . $this->form->get_no_input($cm_opt . 'label') . '</td>'; } } } break; } return $rows; }
public function licenses_metabox_content($network = false) { echo '<table class="sucom-setting ' . $this->p->cf['lca'] . ' licenses-metabox" style="padding-bottom:10px">' . "\n"; echo '<tr><td colspan="' . ($network ? 5 : 4) . '">' . $this->p->msgs->get('info-plugin-tid' . ($network ? '-network' : '')) . '</td></tr>' . "\n"; $num = 0; $total = count($this->p->cf['plugin']); foreach ($this->p->cf['plugin'] as $ext => $info) { $num++; $links = ''; $img_href = ''; $view_text = _x('View Plugin Details', 'plugin action link', 'nextgen-facebook'); if (!empty($info['slug']) && (empty($info['url']['latest_zip']) || $this->p->is_avail['util']['um'])) { $img_href = add_query_arg(array('tab' => 'plugin-information', 'plugin' => $info['slug'], 'TB_iframe' => 'true', 'width' => 600, 'height' => 550), get_admin_url(null, 'plugin-install.php')); // check to see if plugin is installed or not if (is_dir(WP_PLUGIN_DIR . '/' . $info['slug'])) { $update_plugins = get_site_transient('update_plugins'); if (isset($update_plugins->response)) { foreach ((array) $update_plugins->response as $file => $plugin) { if ($plugin->slug === $info['slug']) { $view_text = '<font color="red">' . _x('View Plugin Details + Update', 'plugin action link', 'nextgen-facebook') . '</font>'; break; } } } } else { $view_text = _x('View Plugin Details + Install', 'plugin action link', 'nextgen-facebook'); } $links .= ' | <a href="' . $img_href . '" class="thickbox">' . $view_text . '</a>'; } elseif (!empty($info['url']['download'])) { $img_href = $info['url']['download']; $links .= ' | <a href="' . $img_href . '" target="_blank">' . _x('Plugin Description Page', 'plugin action link', 'nextgen-facebook') . '</a>'; } if (!empty($info['url']['latest_zip'])) { $links .= ' | <a href="' . $info['url']['latest_zip'] . '">' . _x('Download Latest Version', 'plugin action link', 'nextgen-facebook') . '</a> (ZIP)'; } if (!empty($info['url']['purchase'])) { if ($this->p->cf['lca'] === $ext || $this->p->check->aop($this->p->cf['lca'], false, $this->p->is_avail['aop'])) { $links .= ' | <a href="' . $info['url']['purchase'] . '" target="_blank">' . _x('Purchase Pro License(s)', 'plugin action link', 'nextgen-facebook') . '</a>'; } else { $links .= ' | <em>' . _x('Purchase Pro License(s)', 'plugin action link', 'nextgen-facebook') . '</em>'; } } if (!empty($info['img']['icon_small'])) { $img_src = 'src="' . $info['img']['icon_small'] . '"'; } else { $img_src = 'src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="'; } if (!empty($info['img']['icon_medium'])) { $img_src .= ' srcset="' . $info['img']['icon_medium'] . ' 256w"'; } // logo image echo '<tr><td style="width:148px; padding:10px;" rowspan="3" valign="top" align="left">' . "\n"; if (!empty($img_href)) { echo '<a href="' . $img_href . '"' . (strpos($img_href, 'TB_iframe') ? ' class="thickbox"' : ' target="_blank"') . '>'; } echo '<img ' . $img_src . ' width="128" height="128">'; if (!empty($img_href)) { echo '</a>'; } echo '</td>' . "\n"; // plugin name echo '<td colspan="' . ($network ? 4 : 3) . '" style="padding:10px 0 0 0;"> <p><strong>' . $info['name'] . '</strong></p>'; if (!empty($info['desc'])) { echo '<p>' . _x($info['desc'], 'plugin description', 'nextgen-facebook') . '</p>'; } if (!empty($links)) { echo '<p>' . trim($links, ' |') . '</p>'; } echo '</td></tr>' . "\n"; if ($network) { if (!empty($info['update_auth']) || !empty($this->p->options['plugin_' . $ext . '_tid'])) { if ($this->p->cf['lca'] === $ext || $this->p->check->aop($this->p->cf['lca'], true, $this->p->is_avail['aop'])) { echo '<tr>' . $this->p->util->get_th(_x('Pro Authentication ID', 'option label', 'nextgen-facebook'), 'medium nowrap') . '<td class="tid">' . $this->form->get_input('plugin_' . $ext . '_tid', 'tid mono') . '</td>' . $this->p->admin->get_site_use($this->form, true, 'plugin_' . $ext . '_tid'); } else { echo '<tr>' . $this->p->util->get_th(_x('Pro Authentication ID', 'option label', 'nextgen-facebook'), 'medium nowrap') . '<td class="blank">' . (empty($this->p->options['plugin_' . $ext . '_tid']) ? $this->form->get_no_input('plugin_' . $ext . '_tid', 'tid mono') : $this->form->get_input('plugin_' . $ext . '_tid', 'tid mono')) . '</td><td colspan="2">' . ($this->p->check->aop($this->p->cf['lca'], true, $this->p->is_avail['aop']) ? '' : $this->p->msgs->get('pro-option-msg')) . '</td></tr>' . "\n"; } } else { echo '<tr><td> </td><td> </td><td> </td><td> </td></tr>' . "\n"; } } else { if (!empty($info['update_auth']) || !empty($this->p->options['plugin_' . $ext . '_tid'])) { if ($this->p->cf['lca'] === $ext || $this->p->check->aop($this->p->cf['lca'], true, $this->p->is_avail['aop'])) { $qty_used = class_exists('SucomUpdate') ? SucomUpdate::get_option($ext, 'qty_used') : false; echo '<tr>' . $this->p->util->get_th(_x('Pro Authentication ID', 'option label', 'nextgen-facebook'), 'medium nowrap') . '<td class="tid">' . $this->form->get_input('plugin_' . $ext . '_tid', 'tid mono') . '</td><td><p>' . (empty($qty_used) ? '' : $qty_used . ' Licenses Assigned') . '</p></td></tr>' . "\n"; } else { echo '<tr>' . $this->p->util->get_th(_x('Pro Authentication ID', 'option label', 'nextgen-facebook'), 'medium nowrap') . '<td class="blank">' . (empty($this->p->options['plugin_' . $ext . '_tid']) ? $this->form->get_no_input('plugin_' . $ext . '_tid', 'tid mono') : $this->form->get_input('plugin_' . $ext . '_tid', 'tid mono')) . '</td><td>' . ($this->p->check->aop($this->p->cf['lca'], true, $this->p->is_avail['aop']) ? '' : $this->p->msgs->get('pro-option-msg')) . '</td></tr>' . "\n"; } } else { echo '<tr><td> </td><td> </td><td> </tr>' . "\n"; } } echo '<tr><td' . ($num < $total ? ' style="border-bottom:1px dotted #ddd;"' : '') . ' colspan="' . ($network ? 4 : 3) . '"> </td></tr>' . "\n"; } echo '</table>' . "\n"; }