forked from wpanel/wpanel4-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code fix, convention and refactorization
- Loading branch information
1 parent
1bb4e9a
commit 94df5ee
Showing
184 changed files
with
1,586 additions
and
1,626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php /** @noinspection PhpMultipleClassDeclarationsInspection */ | ||
|
||
/** | ||
* @copyright Eliel de Paula <[email protected]> | ||
|
@@ -12,6 +12,8 @@ | |
* | ||
* Contém os métodos básicos do site. | ||
* | ||
* @property int $wpn_cols_mosaic | ||
* @property string $wpn_posts_view | ||
* @author Eliel de Paula <[email protected]> | ||
*/ | ||
class Main extends MY_Controller | ||
|
@@ -25,7 +27,7 @@ class Main extends MY_Controller | |
*/ | ||
public $post; | ||
/** | ||
* @var Categorytegory | ||
* @var Category | ||
*/ | ||
public $category; | ||
/** | ||
|
@@ -142,6 +144,7 @@ public function posts($category_id = null) | |
* | ||
* @param $var mixed Link ou ID da postagem. | ||
* @param $use_id boolean Indica que $var é um Id. | ||
* @noinspection PhpParamsInspection | ||
*/ | ||
public function post($var = null, $use_id = false) | ||
{ | ||
|
@@ -350,7 +353,7 @@ public function video($code = null) | |
$this->wpanel->set_meta_description($query_video->titulo); | ||
$this->wpanel->set_meta_keywords('videos, filmes'); | ||
$this->wpanel->set_meta_title($query_video->titulo); | ||
$this->wpanel->set_meta_image('http://img.youtube.com/vi/' . $code . '/0.jpg'); | ||
$this->wpanel->set_meta_image('https://img.youtube.com/vi/' . $code . '/0.jpg'); | ||
$this->render(); | ||
} | ||
|
||
|
@@ -368,15 +371,15 @@ public function contact() | |
$this->wpanel->set_meta_keywords(' Contato, Fale Conosco'); | ||
$this->wpanel->set_meta_title('Contato'); | ||
$this->set_var('contact_content', wpn_config('texto_contato')); | ||
// FIXME | ||
$this->set_var('captcha', $this->form_validation->get_captcha()); | ||
$this->render(); | ||
} else { | ||
$nome = $this->input->post('nome'); | ||
$email = $this->input->post('email'); | ||
$telefone = $this->input->post('telefone'); | ||
$mensagem = $this->input->post('mensagem'); | ||
$msg = ""; | ||
$msg .= "Mensagem enviada pelo site.\n\n"; | ||
$msg = "Mensagem enviada pelo site.\n\n"; | ||
$msg .= "Nome: $nome\n"; | ||
$msg .= "Email: $email\n"; | ||
$msg .= "Telefone: $telefone\n"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php /** @noinspection PhpUnused */ | ||
|
||
class Migrate extends CI_Controller | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php /** @noinspection PhpUnused */ | ||
|
||
/** | ||
* @copyright Eliel de Paula <[email protected]> | ||
|
@@ -21,10 +21,6 @@ class Users extends MY_Controller | |
* @var Wpanel | ||
*/ | ||
public $wpanel; | ||
/** | ||
* @var Auth | ||
*/ | ||
public $auth; | ||
|
||
/** | ||
* Constructor da classe. | ||
|
Oops, something went wrong.