2023-07-17 00:16:25
This commit is contained in:
parent
2b8f721af0
commit
5ddd525c61
13 changed files with 197 additions and 2 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.idea/
|
0
CHANGELOG.md
Normal file
0
CHANGELOG.md
Normal file
13
CONTRIBUTING.md
Normal file
13
CONTRIBUTING.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Contributing
|
||||
|
||||
- Feedback, wishes and suggestions can be sent by email.
|
||||
- Constructive criticism, bug descriptions and other reports are welcome.
|
||||
- Email: mail@ihub.to
|
||||
|
||||
## Sources
|
||||
|
||||
- [**GitHub**](https://github.com/pkgstore)
|
||||
- [GitLab](https://gitlab.com/pkgstore) (MIRROR)
|
||||
- [Codeberg](https://codeberg.org/pkgstore) (MIRROR)
|
||||
- [MosHub](https://hub.mos.ru/pkgstore) (MIRROR)
|
||||
- [Git.Org.Ru](https://git.org.ru/pkgstore) (MIRROR)
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Package Store
|
||||
Copyright (c) 2023 iHub TO <https://ihub.to>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
25
README.md
25
README.md
|
@ -1 +1,24 @@
|
|||
# xenforo-ext-notices
|
||||
# Information
|
||||
|
||||
| Property | Value |
|
||||
| ------------ | -------------------------------------------------- |
|
||||
| ID | `ext_034c9c79` |
|
||||
| Type | Add-on |
|
||||
| License | MIT |
|
||||
| Language | Russian |
|
||||
| Requirements | XenForo 2.1 |
|
||||
| Authors | [iHub TO](mailto:mail@ihub.to) |
|
||||
|
||||
Система объявлений для [**XenForo**](https://xenforo.com).
|
||||
|
||||
## Install
|
||||
|
||||
1. [Загрузить](https://github.com/pkgstore/xenforo-ext-notices/tags) архив с последней версией расширения.
|
||||
2. Распаковать содержимое архива в `/src/addons/PkgStore/ext_034c9c79/`, сохраняя структуру директорий.
|
||||
3. Зайти в **AdminCP**, далее *Add-ons*, и установить необходимое расширение.
|
||||
|
||||
## Update
|
||||
|
||||
1. [Загрузить](https://github.com/pkgstore/xenforo-ext-notices/tags) архив с новой версией расширения.
|
||||
2. Распаковать содержимое архива в `/src/addons/PkgStore/ext_034c9c79/`, сохраняя структуру директорий, заменяя существующие файлы и папки.
|
||||
3. Зайти в **AdminCP**, далее *Add-ons*, и обновить необходимое расширение.
|
||||
|
|
23
Setup.php
Normal file
23
Setup.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace PkgStore\ext_034c9c79;
|
||||
|
||||
use XF\AddOn\AbstractSetup;
|
||||
|
||||
class Setup extends AbstractSetup
|
||||
{
|
||||
public function install(array $stepParams = [])
|
||||
{
|
||||
// TODO: Implement install() method.
|
||||
}
|
||||
|
||||
public function upgrade(array $stepParams = [])
|
||||
{
|
||||
// TODO: Implement upgrade() method.
|
||||
}
|
||||
|
||||
public function uninstall(array $stepParams = [])
|
||||
{
|
||||
// TODO: Implement uninstall() method.
|
||||
}
|
||||
}
|
4
_data/option_groups.xml
Normal file
4
_data/option_groups.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<option_groups>
|
||||
<group group_id="ext_034c9c79" icon="fa-exclamation-triangle" display_order="9999" debug_only="0"/>
|
||||
</option_groups>
|
23
_data/options.xml
Normal file
23
_data/options.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<options>
|
||||
<option option_id="ext_034c9c79_quickReply" edit_format="onoff" data_type="boolean">
|
||||
<default_value>0</default_value>
|
||||
<relation group_id="ext_034c9c79" display_order="1"/>
|
||||
</option>
|
||||
<option option_id="ext_034c9c79_quickReplyMessage" edit_format="textbox" data_type="string">
|
||||
<default_value><![CDATA[]]></default_value>
|
||||
<edit_format_params>rows=5</edit_format_params>
|
||||
<relation group_id="ext_034c9c79" display_order="1"/>
|
||||
</option>
|
||||
<option option_id="ext_034c9c79_quickReplyType" edit_format="select" data_type="string">
|
||||
<default_value>important</default_value>
|
||||
<edit_format_params>success=Success
|
||||
important=Important
|
||||
error=Error</edit_format_params>
|
||||
<relation group_id="ext_034c9c79" display_order="1"/>
|
||||
</option>
|
||||
<option option_id="ext_034c9c79_quickReplyIcon" edit_format="onoff" data_type="boolean">
|
||||
<default_value>0</default_value>
|
||||
<relation group_id="ext_034c9c79" display_order="1"/>
|
||||
</option>
|
||||
</options>
|
13
_data/phrases.xml
Normal file
13
_data/phrases.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<phrases>
|
||||
<phrase title="option.ext_034c9c79_quickReply" version_id="1000070" version_string="1.0.0"><![CDATA[Над быстрым ответом]]></phrase>
|
||||
<phrase title="option_explain.ext_034c9c79_quickReply" version_id="1000070" version_string="1.0.0"><![CDATA[Включение / отключение объявления над быстрым ответом.]]></phrase>
|
||||
<phrase title="option.ext_034c9c79_quickReplyMessage" version_id="1000070" version_string="1.0.0"><![CDATA[Текст объявления]]></phrase>
|
||||
<phrase title="option_explain.ext_034c9c79_quickReplyMessage" version_id="1000070" version_string="1.0.0"><![CDATA[Введите текст объявления.]]></phrase>
|
||||
<phrase title="option.ext_034c9c79_quickReplyType" version_id="1000070" version_string="1.0.0"><![CDATA[Тип объявления]]></phrase>
|
||||
<phrase title="option_explain.ext_034c9c79_quickReplyType" version_id="1000070" version_string="1.0.0"><![CDATA[Укажите тип объявления.]]></phrase>
|
||||
<phrase title="option.ext_034c9c79_quickReplyIcon" version_id="1000070" version_string="1.0.0"><![CDATA[Иконка]]></phrase>
|
||||
<phrase title="option_explain.ext_034c9c79_quickReplyIcon" version_id="1000070" version_string="1.0.0"><![CDATA[]]></phrase>
|
||||
<phrase title="option_group.ext_034c9c79" version_id="1000070" version_string="1.0.0"><![CDATA[Notices]]></phrase>
|
||||
<phrase title="option_group_description.ext_034c9c79" version_id="1000070" version_string="1.0.0"><![CDATA[Система объявлений.]]></phrase>
|
||||
</phrases>
|
14
_data/template_modifications.xml
Normal file
14
_data/template_modifications.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<template_modifications>
|
||||
<modification type="public"
|
||||
template="thread_view"
|
||||
modification_key="ext_034c9c79_thread_quickReply"
|
||||
description=""
|
||||
execution_order="9999"
|
||||
enabled="1"
|
||||
action="str_replace">
|
||||
<find><![CDATA[<xf:if is="$thread.canReply()">]]></find>
|
||||
<replace><![CDATA[<xf:include template="ext_034c9c79_quick_reply_view" />
|
||||
$0]]></replace>
|
||||
</modification>
|
||||
</template_modifications>
|
17
_data/templates.xml
Normal file
17
_data/templates.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<templates>
|
||||
<template type="public"
|
||||
title="ext_034c9c79_quick_reply_view"
|
||||
version_id="1000070"
|
||||
version_string="1.0.0"><![CDATA[<xf:if is="$xf.options.ext_034c9c79_quickReply">
|
||||
<xf:if is="$xf.options.ext_034c9c79_quickReplyIcon">
|
||||
<xf:set var="$ext_034c9c79_quickReplyIcon" value="blockMessage--iconic" />
|
||||
<xf:else />
|
||||
<xf:set var="$ext_034c9c79_quickReplyIcon" value="" />
|
||||
</xf:if>
|
||||
|
||||
<div class="blockMessage blockMessage--{$xf.options.ext_034c9c79_quickReplyType} {$ext_034c9c79_quickReplySmall} {$ext_034c9c79_quickReplyIcon}">
|
||||
{$xf.options.ext_034c9c79_quickReplyMessage}
|
||||
</div>
|
||||
</xf:if>]]></template>
|
||||
</templates>
|
21
addon.json
Normal file
21
addon.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"legacy_addon_id": "",
|
||||
"title": "Notices",
|
||||
"description": "Custom announcement system. (ext_034c9c79)",
|
||||
"version_id": 1000070,
|
||||
"version_string": "1.0.0",
|
||||
"dev": "iHub TO",
|
||||
"dev_url": "https://ihub.to/",
|
||||
"support_url": "https://github.com/pkgstore/xenforo-ext-notices/issues",
|
||||
"require": {
|
||||
"XF": [
|
||||
2010070,
|
||||
"XenForo 2.1.0+"
|
||||
],
|
||||
"php": [
|
||||
"7.3.0",
|
||||
"PHP 7.3.0+"
|
||||
]
|
||||
},
|
||||
"icon": "fa-exclamation-triangle"
|
||||
}
|
43
composer.json
Normal file
43
composer.json
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "pkgstore/xenforo-ext-notices",
|
||||
"type": "xenforo-extension",
|
||||
"description": "",
|
||||
"license": "MIT",
|
||||
"homepage": "https://ihub.to/",
|
||||
"keywords": [
|
||||
"xenforo",
|
||||
"notices",
|
||||
"announcements"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "iHub TO",
|
||||
"email": "mail@ihub.to",
|
||||
"homepage": "https://ihub.to/",
|
||||
"role": "Developer"
|
||||
},
|
||||
{
|
||||
"name": "Kitsune Solar",
|
||||
"email": "mail@kitsune.solar",
|
||||
"homepage": "https://kitsune.solar/",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/pkgstore/xenforo-ext-notices/issues",
|
||||
"source": "https://github.com/pkgstore/xenforo-ext-notices"
|
||||
},
|
||||
"require": {
|
||||
"composer/installers": "^1.9"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {}
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"prepend-autoloader": false
|
||||
},
|
||||
"extra": {
|
||||
"installer-name": "ext_034c9c79"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue