Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 00d1659

Browse files
committed
Bringing it up to 2.5
1 parent 65bc418 commit 00d1659

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

placid/PlacidPlugin.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function getName()
1010
}
1111
function getVersion()
1212
{
13-
return '1.6.6';
13+
return '1.6.10';
1414
}
1515
function getDeveloper()
1616
{
@@ -20,6 +20,10 @@ function getDocumentationUrl()
2020
{
2121
return 'https://github.com/alecritson/Placid/wiki';
2222
}
23+
public function getReleaseFeedUrl()
24+
{
25+
return 'https://raw.githubusercontent.com/alecritson/Placid/master/placid/manifest.json';
26+
}
2327
function getDeveloperUrl()
2428
{
2529
return 'http://alecritson.co.uk';

placid/templates/_layout.html

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
{% import "_includes/forms" as forms %}
44

5-
{% set title = "Placid"|t %}
5+
{% set title = 'Placid - ' ~ title %}
66

7-
8-
{% set tabs = {
9-
requests: { label: "Requests"|t, url: url('placid') },
10-
auth: { label: "Basic Auth"|t, url: url('placid/auth') },
11-
oauth: { label: "OAuth"|t, url: url('placid/oauth') }
7+
{% set subnav = {
8+
requests: { label: "Requests"|t, url: url('placid') },
9+
auth: { label: "Basic Auth"|t, url: url('placid/auth') },
10+
oauth: { label: "OAuth"|t, url: url('placid/oauth') }
1211
} %}
13-
14-

placid/templates/auth/index.twig

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% extends "placid/_layout" %}
22

3-
{% set selectedTab = 'auth' %}
3+
{% set selectedSubnavItem = 'auth' %}
44

55
{% set content %}
6-
76
{% set settingsUrl = url('oauth/twitter') %}
7+
{% set title = 'Access tokens' %}
88

99
{% set oauth = craft.plugins.getPlugin('oauth', false) %}
1010

@@ -32,7 +32,7 @@
3232
<span class="disabled">Hidden</small>
3333
{% endif %}
3434
</td>
35-
<td><a class="delete icon" title="{{ 'Delete'|t }}"></a></td>
35+
<td><a class="delete icon" title="{{ 'Delete'|t }}"></a></td>
3636
</tr>
3737
{% endfor %}
3838
</tbody>
@@ -45,4 +45,4 @@
4545
deleteAction: 'placid/token/deleteToken'
4646
});
4747
{% endset %}
48-
{% includeJs js %}
48+
{% includeJs js %}

placid/templates/oauth/index.twig

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22

33
{# Variables
44
----------------------------------------------- #}
5-
{% set selectedTab = 'oauth' %}
5+
{% set selectedSubnavItem = 'oauth' %}
66
{% set settingsUrl = url('oauth/twitter') %}
77
{% set oauth = craft.plugins.getPlugin('oauth', false) %}
8+
{% set title = 'OAuth connections' %}
89

910
{% set content %}
10-
11+
1112
{% if oauthPlugin %}
1213
{% if not oauthPlugin.isInstalled %}
1314
You need to install the OAuth Plugin
1415
{% elseif not oauthPlugin.isEnabled %}
1516
You need to enable the OAuth Plugin
16-
{% else %}
17+
{% else %}
1718
{% include 'placid/oauth/providers-table' %}
1819
{% endif %}
1920
{% else %}
@@ -22,4 +23,4 @@
2223
<a class="btn" target="_blank" href="https://dukt.net/craft/oauth/">Download OAuth plugin</a>
2324
</div>
2425
{% endif %}
25-
{% endset %}
26+
{% endset %}

placid/templates/requests/index.twig

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends "placid/_layout" %}
22

3+
{% set title = 'Requests' %}
4+
35
{% set content %}
46
<div class="buttons" style="width:500px;">
57
<a href="{{ url('placid/requests/new')}}" class="btn submit add icon">Add request</a>

0 commit comments

Comments
 (0)