<plugin name="Badges" version_long="1" version_human="1.0.1" author=".">
<hooks>
<hook type="S" class="\IPS\Theme\class_core_front_profile" filename="Badges">
<![CDATA[ //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } class hook164 extends _HOOK_CLASS_ { /* !Hook Data - DO NOT REMOVE */ public static function hookData() { return array_merge_recursive( array ( 'profile' => array ( 0 => array ( 'selector' => '#elProfileInfoColumn > div.ipsPadding.ipsBox.ipsResponsive_pull', 'type' => 'add_inside_start', 'content' => '{{if $member->temp_ban >= 1}} {{$end = \IPS\DateTime::ts( $member->temp_ban )->strFormat( "%e.%m.%Y %H:%M:%S" );}} <div class="cProfileSidebarBlock ipsSpacer_bottom"> <div class="cProfileWarnBadge_red cProfileWarnBadge--no-image"> <span class="cProfileWarnBadge" data-ipstooltip="" _title="{lang="rg_wb_tempban_title"} {$end}"><i class="fa fa-ban"></i> {lang="rg_wb_tempban"}</span> </div> </div> {{elseif $member->temp_ban == -1}} <div class="cProfileSidebarBlock ipsSpacer_bottom"> <div class="cProfileWarnBadge_red cProfileWarnBadge--no-image"> <span class="cProfileWarnBadge" data-ipstooltip="" _title="{lang="rg_wb_permban_title"}"><i class="fa fa-ban"></i> {lang="rg_wb_permban"}</span> </div> </div> {{endif}}', ), 1 => array ( 'selector' => '#elProfileInfoColumn > div.ipsPadding.ipsBox.ipsResponsive_pull', 'type' => 'add_inside_start', 'content' => '{{if $member->restrict_post >= 1}} {{$end = \IPS\DateTime::ts( $member->restrict_post )->strFormat( "%e.%m.%Y %H:%M:%S" );}} <div class="cProfileSidebarBlock ipsSpacer_bottom"> <div class="cProfileWarnBadge_orange cProfileWarnBadge--no-image"> <span class="cProfileWarnBadge" data-ipstooltip="" _title="{lang="rg_wb_temp_restrict_post_title"} {$end}"><i class="fa fa-comment"></i> {lang="rg_wb_temp_restrict_post"}</span> </div> </div> {{elseif $member->restrict_post == -1}} <div class="cProfileSidebarBlock ipsSpacer_bottom"> <div class="cProfileWarnBadge_orange cProfileWarnBadge--no-image"> <span class="cProfileWarnBadge" data-ipstooltip="" _title="{lang="rg_wb_perm_restrict_post_title"}"><i class="fa fa-comment"></i> {lang="rg_wb_perm_restrict_post"}</span> </div> </div> {{endif}}', ), ), ), parent::hookData() ); } /* End Hook Data */ } ]]>
</hook>
</hooks>
<htmlFiles/>
<cssFiles>
<css filename="rg_warnbages.css">LmNQcm9maWxlV2FybkJhZGdlLS1uby1pbWFnZSB7DQogICAgcGFkZGluZzogMTVweCAwOw0KfQ0KLmNQcm9maWxlV2FybkJhZGdlX3JlZCB7DQogICAgcG9zaXRpb246IHJlbGF0aXZlOw0KICAgIGRpc3BsYXk6IGZsZXg7DQogICAgYWxpZ24taXRlbXM6IGZsZXgtZW5kOw0KICAgIG92ZXJmbG93OiBoaWRkZW47DQogICAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmFkaXVzLTEpOw0KICAgIGJhY2tncm91bmQtY29sb3I6ICNDNTMwMzA7DQogICAgY29sb3I6ICNmZmZmZmY7DQogICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7DQp9DQouY1Byb2ZpbGVXYXJuQmFkZ2Vfb3JhbmdlIHsNCiAgICBwb3NpdGlvbjogcmVsYXRpdmU7DQogICAgZGlzcGxheTogZmxleDsNCiAgICBhbGlnbi1pdGVtczogZmxleC1lbmQ7DQogICAgb3ZlcmZsb3c6IGhpZGRlbjsNCiAgICBib3JkZXItcmFkaXVzOiB2YXIoLS1yYWRpdXMtMSk7DQogICAgYmFja2dyb3VuZC1jb2xvcjogI2RkNmIyMDsNCiAgICBjb2xvcjogI2ZmZmZmZjsNCiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpczsNCn0NCi5jUHJvZmlsZVdhcm5CYWRnZSB7DQogICAgZm9udC1zaXplOiAxNC4wcHg7DQogICAgcGFkZGluZzogMTRweDsNCiAgICBjb2xvcjogI2ZmZmZmZjsNCiAgICBib3JkZXItcmFkaXVzOiB2YXIoLS1yYWRpdXMtMSk7DQogICAgZmxleDogMCAwIDEwMCU7DQogICAgbWluLXdpZHRoOiAwOw0KICAgIHRleHQtYWxpZ246IGNlbnRlcjsNCiAgICBwb3NpdGlvbjogcmVsYXRpdmU7DQogICAgdGV4dC1zaGFkb3c6IHJnYigwIDAgMCAvIDIwJSkgMHB4IDFweCAxcHg7DQp9</css>
</cssFiles>
<jsFiles/>
<resourcesFiles/>
<lang>
<word key="rg_wb_tempban" js="0">Временно забанен</word>
<word key="rg_wb_tempban_title" js="0">Данный пользователь заблокирован до</word>
<word key="rg_wb_permban" js="0">Забанен</word>
<word key="rg_wb_permban_title" js="0">Данный пользователь заблокирован навсегда</word>
<word key="rg_wb_temp_restrict_post" js="0">Публикация постов временно ограничена</word>
<word key="rg_wb_temp_restrict_post_title" js="0">Данному пользователю запрещено публиковать посты до</word>
<word key="rg_wb_perm_restrict_post" js="0">Публикация постов запрещена</word>
<word key="rg_wb_perm_restrict_post_title" js="0">Данному пользователю запрещено публиковать посты навсегда</word>
</lang>
<versions>
<version long="10000" human="1.0.0">
<![CDATA[ //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * Install Code */ class ips_plugins_setup_install { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request } ]]>
</version>
<version long="1" human="1.0.1">
<![CDATA[ //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.0.1 Upgrade Code */ class ips_plugins_setup_upg_10001 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request } ]]>
</version>
</versions>
</plugin>