Skip to content

Commit

Permalink
* Fix bug with css label.
Browse files Browse the repository at this point in the history
* Update azurecurve menu for easier maintenance.
* Move require of azurecurve menu below security check.
* Localization fixes.
* Fix bug with icon display.
  • Loading branch information
azurecurve committed Jan 7, 2020
1 parent 06cbe22 commit ecf5443
Show file tree
Hide file tree
Showing 10 changed files with 263 additions and 257 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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/)
5 changes: 2 additions & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/* -------------------------------------
Expand Down
18 changes: 10 additions & 8 deletions azrcrv-timelines.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
*
Expand Down Expand Up @@ -293,7 +293,7 @@ function azrcrv_t_display_options(){
</td></tr>

</table>
<input type="submit" value="Save Changes" class="button-primary" />
<input type="submit" value="<?php esc_html_e('Submit', 'timelines'); ?>" class="button-primary"/>
</form>
</fieldset>
</div>
Expand Down Expand Up @@ -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 .= "&nbsp;<a href='".$meta_fields['timeline-link']."'><img class='azc_t' src='".plugin_dir_url(__FILE__)."images/link.png' /></a>";
$return .= "&nbsp;<a href='".$meta_fields['timeline-link']."'><img class='azc_t' src='".plugin_dir_url(__FILE__)."assets/images/link.png' /></a>";
}
}
}
Expand Down Expand Up @@ -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
)
);
}
Expand Down
Binary file removed images/Timelines-16x16.png
Binary file not shown.
Binary file removed images/Timelines-32x32.png
Binary file not shown.
3 changes: 0 additions & 3 deletions images/index.php

This file was deleted.

Binary file removed images/link.png
Binary file not shown.
7 changes: 6 additions & 1 deletion languages/timelines.pot
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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 ""
Expand Down
Loading

0 comments on commit ecf5443

Please sign in to comment.