This will add "view larger map" link to Google Map block Please save the the following view.php file onto /application/blocks/google_map/view.php
I've changed the following
- LINE 9: added margn-top 1em
| <?php | |
| return array( | |
| 'seo' => array( | |
| 'title_format' => '%2$s :: %1$s' | |
| ) | |
| ); |
| <?php | |
| public static function autolink($input) { | |
| $output = preg_replace_callback("/[\s| ](http:\/\/|https:\/\/|(www\.))(([^\s<]{4,160})[^\s<]*)/", | |
| create_function( | |
| '$matches', | |
| 'return "<a href=\"http://".$matches[2].$matches[3]."\" title=\"http://".$matches[2].$matches[3]."\" rel=\"nofollow\" target=\"_blank\">". | |
| (strlen("http://".$matches[2].$matches[4])>160?"http://".$matches[2].$matches[4]."...":"http://".$matches[2].$matches[4])."</a>";' | |
| ), $input); | |
| return $output; |
| $f = $controller->getFileObject(); // You can change it to like \File::getByID(3); | |
| $fv = $f->getVersion(); | |
| $size = $fv->getFullSize(); // Get the file size | |
| $size = Core::make('helper/number')->formatSize($size); | |
| $type = strtolower($fv->getExtension()); // get the file extension |
This will add "view larger map" link to Google Map block Please save the the following view.php file onto /application/blocks/google_map/view.php
I've changed the following
Sometime, "external link" doesn't fulfill your requirement for the page. You may want to display thumbnail image, additional page attribute such as topic and selector attributes to display the categories of the page.
This tutorial explains how to set-up redirect-only page with more page attributes option by creating redirect-only page template and page type in your theme.
(You may also want to customize your Page List and/or Autonav Blocks if you want to avoid additional redirect requests)
Tested with concrete5.7.3.
[SITE NAME] to your site name on the line 572 and 585 of controller.phpcontroller.php to /application/blocks/form/ (create folder if not existed)block_form_submission_user.php block_form_submission_user.php to /application/mail/concrete5.7 サイトでイベントページとか作成している時に申込先のボタンをなんかナイスに表示したい時のサンプルコード。
| <?php defined('C5_EXECUTE') or die("Access Denied."); | |
| /* This is just the portion of the code | |
| */ | |
| $blog_rss = h($ui->getAttribute('blog_rss')); | |
| $isRSSValid = false; | |
| if (preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$blog_rss)) { | |
| $isRSSValid = true; | |
| } | |
| ?> | |
| <?php if ($blog_rss && $isRSSValid) {?> |
Read more at https://www.concrete5.org/developers/bugs/5-7-5-3/conversations-bug/
You need to change the following file.
/concrete/controllers/single_page/dashboard/system/conversations/settings.php
| <?php | |
| echo date('Y/m/d H:i:s e'); |