Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions inc/lang/ar_arabic/admin/general.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
hello = "ما الجديد، <strong>%s</strong>؟"
add = "أضف"
save = "حفظ"
cancel = "إلغاء"
say_yes = "نعم"
say_no = "لا"
close = "إغلاق"
manage = "إدارة"
upload = "رفع"
delete = "حذف"
edit = "تحرير"
change = "تغيير"
login_failure = "!اسم المستخدم أو كلمة المرور خاطئة"
login_attempts = "تم بلوغ أقصى حد للمحاولة. انتظر %s "
sign_in = "الدخول"
remember_me = "تذكرني"
username = "اسم المستخدم"
password = "كلمة السر"
actions = "أعمال"
title = "العنوان"
name = "اسم"
lang = "لغة"
theme = "السمة"
template = "قالب"
can_be_empty = "يمكن أن تكون فارغة"
empty_inputs = "املأ جميع الحقول المطلوبة!"
logout = "خروج"
show_site = "عرض الموقع"
settings = "إعدادات"
unsaved_warning = "لم تحفظ التغييرات! هل أنت متأكد أنك تريد مغادرة هذه الصفحة؟"
update_available = "التحديث متاح"
file = "ملف"
unknown_method = "المسار المطلوب غير موجود."
empty_array = "لا توجد عناصر لعرضها."
72 changes: 72 additions & 0 deletions inc/modules/blog/lang/admin/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
module_name = "المدونة"
module_desc = "إنشاء مداخل في مدونة."
add_new = "اضف جديد"
new_post = "اضف جديد"
categories = "فئات"
post_count = "المشاركات:"
edit_post = "تعديل المنشور"
post_del_confirm = "هل أنت متأكد من حذف المشاركات المختارة؟"
settings = "إعدادات"
blog_title = "عنوان المدونة"
blog_desc = "وصف"
perpage = "المشاركات في كل صفحة"
latest_posts_count = "عدد المشاركات في كل صفحة"
disqus_shortname = "Disqus الاسم المختصر"
date_format = "صيغة التاريخ"
settings_saved = "تم حفظ الإعدادات"
manage_title = "عنوان"
manage_status = "حالة"
manage_author = "كاتب"
manage_comments = "تعليقات"
manage_date = "تاريخ"
comments_on = "مفعل"
comments_off = "غير مفعل"
post_hidden = "غير منشور"
post_sketch = "مسودة"
post_published = "منشور"
content = "محتوى"
intro = "مقدمة"
slug = "رابط مختصر"
status = "حالة"
tags = "وسم"
add_a_tag = "أضف وسم"
author = "كاتب"
publish = "انشر في"
options = "خيارات"
display_comments = "إظهار تعليقات Disqus"
markdown = "تمكين Markdown"
cover = "صورة الغلاف"
delete_photo = "حذف"
save_success = "تم حفظ المنشور بنجاح"
save_failure = "فشل حفظ المنشور"
delete_success = "تم حذف المنشور بنجاح"
delete_failure = "فشل حذف المنشور"
cover_deleted = "تم حذف صورة الغلاف"
not_found = "عفوًا .. المنشور غير موجود :("
editor_upload_fail = "لا يمكن تحميل الصورة. ربما نوع غير مدعوم."
today = "اليوم"
yesterday = "الأمس"
janx = "يناير"
febx = "فبراير"
marx = "مارس"
aprx = "أبريل"
mayx = "ماي"
junx = "يونيو"
julx = "يوليوز"
augx = "غشت"
sepx = "شتنبر"
octx = "أكتوبر"
novx = "نونبر"
decx = "ديسمبر"
jan = "يناير"
feb = "فبراير"
mar = "مارس"
apr = "أبريل"
may = "ماي"
jun = "يونيو"
jul = "يوليوز"
aug = "غشت"
sep = "شتنبر"
oct = "أكتوبر"
nov = "نونبر"
dec = "دجنبر"
36 changes: 36 additions & 0 deletions inc/modules/blog/lang/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
post_draft = "هذه المشاركة لها حالة <b> مسودة </b>. يمكن للمسؤول فقط رؤية هذا."
post_time = "لم يتم نشر هذا المنشور بعد. يمكن للمسؤول فقط رؤية هذا."
latest_posts = "آخر المشاركات"
categories = "فئات"
readmore = "أكمل القراءة"
share = "مشاركة"
posted = "كتبها %s في %s"
older = "أقدم المشاركات"
newer = "أحدث المشاركات"
no_comments = "بدون تعليقات"
today = "اليوم"
yesterday = "الأمس"
janx = "يناير"
febx = "فبراير"
marx = "مارس"
aprx = "أبريل"
mayx = "ماي"
junx = "يونيو"
julx = "يوليوز"
augx = "غشت"
sepx = "شتنبر"
octx = "أكتوبر"
novx = "نونبر"
decx = "ديسمبر"
jan = "يناير"
feb = "فبراير"
mar = "مارس"
apr = "أبريل"
may = "ماي"
jun = "يونيو"
jul = "يوليوز"
aug = "غشت"
sep = "شتنبر"
oct = "أكتوبر"
nov = "نونبر"
dec = "دجنبر"
2 changes: 2 additions & 0 deletions inc/modules/carousel/lang/admin/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module_name = "دائري"
module_desc = "عرض شرائح دوري. يتطلب وحدة المعرض."
20 changes: 20 additions & 0 deletions inc/modules/contact/lang/admin/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module_name = "اتصال"
module_desc = "عرض نموذج الاتصال على الصفحة."
recipient = "متلقي"
custom = "- عنوان بريد إلكتروني مخصص -"
or_mail = "أو عنوان بريد إلكتروني مخصص"
example = "مثال: contact@johndoe.com"
save_success = "تم حفظ بيانات الاتصال."
save_failure = "فشل في حفظ بيانات الاتصال."
info = "ضع هذه العلامة في قالب الموقع"
checkbox = "مطلوب حقل مربع"
checkbox_content = "المحتوى لقبوله"
phpmailer_error = "معذرةً ، لا يمكنني العثور على فئة PHPMailer. من فضلك ، قم بتنفيذ <code> الملحن يتطلب phpmailer / phpmailer </code> في محطة مشروعك."
driver = "سائق البريد"
mail = "mail() (default)"
phpmailer = "PHPMailer (SMTP)"
server = "خادم"
port = "البوابة"
username = "اسم المستخدم"
password = "كلمة السر"
name = "اسم المرسل"
10 changes: 10 additions & 0 deletions inc/modules/contact/lang/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
full_name = "الإسم الكامل"
email = "البريد الإلكتروني"
subject = "الموضوع"
message = "الرسالة"
send = "إرسال"
send_success = "تم إرسال البريد بنجاح. وسوف نتصل بك قريبا."
send_failure = "غير قادر على إرسال رسالة. ربما تم تعطيل وظيفة mail () على الخادم."
wrong_email = "عنوان البريد الإلكتروني المقدم غير صحيح."
empty_inputs = "املأ جميع الحقول المطلوبة لإرسال رسالة."
antiflood = "عليك أن تنتظر قليلاً قبل أن ترسل رسالة أخرى."
5 changes: 5 additions & 0 deletions inc/modules/dashboard/lang/admin/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module_name = "لوحة التحكم"
module_desc = "الوصول السريع إلى الوحدات والأخبار."
news = "أخبار"
rss_fail_title = "انتهى وقت محاولة الاتصال"
rss_fail_desc = "تعذر تنزيل آخر الأخبار من Batflat.org."
2 changes: 2 additions & 0 deletions inc/modules/devbar/lang/admin/ar_arabic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module_name = "شريط التشخيص"
module_desc = "يظهر معلومات مفيدة للمطورين"
134 changes: 134 additions & 0 deletions inc/modules/embededvideoplayer/Admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?php
/**
* BatFlat - EmbededVideoPlayer Module by pplaczek.
* Allows you to upload a video clip and play it using the html5 player.
*
* @author Piotr Płaczek <piotr@pplaczek.pl>
* @copyright 2018 Piotr Płaczek <p.dev>
* @license MIT https://github.com/piotr-placzek/BatFlat-EmbededVideoPlayer/blob/master/LICENSE.md
* @link https://github.com/piotr-placzek/BatFlat-EmbededVideoPlayer
*/


namespace Inc\Modules\EmbededVideoPlayer;

use Inc\Core\AdminModule;

/**
* EmbededVideoPlayer admin class
*/
class Admin extends AdminModule
{
/**
* Initialize module. Add fontawesome css.
*/
public function init(){
}

/**
* Module navigation
* Items of the returned array will be displayed in the administration sidebar
*
* @return array
*/
public function navigation()
{
return [
$this->lang('index') => 'index',
];
}

/**
* GET: /admin/embededvideoplayer/index
* Subpage method of the module
*
* @return string
*/
public function getIndex()
{
$entries = $this->core->db('pdev_evp')->toArray();
return $this->draw('index.html', ['entries' => $entries]);
}

/**
* Upload file into ~/uploads/pdev_evp directory and add data into db
*/
public function postSaveFile()
{
dump($_FILES);
if(is_uploaded_file($_FILES['file_path']['tmp_name'])) {
$dir = UPLOADS.'/pdev_evp';
move_uploaded_file($_FILES['file_path']['tmp_name'], $dir."/".$_FILES['file_path']['name']);

$row = array(
'name' => $_POST['file_name'],
'slug' => $_POST['file_slug'],
'file' => $_FILES['file_path']['name'],
'path' => url(UPLOADS.'/pdev_evp/'.$_FILES['file_path']['name'])
);

if($query = $this->core->db('pdev_evp')->save($row)){
$this->notify('success', $this->core->lang['embededvideoplayer']['db_save_ok'].' '.$_POST['file_name'].' ('.$_FILES['file_path']['size'].'B)');
}
else{
$this->notify('failure', $this->core->lang['embededvideoplayer']['no_files']);
}
}
else{
$this->notify('failure', $this->core->lang['embededvideoplayer']['no_files']);
}

redirect(url([ADMIN, 'embededvideoplayer', 'index']));
}

/**
* GET: /admin/embededvideoplayer/modify
* Subpage method of the module
* @param id
* @return string
*/
public function getModify($id){
$row = $this->core->db('pdev_evp')->oneArray($id);
return $this->draw('modify.html', ['element' => $row]);
}

/**
* Modify row in db
*/
public function postModifyFile(){
if($this->core->db('pdev_evp')->where('id', $_POST['id'])->update(
[
'name' => $_POST['file_name'],
'slug' => $_POST['file_slug']
]
)){
$this->notify('success', $this->core->lang['embededvideoplayer']['modify_file_success']);
}
else{
$this->notify('failure', $this->core->lang['embededvideoplayer']['modify_file_failure']);
}

redirect(url([ADMIN, 'embededvideoplayer', 'index']));
}

/**
* Remove row from db
* @param $id
*/
public function getRemove($id){
$row = $this->core->db('pdev_evp')->oneArray($id);
$file = UPLOADS.'/pdev_evp/'.$row['file'];

dump($file);

if (file_exists($file)) {
if (!unlink($file)) {
$this->notify('failure', $this->core->lang['embededvideoplayer']['delete_file_failure']);
} else {
$this->notify('success', $this->core->lang['embededvideoplayer']['delete_file_success']);
$this->core->db('pdev_evp')->delete($id);
}
}
redirect(url([ADMIN, 'embededvideoplayer', 'index']));
}
}
39 changes: 39 additions & 0 deletions inc/modules/embededvideoplayer/Info.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
/**
* BatFlat - EmbededVideoPlayer Module by pplaczek.
* Allows you to upload a video clip and play it using the html5 player.
*
* @author Piotr Płaczek <piotr@pplaczek.pl>
* @copyright 2018 Piotr Płaczek <p.dev>
* @license MIT https://github.com/piotr-placzek/BatFlat-EmbededVideoPlayer/blob/master/LICENSE.md
* @link https://github.com/piotr-placzek/BatFlat-EmbededVideoPlayer
*/

return [
'name' => $core->lang['embededvideoplayer']['module_name'],
'description' => $core->lang['embededvideoplayer']['module_desc'],
'author' => 'p.dev',
'version' => '1.0.1',
'compatibility' => '1.3.*', // Compatibility with Batflat version
'icon' => 'film', // Icon from http://fontawesome.io/icons/

'install' => function () use ($core) {
$core->db()->pdo()->exec("CREATE TABLE IF NOT EXISTS `pdev_evp` (
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT,
`name` text NOT NULL,
`slug` text NOT NULL,
`file` text NOT NULL,
`path` text NOT NULL
)");

if (!file_exists(UPLOADS.'/pdev_evp')) {
mkdir(UPLOADS.'/pdev_evp', 0755, true);
}
},
'uninstall' => function () use ($core) {
// If you uncomment line bellow then you lost all data but not files
$core->db()->pdo()->exec("DROP TABLE `pdev_evp`");
// If you uncomment block bellow then you lost all files but not data
deleteDir(UPLOADS.'/pdev_evp');
}
];
21 changes: 21 additions & 0 deletions inc/modules/embededvideoplayer/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Piotr Płaczek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading