From ecf5443b1dfac6b9228d55bca030213c7e929cdb Mon Sep 17 00:00:00 2001 From: azurecurve Date: Tue, 7 Jan 2020 21:08:26 +0000 Subject: [PATCH] * Fix bug with css label. * Update azurecurve menu for easier maintenance. * Move require of azurecurve menu below security check. * Localization fixes. * Fix bug with icon display. --- README.md | 2 +- assets/css/style.css | 5 +- azrcrv-timelines.php | 18 +- images/Timelines-16x16.png | Bin 518 -> 0 bytes images/Timelines-32x32.png | Bin 1123 -> 0 bytes images/index.php | 3 - images/link.png | Bin 343 -> 0 bytes languages/timelines.pot | 7 +- pluginmenu/menu.php | 479 ++++++++++++++++++------------------- readme.txt | 6 + 10 files changed, 263 insertions(+), 257 deletions(-) delete mode 100644 images/Timelines-16x16.png delete mode 100644 images/Timelines-32x32.png delete mode 100644 images/index.php delete mode 100644 images/link.png diff --git a/README.md b/README.md index e57931b..e269d2b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # azrcrv-timelines Timelines plugin for ClassicPress -Full plugn details available at [azurecurve Development](https://development.azurecurve.co.uk/classicpress-plugins/timelines/) +Full plugin details available at [azurecurve Development](https://development.azurecurve.co.uk/classicpress-plugins/timelines/) diff --git a/assets/css/style.css b/assets/css/style.css index 440a90c..5b9ea87 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -60,9 +60,8 @@ h2.azrcrv-t { } label.azrcrv-t { - font-size: 1.3em; - position: absolute; - top: 20px; + font-size: 1.1em; + padding-top: 30px; } /* ------------------------------------- diff --git a/azrcrv-timelines.php b/azrcrv-timelines.php index f566d93..7c4e3cb 100644 --- a/azrcrv-timelines.php +++ b/azrcrv-timelines.php @@ -3,7 +3,7 @@ * ------------------------------------------------------------------------------ * Plugin Name: Timelines * Description: Create a multiple timelines and place on pages or posts using the timeline shortcode. - * Version: 1.0.0 + * Version: 1.0.1 * Author: azurecurve * Author URI: https://development.azurecurve.co.uk/classicpress-plugins/ * Plugin URI: https://development.azurecurve.co.uk/classicpress-plugins/timelines @@ -17,14 +17,14 @@ * ------------------------------------------------------------------------------ */ -// include plugin menu -require_once(dirname( __FILE__).'/pluginmenu/menu.php'); - // Prevent direct access. if (!defined('ABSPATH')){ die(); } +// include plugin menu +require_once(dirname( __FILE__).'/pluginmenu/menu.php'); + /** * Setup registration activation hook, actions, filters and shortcodes. * @@ -293,7 +293,7 @@ function azrcrv_t_display_options(){ - + @@ -409,7 +409,7 @@ function azrcrv_t_shortcode($atts, $content = null){ if (is_array($meta_fields)){ if (isset($meta_fields['timeline-link'])){ if (strlen($meta_fields['timeline-link']) > 0){ - $return .= " "; + $return .= " "; } } } @@ -457,11 +457,13 @@ function azrcrv_t_create_custom_post_type(){ 'parent' => esc_html__('Parent Timeline Entry', 'azc_t') ), 'public' => true, + 'exclude_from_search' => true, + 'publicly_queryable' => false, 'menu_position' => 20, 'supports' => array('title', 'comments', 'trackbacks', 'revisions', 'excerpt', 'editor'), 'taxonomies' => array(''), - 'menu_icon' => plugins_url('images/timelines-16x16.png', __FILE__), - 'has_archive' => true + 'menu_icon' => plugins_url('assets/images/timelines-16x16.png', __FILE__), + 'has_archive' => false ) ); } diff --git a/images/Timelines-16x16.png b/images/Timelines-16x16.png deleted file mode 100644 index 8630c850328c86e646c41ec8b9b2a094e23dcc9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 518 zcmV+h0{Q)kP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;JH?0`mX>0e4A6K~y+TrBXdh#6S?eyPSA_o#LNR!B(&o z^e5Q)KP<)0zafY}L0bzUMUu^C6F9|AuoX+2Gx5E-+2zcoIB?+YF0*gmyh*m#G)*6f zdabb5o@80pq-ok1W1ckK9Td@Hh@}O(iWy4_)OEf3F9#49djaeNo`I++iYpe+1k(4i zeBD=0XhuGl6`#aD1R`|5^~D}=^OfY)5gM+MGcO=rH4!=IPLm|5QS<|$OKZ!EJkKW- zF~&ZU&#}pu@B&N%TbTD+x*BuOJW&*rL*%BJG2d|<)4{gZ_GJO6x`BNMUH=G>=-kVm z2xLKElXv2T2Ot7QNbHtnc?L2^m_p%KLIG@d-p-B>kVU$_%M^#k^$g|M@YH{w1f{2g#hXh9{I4m3i;(#2Uh1?Y_ zff!_I#4)jl2dDJK=n~MY5EPOHSg_I(cxH|waKPWF53d>g0yifTE&tN55dZ)H07*qo IM6N<$g2lMgrvLx| diff --git a/images/Timelines-32x32.png b/images/Timelines-32x32.png deleted file mode 100644 index 1333fac2d79a6d0d3579e915a9b665722066fc55..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1123 zcmV-p1f2VcP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;JH?0`mX>1Jp@GK~z{r#a3HS6HySRluHG$jSBD9l^3e0VJvX_r?|b_}r7^d;xp_r`DA|6K zBHyl>M)p!1w)q zF9=_SQM6F<$}3p^=dSbHt9-fV#AhWEc|=!Z8wlvqf1aMDcY`xI29CjV#bU94dwY8l zEqdVj{x9=kW&CpV96r)s@C8Z@e@F~sPWo*~xgoc@x;l=8KO6u}KdL6CowT^Pm=D70 zQ^&962jy?v&p2p7;;PeTiVT@8LQaB*u;C`{3=jmt_c$oP;B=Q{vl9FS%vu!PLg{~+ zFZaQB0_%g|TVNN!!J$=20N}ttPSc(Szyv|in3gC?^rQTYo8neW!4iN}K;w!pB=Z(T zaSQ~)4XnTo+O}|=03gubJpz8AG@S+YBEj?!gcikZ1<>ee>ZE20=KBb&Jn~#cu)k(Ut~~2Y^wPQ;-F&)oQi7 z>1zi5vxe)3+wcU}ak=D`64#XeLG9~(jU5jmb+z%Z@-_(RA|DKU896u{$N{ZF+e1X= zNsqGomBz)Fc6ip++_v4h0Jt}+QglrD(ASwF}4y?6_0<>rYg z6Au>mtCT7mlDIVD)qw!u$Uh_iu;9ew{EX1wY_eGi->ggwAZA@Zma+h#J#P@h4kJCM zKU&C^$c-|>xBN^C0JU{Z$5h}Y \ No newline at end of file diff --git a/images/link.png b/images/link.png deleted file mode 100644 index 25eacb7c2524142262d68bf729c5e2b61adfd6d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 343 zcmV-d0jU0oP)$`dXYaZs9=SbAto%g@>T~?_bH&lTUn@`uo|1bXE{eSR(AO)ESb=V4`uk}mK|39Px&03WLbv~pzk+s7D@lK^ zn+aB+sp)&Y_x-B3>;6ywU--WQNUr<8>TU0P-|L#1U&;A)67w(+> pDf@fM7q9#F25QXo3rUI;002ro52U44e~JJA002ovPDHLkV1l;_q@Mr) diff --git a/languages/timelines.pot b/languages/timelines.pot index ef3d6bb..e9a26f7 100644 --- a/languages/timelines.pot +++ b/languages/timelines.pot @@ -1,7 +1,8 @@ +#, fuzzy msgid "" msgstr "" "Project-Id-Version: Timelines\n" -"POT-Creation-Date: 2019-02-24 18:29+0000\n" +"POT-Creation-Date: 2020-01-05 13:10+0000\n" "PO-Revision-Date: 2019-02-24 18:29+0000\n" "Last-Translator: \n" "Language-Team: https://translate.azurecurve.co.uk/\n" @@ -79,6 +80,10 @@ msgstr "" msgid "Default Timeline Order By" msgstr "" +#: azrcrv-timelines.php:296 +msgid "Submit" +msgstr "" + #: azrcrv-timelines.php:312 msgid "You do not have sufficient permissions to perform this action." msgstr "" diff --git a/pluginmenu/menu.php b/pluginmenu/menu.php index 1cb64a4..f278bd3 100644 --- a/pluginmenu/menu.php +++ b/pluginmenu/menu.php @@ -15,18 +15,22 @@ function azrcrv_add_plugin_menu(){ global $admin_page_hooks; if (empty ($admin_page_hooks['azrcrv-menu-test'])){ - add_menu_page("azurecurve Plugins" - ,"azurecurve" - ,'manage_options' - ,"azrcrv-plugin-menu" - ,"azrcrv_plugin_menu" - ,plugins_url('/pluginmenu/images/Favicon-16x16.png', __DIR__)); - add_submenu_page("azrcrv-plugin-menu" - ,"Plugins" - ,"Plugins" - ,'manage_options' - ,"azrcrv-plugin-menu" - ,"azrcrv_plugin_menu"); + add_menu_page( + 'azurecurve Plugins', + 'azurecurve', + 'manage_options', + 'azrcrv-plugin-menu', + 'azrcrv_plugin_menu', + plugins_url('/pluginmenu/images/Favicon-16x16.png', __DIR__) + ); + add_submenu_page( + 'azrcrv-plugin-menu', + 'Plugins', + 'Plugins', + 'manage_options', + 'azrcrv-plugin-menu', + 'azrcrv_plugin_menu' + ); } } } @@ -43,246 +47,239 @@ function azrcrv_plugin_menu(){ echo "

Active Plugins

"; echo ""; - if (is_plugin_active('azrcrv-add-twitter-cards/azrcrv-add-twitter-cards.php')){ - echo "Add Twitter Cards"; - } - if (is_plugin_active('azrcrv-avatars/azrcrv-avatars.php')){ - echo "Avatars"; - } - if (is_plugin_active('azrcrv-bbcode/azrcrv-bbcode.php')){ - echo "BBCode"; - } - if (is_plugin_active('azrcrv-breadcrumbs/azrcrv-breadcrumbs.php')){ - echo "Breadcrumbs"; - } - if (is_plugin_active('azrcrv-call-out-boxes/azrcrv-call-out-boxes.php')){ - echo "Call-out Boxes"; - } - if (is_plugin_active('azrcrv-code/azrcrv-code.php')){ - echo "Code"; - } - if (is_plugin_active('azrcrv-comment-validator/azrcrv-comment-validator.php')){ - echo "Comment Validator"; - } - if (is_plugin_active('azrcrv-conditional-links/azrcrv-conditional-links.php')){ - echo "Conditional Links"; - } - if (is_plugin_active('azrcrv-display-after-post-content/azrcrv-display-after-post-content.php')){ - echo "Display After Post Content"; - } - if (is_plugin_active('azrcrv-filtered-categories/azrcrv-filtered-categories.php')){ - echo "Filtered Categories"; - } - if (is_plugin_active('azrcrv-flags/azrcrv-flags.php')){ - echo "Flags"; - } - if (is_plugin_active('azrcrv-floating-featured-image/azrcrv-floating-featured-image.php')){ - echo "Floating Featured Image"; - } - if (is_plugin_active('azrcrv-icons/azrcrv-icons.php')){ - echo "Icons"; - } - if (is_plugin_active('azrcrv-images/azrcrv-images.php')){ - echo "Images"; - } - if (is_plugin_active('azrcrv-insult-generator/azrcrv-insult-generator.php')){ - echo "Insult Generator"; - } - if (is_plugin_active('azrcrv-loop-advert-injection/azrcrv-loop-advert-injection.php')){ - echo "Loop Advert Injection"; - } - if (is_plugin_active('azrcrv-mobile-detection/azrcrv-mobile-detection.php')){ - echo "Mobile Detection"; - } - if (is_plugin_active('azrcrv-multisite-favicon/azrcrv-multisite-favicon.php')){ - echo "Multisite Favicon"; - } - if (is_plugin_active('azrcrv-page-index/azrcrv-page-index.php')){ - echo "Page Index"; - } - if (is_plugin_active('azrcrv-post-archive/azrcrv-post-archive.php')){ - echo "Post Archive"; - } - if (is_plugin_active('azrcrv-rss-feed/azrcrv-rss-feed.php')){ - echo "RSS Feed"; - } - if (is_plugin_active('azrcrv-rss-suffix/azrcrv-rss-suffix.php')){ - echo "RSS Suffix"; - } - if (is_plugin_active('azrcrv-series-index/azrcrv-series-index.php')){ - echo "Series Index"; - } - if (is_plugin_active('azrcrv-shortcodes-in-comments/azrcrv-shortcodes-in-comments.php')){ - echo "Shortcodes in Comments"; - } - if (is_plugin_active('azrcrv-shortcodes-in-widgets/azrcrv-shortcodes-in-widgets.php')){ - echo "Shortcodes in Widgets"; - } - if (is_plugin_active('azrcrv-sidebar-login/azrcrv-sidebar-login.php')){ - echo "Sidebar Login"; - } - if (is_plugin_active('azrcrv-snippets/azrcrv-snippets.php')){ - echo "Snippets"; - } - if (is_plugin_active('azrcrv-tag-cloud/azrcrv-tag-cloud.php')){ - echo "Tag Cloud"; - } - if (is_plugin_active('azrcrv-taxonomy-index/azrcrv-taxonomy-index.php')){ - echo "Taxonomy Index"; - } - if (is_plugin_active('azrcrv-theme-switcher/azrcrv-theme-switcher.php')){ - echo "Theme Switcher"; - } - if (is_plugin_active('azrcrv-timelines/azrcrv-timelines.php')){ - echo "Timelines"; - } - if (is_plugin_active('azrcrv-toggle-showhide/azrcrv-toggle-showhide.php')){ - echo "Toggle Show/Hide"; - } - if (is_plugin_active('azrcrv-url-shortener/azrcrv-url-shortener.php')){ - echo "URL Shortener"; + + $plugin_array = array( + array( + 'plugin_link' => 'azrcrv-add-twitter-cards/azrcrv-add-twitter-cards.php', + 'admin_URL'=> 'admin.php?page=azrcrv-atc', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/add-twitter-cards/', + 'text' => 'Add Twitter Cards' + ), + array( + 'plugin_link' => 'azrcrv-avatars/azrcrv-avatars.php', + 'admin_URL'=> 'admin.php?page=azrcrv-a', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/avatars/', + 'text' => 'Avatars' + ), + array( + 'plugin_link' => 'azrcrv-bbcode/azrcrv-bbcode.php', + 'admin_URL'=> 'admin.php?page=azrcrv-bbc', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/bbcode/', + 'text' => 'BBCode' + ), + array( + 'plugin_link' => 'azrcrv-breadcrumbs/azrcrv-breadcrumbs.php', + 'admin_URL'=> 'admin.php?page=azrcrv-b', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/breadcrumbs/', + 'text' => 'Breadcrumbs' + ), + array( + 'plugin_link' => 'azrcrv-call-out-boxes/azrcrv-call-out-boxes.php', + 'admin_URL'=> 'admin.php?page=azrcrv-cob', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/call-out-boxes/', + 'text' => 'Call-out Boxes' + ), + array( + 'plugin_link' => 'azrcrv-code/azrcrv-code.php', + 'admin_URL'=> 'admin.php?page=azrcrv-c', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/code/', + 'text' => 'Code' + ), + array( + 'plugin_link' => 'azrcrv-comment-validator/azrcrv-comment-validator.php', + 'admin_URL'=> 'admin.php?page=azrcrv-cv', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/comment-validator/', + 'text' => 'Comment Validator' + ), + array( + 'plugin_link' => 'azrcrv-conditional-links/azrcrv-conditional-links.php', + 'admin_URL'=> 'admin.php?page=azrcrv-cl', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/conditional-links/', + 'text' => 'Conditional Links' + ), + array( + 'plugin_link' => 'azrcrv-display-after-post-content/azrcrv-display-after-post-content.php', + 'admin_URL'=> 'admin.php?page=azrcrv-dapc', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/display-after-post-content/', + 'text' => 'Display After Post Content' + ), + array( + 'plugin_link' => 'azrcrv-filtered-categories/azrcrv-filtered-categories.php', + 'admin_URL'=> 'admin.php?page=azrcrv-fc', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/filtered-categories/', + 'text' => 'Filtered Categories' + ), + array( + 'plugin_link' => 'azrcrv-flags/azrcrv-flags.php', + 'admin_URL'=> 'admin.php?page=azrcrv-f', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/flags/', + 'text' => 'Flags' + ), + array( + 'plugin_link' => 'azrcrv-floating-featured-image/azrcrv-floating-featured-image.php', + 'admin_URL'=> 'admin.php?page=azrcrv-ffi', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/floating-featured-image/', + 'text' => 'Floating Featured Image' + ), + array( + 'plugin_link' => 'azrcrv-icons/azrcrv-icons.php', + 'admin_URL'=> 'admin.php?page=azrcrv-i', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/icons/', + 'text' => 'Icons' + ), + array( + 'plugin_link' => 'azrcrv-images/azrcrv-images.php', + 'admin_URL'=> 'admin.php?page=azrcrv-im', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/images/', + 'text' => 'Images' + ), + array( + 'plugin_link' => 'azrcrv-insult-generator/azrcrv-insult-generator.php', + 'admin_URL'=> 'admin.php?page=azrcrv-ig', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/insult-generator/', + 'text' => 'Insult Generator' + ), + array( + 'plugin_link' => 'azrcrv-loop-injection/azrcrv-loop-injection.php', + 'admin_URL'=> 'admin.php?page=azrcrv-li', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/loop-injection/', + 'text' => 'Loop Injection' + ), + array( + 'plugin_link' => 'azrcrv-mobile-detection/azrcrv-mobile-detection.php', + 'admin_URL'=> 'admin.php?page=azrcrv-md', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/mobile-detection/', + 'text' => 'Mobile Detection' + ), + array( + 'plugin_link' => 'azrcrv-multisite-favicon/azrcrv-multisite-favicon.php', + 'admin_URL'=> 'admin.php?page=azrcrv-msf', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/multisite-favicon/', + 'text' => 'Multisite Favicon' + ), + array( + 'plugin_link' => 'azrcrv-page-index/azrcrv-page-index.php', + 'admin_URL'=> 'admin.php?page=azrcrv-pi', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/page-index/', + 'text' => 'Page Index' + ), + array( + 'plugin_link' => 'azrcrv-post-archive/azrcrv-post-archive.php', + 'admin_URL'=> 'admin.php?page=azrcrv-pa', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/post-archive/', + 'text' => 'Post Archive' + ), + array( + 'plugin_link' => 'azrcrv-rss-feed/azrcrv-rss-feed.php', + 'admin_URL'=> 'admin.php?page=azrcrv-rssf', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/rss-feed/', + 'text' => 'RSS Feed' + ), + array( + 'plugin_link' => 'azrcrv-rss-suffix/azrcrv-rss-suffix.php', + 'admin_URL'=> 'admin.php?page=azrcrv-rsss', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/rss-suffix/', + 'text' => 'RSS Suffix' + ), + array( + 'plugin_link' => 'azrcrv-series-index/azrcrv-series-index.php', + 'admin_URL'=> 'admin.php?page=azrcrv-si', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/series-index/', + 'text' => 'Series Index' + ), + array( + 'plugin_link' => 'azrcrv-shortcodes-in-comments/azrcrv-shortcodes-in-comments.php', + 'admin_URL'=> 'admin.php?page=azrcrv-sic', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/shortcodes-in-comments/', + 'text' => 'Shortcodes in Comments' + ), + array( + 'plugin_link' => 'azrcrv-shortcodes-in-widgets/azrcrv-shortcodes-in-widgets.php', + 'admin_URL'=> 'admin.php?page=azrcrv-siw', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/shortcodes-in-widgets/', + 'text' => 'Shortcodes in Widgets' + ), + array( + 'plugin_link' => 'azrcrv-sidebar-login/azrcrv-sidebar-login.php', + 'admin_URL'=> 'admin.php?page=azrcrv-sl', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/sidebar-login/', + 'text' => 'Sidebar Login' + ), + array( + 'plugin_link' => 'azrcrv-snippets/azrcrv-snippets.php', + 'admin_URL'=> 'admin.php?page=azrcrv-s', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/snippets/', + 'text' => 'Snippets' + ), + array( + 'plugin_link' => 'azrcrv-social-sharing/azrcrv-social-sharing.php', + 'admin_URL'=> 'admin.php?page=azrcrv-ss', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/social-sharing/', + 'text' => 'Social Sharing' + ), + array( + 'plugin_link' => 'azrcrv-tag-cloud/azrcrv-tag-cloud.php', + 'admin_URL'=> 'admin.php?page=azrcrv-tc', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/tag-cloud/', + 'text' => 'Tag Cloud' + ), + array( + 'plugin_link' => 'azrcrv-taxonomy-index/azrcrv-taxonomy-index.php', + 'admin_URL'=> 'admin.php?page=azrcrv-ti', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/taxonomy-index/', + 'text' => 'Taxonomy Index' + ), + array( + 'plugin_link' => 'azrcrv-theme-switcher/azrcrv-theme-switcher.php', + 'admin_URL'=> 'admin.php?page=azrcrv-ts', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/theme-switcher/', + 'text' => 'Theme Switcher' + ), + array( + 'plugin_link' => 'azrcrv-timelines/azrcrv-timelines.php', + 'admin_URL'=> 'admin.php?page=azrcrv-t', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/timelines/', + 'text' => 'Timelines' + ), + array( + 'plugin_link' => 'azrcrv-toggle-showhide/azrcrv-toggle-showhide.php', + 'admin_URL'=> 'admin.php?page=azrcrv-tsh', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/toggle-showhide/', + 'text' => 'Toggle Show/Hide' + ), + array( + 'plugin_link' => 'azrcrv-url-shortener/azrcrv-url-shortener.php', + 'admin_URL'=> 'admin.php?page=azrcrv-urls', + 'dev_URL'=> 'https://development.azurecurve.co.uk/classicpress-plugins/url-shortener/', + 'text' => 'URL Shortener' + ), + ); + + foreach($plugin_array as $plugin_details) { + if (is_plugin_active($plugin_details['plugin_link'])){ + echo '' . $plugin_details['text'] . ''; + } } + echo "
"; echo "

"; echo "

Other Available Plugins

"; echo ""; + $countofplugins = 0; - if (!is_plugin_active('azrcrv-add-twitter-cards/azrcrv-add-twitter-cards.php')){ - echo "Add Twitter Cards"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-avatars/azrcrv-avatars.php')){ - echo "Avatars"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-bbcode/azrcrv-bbcode.php')){ - echo "BBCode"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-breadcrumbs/azrcrv-breadcrumbs.php')){ - echo "Breadcrumbs"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-code/azrcrv-code.php')){ - echo "Code"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-call-out-boxes/azrcrv-call-out-boxes.php')){ - echo "Call-out Boxes"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-comment-validator/azrcrv-comment-validator.php')){ - echo "Comment Validator"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-conditional-links/azrcrv-conditional-links.php')){ - echo "Conditional Links"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-display-after-post-content/azrcrv-display-after-post-content.php')){ - echo "Display After Post Content"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-filtered-categories/azrcrv-filtered-categories.php')){ - echo "Filtered Categories"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-flags/azrcrv-flags.php')){ - echo "Flags"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-floating-featured-image/azrcrv-floating-featured-image.php')){ - echo "Floating Featured Image"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-icons/azrcrv-icons.php')){ - echo "Icons"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-images/azrcrv-images.php')){ - echo "Images"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-insult-generator/azrcrv-insult-generator.php')){ - echo "Insult Generator"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-loop-advert-injection/azrcrv-loop-advert-injection.php')){ - echo "Loop Advert Injection"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-mobile-detection/azrcrv-mobile-detection.php')){ - echo "Mobile Detection"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-multisite-favicon/azrcrv-multisite-favicon.php')){ - echo "Multisite Favicon"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-page-index/azrcrv-page-index.php')){ - echo "Page Index"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-post-archive/azrcrv-post-archive.php')){ - echo "Post Archive"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-rss-feed/azrcrv-rss-feed.php')){ - echo "RSS Feed"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-rss-suffix/azrcrv-rss-suffix.php')){ - echo "RSS Suffix"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-series-index/azrcrv-series-index.php')){ - echo "Series Index"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-shortcodes-in-comments/azrcrv-shortcodes-in-comments.php')){ - echo "Shortcodes in Comments"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-shortcodes-in-widgets/azrcrv-shortcodes-in-widgets.php')){ - echo "Shortcodes in Widgets"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-sidebar-login/azrcrv-sidebar-login.php')){ - echo "Sidebar Login"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-snippets/azrcrv-snippets.php')){ - echo "Snippets"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-tag-cloud/azrcrv-tag-cloud.php')){ - echo "Tag Cloud"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-taxonomy-index/azrcrv-taxonomy-index.php')){ - echo "Taxonomy Index"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-theme-switcher/azrcrv-theme-switcher.php')){ - echo "Theme Switcher"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-timelines/azrcrv-timelines.php')){ - echo "Timelines"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-toggle-showhide/azrcrv-toggle-showhide.php')){ - echo "Toggle Show/Hide"; - $countofplugins += 1; - } - if (!is_plugin_active('azrcrv-url-shortener/azrcrv-url-shortener.php')){ - echo "URL Shortener"; - $countofplugins += 1; + + foreach($plugin_array as $pluginItem) { + if (!is_plugin_active($pluginItem['plugin_link'])){ + echo '' . $pluginItem['text'] . ''; + $countofplugins += 1; + } } + if ($countofplugins == 0){ echo "Congratulations! You're using all of the azurecurve plugins."; } + echo "
"; echo "

"; diff --git a/readme.txt b/readme.txt index a12a61e..01dc6ff 100644 --- a/readme.txt +++ b/readme.txt @@ -26,6 +26,12 @@ To install the Timelines plugin: == Changelog == Changes and feature additions for the Timelines plugin: += 1.0.1 = +* Fix bug with css label. +* Update azurecurve menu for easier maintenance. +* Move require of azurecurve menu below security check. +* Localization fixes. +* Fix bug with icon display. = 1.0.0 = * First version for ClassicPress forked from azurecurve Timelines WordPress Plugin.