From d9e2e017976777bcc7cf540fe6d1513f474bf939 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 10 Dec 2020 11:38:58 +0600 Subject: [PATCH 1/2] github link added --- admin/action-hook.php | 11 ++++++++++- admin/menu_plugin_setting_link.php | 2 ++ assets/css/admin.css | 4 ++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/admin/action-hook.php b/admin/action-hook.php index 0bddf594..caa4ccc0 100644 --- a/admin/action-hook.php +++ b/admin/action-hook.php @@ -19,11 +19,20 @@ function wpt_admin_form_top(){ ?> ' . esc_html__( 'Create Table', 'wpt_pro' ).''; $wpt_links[] = '' . esc_html__( 'Configure', 'wpt_pro' ) . ''; $wpt_links[] = ''.esc_html__( 'Support','wpt_pro' ).''; + $wpt_links[] = ''.esc_html__( 'Github Repository','wpt_pro' ).''; return array_merge( $wpt_links, $links ); } } @@ -31,6 +32,7 @@ function wpt_add_action_links($links) { function wpt_admin_menu() { add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Configuration WPTpro', 'wpt_pro' ), esc_html__( 'Configure', 'wpt_pro' ), WPT_CAPABILITY, 'woo-product-table-config', 'wpt_configuration_page' ); + add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Contribute Here', 'wpt_pro' ), sprintf( esc_html__( 'Contribute %s& Repo%s', 'wpt_pro' ), '', ''), WPT_CAPABILITY, 'https://github.com/codersaiful/woo-product-table' ); add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'FAQ & Support page - Contact With US', 'wpt_pro' ), sprintf( esc_html__( 'FAQ %s& Contact%s', 'wpt_pro' ), '', ''), WPT_CAPABILITY, 'wpt_fac_contact_page', 'wpt_fac_support_page' ); add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'GET PRO VERSION', 'wpt_pro' ), __( 'Get Pro', 'wpt_pro' ), WPT_CAPABILITY, 'https://codecanyon.net/item/woo-product-table-pro/20676867' ); add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Pro Features', 'wpt_pro' ), __( 'Pro Features', 'wpt_pro' ), 'manage_options', 'wpt-pro-features', 'wpt_pro_features_content' ); diff --git a/assets/css/admin.css b/assets/css/admin.css index 3facc6b9..d0744bce 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1075,6 +1075,10 @@ ul#wpt_column_sortable>li.wpt_sortable_peritem.enabled{display: flex;} color: black; } +svg.octicon.octicon-mark-github.v-align-middle { + margin-bottom: -3px; +} + /* Responsive Design Starts */ @media screen and (max-width: 782px){ .wpt_column_setting_single_extra>div label { From ae9348e4785089406d6841267c2f4a47656fbaf4 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 10 Dec 2020 13:59:52 +0600 Subject: [PATCH 2/2] Repo link added Here --- admin/includes/right_side.php | 21 +++++++++++++++++++-- admin/menu_plugin_setting_link.php | 2 +- admin/post_metabox.php | 18 +++++++++++++++++- assets/css/admin.css | 20 +++++++++++++++++++- 4 files changed, 56 insertions(+), 5 deletions(-) diff --git a/admin/includes/right_side.php b/admin/includes/right_side.php index d27e6ea1..996d4c9a 100644 --- a/admin/includes/right_side.php +++ b/admin/includes/right_side.php @@ -36,7 +36,7 @@ Feel free to knock me Any time. - + + + +
+
+

Are you Coder?

+ + To be a Contributor Fork and (Contribute) + + + Discussion: Forumn and Discussion on (Github) + Issue on Github: Submit your Issue on (Github) + Topin on WordPress.org: Submit your topic on (WordPress.org) +
+
diff --git a/admin/menu_plugin_setting_link.php b/admin/menu_plugin_setting_link.php index dba145f9..e6ea4579 100644 --- a/admin/menu_plugin_setting_link.php +++ b/admin/menu_plugin_setting_link.php @@ -32,7 +32,7 @@ function wpt_add_action_links($links) { function wpt_admin_menu() { add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Configuration WPTpro', 'wpt_pro' ), esc_html__( 'Configure', 'wpt_pro' ), WPT_CAPABILITY, 'woo-product-table-config', 'wpt_configuration_page' ); - add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Contribute Here', 'wpt_pro' ), sprintf( esc_html__( 'Contribute %s& Repo%s', 'wpt_pro' ), '', ''), WPT_CAPABILITY, 'https://github.com/codersaiful/woo-product-table' ); + add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Contribute Here', 'wpt_pro' ), sprintf( esc_html__( 'Contribute %s Repo%s', 'wpt_pro' ), '', ''), WPT_CAPABILITY, 'https://github.com/codersaiful/woo-product-table' ); add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'FAQ & Support page - Contact With US', 'wpt_pro' ), sprintf( esc_html__( 'FAQ %s& Contact%s', 'wpt_pro' ), '', ''), WPT_CAPABILITY, 'wpt_fac_contact_page', 'wpt_fac_support_page' ); add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'GET PRO VERSION', 'wpt_pro' ), __( 'Get Pro', 'wpt_pro' ), WPT_CAPABILITY, 'https://codecanyon.net/item/woo-product-table-pro/20676867' ); add_submenu_page( 'edit.php?post_type=wpt_product_table', esc_html__( 'Pro Features', 'wpt_pro' ), __( 'Pro Features', 'wpt_pro' ), 'manage_options', 'wpt-pro-features', 'wpt_pro_features_content' ); diff --git a/admin/post_metabox.php b/admin/post_metabox.php index fb28f011..b62994a1 100644 --- a/admin/post_metabox.php +++ b/admin/post_metabox.php @@ -69,10 +69,26 @@ function wpt_shortcode_metabox_render(){ global $post; $curent_post_id = $post->ID; $post_title = preg_replace( '/[#$%^&*()+=\-\[\]\';,.\/{}|":<>?~\\\\]/',"$1", $post->post_title ); + echo '
'; echo ''; // class='wpt_auto_select_n_copy' echo ''; echo ''; - + echo '
'; + ?> +
+

+ + + + . + | + + + + +

+
+ li.wpt_sortable_peritem.enabled{display: flex;} svg.octicon.octicon-mark-github.v-align-middle { margin-bottom: -3px; } +span.fork-button-wpt>a { + font-size: 25px; + color: #304a56; + background: #dddddd52; + padding: 22px; + display: block; + transition: all .3s; + margin: 10px 0; +} +span.fork-button-wpt>a:hover { + color: #ffffff; + background: #607D8B; +} +.wpt-tips-github p { + opacity: 0.6; + margin: 0; + padding: 0; +} /* Responsive Design Starts */ @media screen and (max-width: 782px){