OSDN Git Service

CHANGE/REMOVE: <%text%>タグをスキンのどのコンテクストでも利用可能に。NP_Textの廃止。
[nucleus-jp/nucleus-next.git] / nucleus / libs / BaseActions.php
index 969d65c..a6c00a3 100644 (file)
@@ -64,7 +64,8 @@ class BaseActions
                'parsedinclude',
                'phpinclude',
                'set',
-               'skinfile'
+               'skinfile',
+               'text'
        );
        
        /**
@@ -229,6 +230,26 @@ class BaseActions
        }
        
        /**
+        * Actions::parse_text()
+        * Parse text
+        * 
+        * @param       string  $constant       named constant
+        * @return      void
+        */
+       public function parse_text($constant)
+       {
+               if ( !defined($constant) )
+               {
+                       echo Entity::hsc($constant);
+               }
+               else
+               {
+                       echo Entity::hsc(constant($constant));
+               }
+               return;
+       }
+       
+       /**
         * BaseActions::addIfCondition()
         * Helper function: add if condition
         *